Multiple wicket applications in a single WAR

2010-12-01 Thread fstof
Hi I have a web app where clients can log in as well as third party users. To do this I implemented 2 wicket applications (both extending AuthenticatedWebApplication) to keep the authentication and sessions separate from each other. The two are separated in web.xml with separate servlet

Re: Concerning changing image onsubmit

2010-12-01 Thread Muro Copenhagen
Hi Igor, Thanks for the reply...i found IndicatingAjaxButton that i could use. It almost does what i want, it adds the busy button next to the submit button. I now need to disable the original button. I tried this without any luck: http://wicketbyexample.com/disabling-an-ajax-submit-button/

URLs using wicket wizard

2010-12-01 Thread bamse
I am rather new to Wicket, still I am building an application using the Wizard-functionality, since this is very suitable for the app. The app consists of several modules, implemented as wizards. Each wizard obviously has a number of steps, using the WizardStep, which is a panel. This works fine,

Re: Concerning changing image onsubmit

2010-12-01 Thread Martin Grigorov
ajaxButton.add(new AttributeAppender(onclick, true, this.disabled='disabled')); On Wed, Dec 1, 2010 at 9:53 AM, Muro Copenhagen copenha...@gmail.comwrote: Hi Igor, Thanks for the reply...i found IndicatingAjaxButton that i could use. It almost does what i want, it adds the busy button next

Re: URLs using wicket wizard

2010-12-01 Thread Korbinian Bachl - privat
What type of URLCodingStrategy do you use? IMHO the HybridURLCodingStrategy should do what you want Best Am 01.12.10 10:13, schrieb bamse: I am rather new to Wicket, still I am building an application using the Wizard-functionality, since this is very suitable for the app. The app

Re: URLs using wicket wizard

2010-12-01 Thread Martin Grigorov
Even better IndexedHybridUrlCodingStrategy to see stepN as parameter On Wed, Dec 1, 2010 at 10:17 AM, Korbinian Bachl - privat korbinian.ba...@whiskyworld.de wrote: What type of URLCodingStrategy do you use? IMHO the HybridURLCodingStrategy should do what you want Best Am 01.12.10

Re: URLs using wicket wizard

2010-12-01 Thread bamse
Thanks for a really quick aswer. For mounting the wizards I use QueryStringUrlCodingStrategy. I'll take a closer look at HybridURLCodingStrategy and will come back. Thanks -- View this message in context:

Re: UrlRewrite rule and Wicket

2010-12-01 Thread Krzysztof Kowalczyk
The code in Wicket 1.4.14 is the same. There is still lines that causes problem: if (!Strings.isEmpty(forwardUrl)) { // If this is an error page, this will be /mount or /?wicket:foo relativeUrl = forwardUrl.substring(1);

Re: [OT] Plugin WicketForge 0.8.1 available for IDEA 9+

2010-12-01 Thread Paul Szulc
cool! this is definitely not off topic :) On Tue, Nov 30, 2010 at 8:27 PM, Minas Manthos minas.mant...@gmail.comwrote: WicketForge 0.8.1 is available for download. -Facet detection implemented -Highlight Wicket components -... full change notes

Re: How to enable/disable an hierarchy?

2010-12-01 Thread Einar Bjerve
Using onConfigure doesn't help much. If I disable the common parent, and call setEnabled in onConfigure in the few components I want visible, the components will still be disabled during the rendering phase because onComponentTag calls isEnabledInHierarchy. I could override onConfigure in every

Re: How to enable/disable an hierarchy?

2010-12-01 Thread Wilhelmsen Tor Iver
I could override onConfigure in every component, and read the field that controls the enabling/disabling, but that would create a lot of boilerplate code for the 80-90% of FormComponents/links that should be disabled. It would be a lot cleaner to disable the parent, and only handle the ones I

Two AutoCompleteTextFields and ajax.

2010-12-01 Thread banan278
Hello everyone. I have problem with two AutoCompleteTextFields and ajax. There is form which contains only two AutoCompleteTextFields. The list of values on the second field is limited depending on the value of the first field. So if you change value of first field, the second field should be

implicit key in PageParameter ?

2010-12-01 Thread smallufo
Hi , I wonder how to build an implicit key when a Page is mountBookmarkablePage() ? Suppose I have a TagPage , that accepts a parameter : name , and if the TagPage is mounted to /tag prefix The url will look like : http://foobar.com/app/tag/name/abc I feel the name is redundant I hope I can

WebMarkupContainer update affecting scrollbar which is outside container

2010-12-01 Thread drf
I have an issue whereby an ajax update on a WebMarkupContainer is having unexpected effect on content outside the container. The page in question consists of two parts: 1. on the left hand side, a menu, composed of a list of AjaxFallbackLink objects. This is contained in a DIV. 2. on the right

Wicket link with no server side consequences

2010-12-01 Thread Josh Kamau
Hello there; I would like to create a wicket link (it has a client side and a serverside component) that only executes a javascript code but never sends any requests to the server, is it possible. Am thinking of adding a javascript function that returns false , and on serverside implementation,

Re: implicit key in PageParameter ?

2010-12-01 Thread Martin Grigorov
See Indexed** UrlCodingStrategies On Wed, Dec 1, 2010 at 11:52 AM, smallufo small...@gmail.com wrote: Hi , I wonder how to build an implicit key when a Page is mountBookmarkablePage() ? Suppose I have a TagPage , that accepts a parameter : name , and if the TagPage is mounted to /tag

Re: Wicket link with no server side consequences

2010-12-01 Thread Martijn Dashorst
use a webmarkupcontainer and a attribute modifier, or if you want to reuse it, extend webmarkupcontainer and modify the attributes directly. Martijn On Wed, Dec 1, 2010 at 12:04 PM, Josh Kamau joshnet2...@gmail.com wrote: Hello there; I would like to create a wicket link (it has a client side

Re: How to enable/disable an hierarchy?

2010-12-01 Thread Einar Bjerve
Thanks, finally got it to work. By overriding parentPanel.onBeforeRender(), and visit the children I was able to enable/disable child components. It is important to call super.onBeforeRender() before visiting children to populate the ListView first. I could not use onConfigure() because some of

Re: Wicket link with no server side consequences

2010-12-01 Thread Ernesto Reinaldo Barreiro
Why do you need a Link component for it if you are going to do nothing on server side? Cant you just use WebMarkupContainer if you happen to need generating JavaScipt on server side? E.g. a wicket:id=bla href=javascript:void(0) onclick=Bla/a WebMarkupContainer bla = new WebMarkupContainer(bla)

Re: Wicket link with no server side consequences

2010-12-01 Thread Josh Kamau
Thanks Ernesto, Martjn The WebMarkupContainer worked . I didnt know i would use it on a link. regards. On Wed, Dec 1, 2010 at 2:19 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Why do you need a Link component for it if you are going to do nothing on server side? Cant you just

Re: [OT] Plugin WicketForge 0.8.1 available for IDEA 9+

2010-12-01 Thread Bert
cool, looking forward to test the new versions once i 'm home ; thank you On Wed, Dec 1, 2010 at 10:43, Paul Szulc paul.sz...@gmail.com wrote: cool! this is definitely not off topic :) On Tue, Nov 30, 2010 at 8:27 PM, Minas Manthos minas.mant...@gmail.comwrote: WicketForge 0.8.1 is

Re: implicit key in PageParameter ?

2010-12-01 Thread smallufo
Hi , thanks . But it seems that IndexedParamUrlCodingStrategy only accepts integer parameters. I need String value ... 2010/12/1 Martin Grigorov mgrigo...@apache.org See Indexed** UrlCodingStrategies On Wed, Dec 1, 2010 at 11:52 AM, smallufo small...@gmail.com wrote: Hi , I wonder how to

Re: implicit key in PageParameter ?

2010-12-01 Thread smallufo
Hi I found the solution , it is MixedParamUrlCodingStrategy Thanks. 2010/12/1 smallufo small...@gmail.com Hi , thanks . But it seems that IndexedParamUrlCodingStrategy only accepts integer parameters. I need String value ... 2010/12/1 Martin Grigorov mgrigo...@apache.org See Indexed**

Re: UrlRewrite rule and Wicket

2010-12-01 Thread Erik van Oosten
You can try the approach from http://blog.jteam.nl/2010/02/24/wicket-root-mounts/ This allows you to install a URL mounter that implements the following interface: interface RootMountedUrlCodingStrategy { boolean accepts(String rawPath); } Regards, Erik. Op 30-11-10 11:21, Krzysztof

Re: Wicket 1.4.14 Bug with panels updated by Ajax rendering a CSS

2010-12-01 Thread Brad Grier
Let me know how it goes. I can't help but think this bug is related to the problem I'm seeing. -Original Message- From: Antoine Angénieux Sent: Tuesday, November 30, 2010 7:05 AM To: users@wicket.apache.org Subject: Re: Wicket 1.4.14 Bug with panels updated by Ajax rendering a CSS

Re: Wicket 1.4.14 Bug with panels updated by Ajax rendering a CSS

2010-12-01 Thread Antoine Angénieux
Hi Brad, I think Johan Compagner has found the issue, see the thread in dev list started a few hours ago: svn commit: r1031432 - /wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java It looks like this is all related to that commit. I'll be waiting

Re: Wicket 1.4.14 Bug with panels updated by Ajax rendering a CSS

2010-12-01 Thread Ernesto Reinaldo Barreiro
http://apache-wicket.1842946.n4.nabble.com/Re-svn-commit-r1031432-wicket-branches-wicket-1-4-x-wicket-src-main-java-org-apache-wicket-ajax-Ajaxa-tt3067178.html Ernesto On Wed, Dec 1, 2010 at 3:01 PM, Brad Grier brad.gr...@salusnovus.com wrote: Let me know how it goes. I can't help but think

Re: AjaxButton + Form

2010-12-01 Thread Andrea Del Bene
That sounds strange. AjaxButton implements IFormSubmittingComponent interface, hence it should first invoke its onsubmit method and then parent form's onSubmit (as described in Form class JavaDoc). Is your AjaxButton inside form's hierarchy? It is public final void onFormSubmitted() No,

Re: Wicket 1.4.14 and WiQuery Tabs

2010-12-01 Thread Brad Grier
This is from another thread but it sounds like the devs have found the problem (and a fix). I'm hopeful anyway! http://apache-wicket.1842946.n4.nabble.com/Re-svn-commit-r1031432-wicket-branches-wicket-1-4-x-wicket-src-main-java-org-apache-wicket-ajax-Ajaxa-tt3067178.html

Updating DataTable help

2010-12-01 Thread stadzun
I have a DataTable that lists the file names of a user as stored on the database. Once these are listed, the user has an option to upload/delete files and displaying the names of the files on the table (before I even update the database, similar to the way Multi Upload field works). At the

Feedback panel on modal window

2010-12-01 Thread Tito
Hi, I have one model window with a panel atached. I added a validator to one form in model window. But when I try to submit I can't show errors. Whatching the console I found it: WARN - WebSession - Component-targetted feedback message was left unrendered. This could be because

Re: [OT] Plugin WicketForge 0.8.1 available for IDEA 9+

2010-12-01 Thread Brian Topping
On Dec 1, 2010, at 4:43 AM, Paul Szulc wrote: this is definitely not off topic :) Have to agree 110%. The IntelliJ experience is made whole with this plugin. Congrats guys, and thanks for all the work! - To unsubscribe,

wicket question

2010-12-01 Thread 96silvia
I have this wicket form I want to use wicket to pass the phone number and contact email. wicket:extend form wicket:id=test method=post action=http://www.mypage.com; input type=hidden wicket:id =phoneNumber name=phoneNumber input type=hidden wicket:id =contactEmail name=email /form /wicket:extend

Re: Cache HTML output of a page

2010-12-01 Thread Igor Vaynberg
cache your business logic. wicket rendering is pretty fast, i doubt that is your bottleneck. -igor On Wed, Dec 1, 2010 at 3:03 AM, andrea.castello a.castello.pronet...@gmail.com wrote: Hi, is there a way to get the HTML output of a page component and cache it somewhere (ie: a custom cache

Re: wicket question

2010-12-01 Thread Eugene Malan
I took a look at the site and I have started implementing something similar. I use a normal non-wicket form on the home page that posts to my mounted wicket page with the login form on it. I mounted my login registration page to memberRegistration form method=post action=memberRegistration

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: wicket question

2010-12-01 Thread 96silvia
there is nothing wrong with the wicket form. what is wrong is when wicket renders the page it replaces the form action that I have (which is a url ) with wicket ?wicket:interface=:17:opcForward::IFormSubmitListener:: this isn't what I want to have happen. the action needs to be the url -- View

Re: wicket question

2010-12-01 Thread 96silvia
the problem is the hidden input values are coming from a wicket session. so if I use a non wicket form how do I get the values from a wicket session to the non wicket form? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-question-tp3067609p3067719.html Sent

Re: wicket question

2010-12-01 Thread Eugene Malan
I see your problem... In my case I am posting from a simple form (no validation or pre-populated values) that just needs to pass the parameters to my wicket form on a secure page. So.. it is back to your main question, how to stop the wicket form from posting to itself, but to get it to post

Logout (Session destroy) on the last (stateful) page?

2010-12-01 Thread Matthias Keller
Hi I've got the following problem: After a user completes a wizard, he sees a last confirmation page containing some data, thus it must be a stateful page called by the following code from the wizard: setResponsePage(new ConfirmationPage(myBean)); This ConfirmationPage must only be displayed

Re: Logout (Session destroy) on the last (stateful) page?

2010-12-01 Thread Martin Makundi
Hi! I am curious too. For this reason we had to build our logoutpage so that it invalidtes session logically but not in httpsession sense. Only clicking something from login page will do that. But it's a hack, I would like to know what's the proper way ;) ** Martin 2010/12/1 Matthias Keller

Re: component not visible exception

2010-12-01 Thread Douglas Ferguson
We don't override isVisible() and we don't call setVisible() on the save button. But we do on the container. The container starts off hidden and an AjaxTimer is used to set it visible. On Nov 30, 2010, at 1:57 AM, Matthias Keller wrote: One other thing to check is, do you have a custom

Re: wicket question

2010-12-01 Thread Erik van Oosten
Simply put them there with a Label. Regards, Erik. Op 01-12-10 18:26, 96silvia write: the problem is the hidden input values are coming from a wicket session. so if I use a non wicket form how do I get the values from a wicket session to the non wicket form? -- Erik van Oosten

common links

2010-12-01 Thread fachhoch
all my pages extend from BasePage, this page has some links which are common to all pages , right now I am creating these Ajax and non Ajax Links everytime the sub class page is instantiated by calling super. instead of creating them every time can I create them only once and add these Links

Re: wicket question

2010-12-01 Thread 96silvia
after doing some thinking I tried removing the form here is my solution wicket:extend form method=post action=http://www.mypage.com; input type=hidden wicket:id =phoneNumber name=phoneNumber input type=hidden wicket:id =contactEmail name=email /form /wicket:extend I can now pass my values from

Re: Logout (Session destroy) on the last (stateful) page?

2010-12-01 Thread Randy S.
Does the redirect to the home page happen because of Wicket's default render strategy (REDIRECT_TO_BUFFER) that causes two requests? You invalidate session on the first which redirects to the buffered response. When the second request comes in expecting to get the already-rendered response, you

DropDownChoice with tooltip

2010-12-01 Thread cole
I needed tooltip functionality on a dropdownchoice component and I have a work around but it involved copying a bunch of existing code because I couldn't figure out an easy way to add title to an html select-option. The IChoiceRenderer passed into the DropDownChoice only has getter/setters for

Re: WebMarkupContainer issue

2010-12-01 Thread drf
issue solved - I found another place in the code I was referencing the panel from the page itself directly, not via the WebMarkupContainer. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WebMarkupContainer-issue-tp3063886p3067980.html Sent from the Users forum

Re: Dynamically loading image

2010-12-01 Thread Matthew Goodson
Thanks for the help guys. I've got it all working correctly now. For other people's future reference. I think this is the page that Igor was referring to which I pretty much copied : https://cwiki.apache.org/WICKET/uploaddownload.html I am retrieving the images from a db as a byte array //heres

webapp shutdown listeners

2010-12-01 Thread Sebastian
Hi, is there a generic way to add one or multiple wicket app shutdown listener to a wicket application instance without having to override the onDestroy method and roll my own listener registration code? Regards, Seb - To

Re: [OT] Plugin WicketForge 0.8.1 available for IDEA 9+

2010-12-01 Thread Minas Manthos
Thanks guys! I'm glad you like it... It's nice to get some positive feedback... :-) PS: ok, next time i will post it as [ANN] ;-) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/OT-Plugin-WicketForge-0-8-1-available-for-IDEA-9-tp3066018p3068223.html Sent from the

Problem on wicket-auth-role ve Spring-security integration

2010-12-01 Thread Taner Diler
Hi, I'm trying to integrate Wicket-auth-roles 1.4.9 and Spring Security 3.0.4 by following https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html. @AuthorizeAction and @AuthorizeInstantiation annotations are not working. The blog says The only filter we need defined from

Data Sharing with InlineFrame Pages

2010-12-01 Thread Dan Retzlaff
Hello, I have a page with an embedded InlineFrame which is used to submit a multipart form. I would like the InlineFrame's page to share a model object with the parent page. This way the parent page can control the workflow after the form is submitted. However, something is preventing model

Wicket-Hibernate Related LazyInitializationException

2010-12-01 Thread Nivedan Nadaraj
Hi All I am guessing this is more of a Hibernate thing/issue but if some one has encountered this and has a explanation that I can probably use from the Wicket front would be great. https://forum.hibernate.org/viewtopic.php?f=1t=1008473 I have a LazyIntializationException when i page through

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-01 Thread Dan Retzlaff
Hi Nivedan, Even though the subsequent requests have a Session open, the entities with the uninitialized collections don't know about it. I'm sure if you track it down, you can explain the intermittent behavior by prior access to the collection when the original session is open. I'd say you can

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-01 Thread James Carman
Just make sure your form's model is a LDM too. On Thu, Dec 2, 2010 at 12:23 AM, Nivedan Nadaraj shravann...@gmail.com wrote: Hi All I am guessing this is more of a Hibernate thing/issue but if some one has encountered this and has a explanation that I can probably use from the Wicket front

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-01 Thread Nivedan Nadaraj
Hi Dan, Thanks for your time most appreciated. 1. Option 1 as you may agree, not always is a good thing to do so I would drop that. 2. Option 2 - I have tried this in the following manner. As part of the look up for the Subjects via the DAO, I iterate through the list of Person.Phones

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-01 Thread Nivedan Nadaraj
Hi James Thanks for the time. I use the CPM for the whole use case. Mmm..is LDM mandatory for such a use case? Am open for thoughts just want the best way to implement it. Can you explain a bit further what your thought was please? Thank you Regards On Thu, Dec 2, 2010 at 2:13 PM, James