Session problem - object stays in after invalidate()

2012-09-27 Thread Ondrej Zizka
Hi, i am trying to implement a simple authentization. I've basically copied what's in the auth example #2 in wicket examples, and have a Logout button: add( new Link(logoutLink) { @Override public void onClick() { sess.invalidateNow();

Re: Found IExceptionMapper // Re: Redirecting on Exception - some ExceptionMapper? Also for exceptions outside app's code

2012-09-27 Thread Martin Grigorov
Hi, See https://cwiki.apache.org/confluence/display/WICKET/RequestCycle+in+Wicket+1.5 On Thu, Sep 27, 2012 at 4:13 AM, Ondrej Zizka ozi...@redhat.com wrote: Aah, just found in the referenced wiki:

Re: Small Wicket 6 Auth Example

2012-09-27 Thread Martin Grigorov
Hi, On Wed, Sep 26, 2012 at 11:39 PM, Anton Bessonov exe...@googlemail.com wrote: Hello Wicketeers, now same example for Wicket 6 and Jetty 8: https://github.com/Bessonov/wicket-6-example Best regards, Anton On 08/12/2012 08:53 PM, Anton Bessonov wrote: Hello wicketeers, I've

Re: Exception handling and testing

2012-09-27 Thread Martin Grigorov
Make the TabbedPanel stateless by using BookmarkablePageLink. P.S. Please start a new thread when you have new questions. On Wed, Sep 26, 2012 at 10:56 PM, Alec Swan alecs...@gmail.com wrote: Thanks, that worked as advertised. Now I am wondering if it's possible to get this to work when the

Re: AjaxEditableLabel Issue (Application in Production Mode)

2012-09-27 Thread Martin Grigorov
Hi, Something else breaks the behavior. Create a quickstart app and you will see that AjaxEditableLabel works fine in Production mode. On Wed, Sep 26, 2012 at 6:58 PM, Corbin, James jcor...@iqnavigator.com wrote: Hi Martin, Thanks for the feedback. What is a bit confusing to me is how the

Re: Session problem - object stays in after invalidate()

2012-09-27 Thread manuelbarzi
Which, when clicked, is performed, but in the second request, the User object, which set to null in my overriden signOut(), is back in my when are you exactly calling signOut? cant be deduced from your snippet and comment. Session.invalidateNow won't remove your custom session properties by

Re: Session problem - object stays in after invalidate()

2012-09-27 Thread Martin Grigorov
Hi, You need to use Session#invalidate() actually. #invalidate() schedules a call to #invalidateNow() at the end of the request cycle. By using #invalidateNow() you invalidate the current http session and right after this your app creates a new Session because it needs to finish the request

Re: Wicket 6 - add AjaxCallListener to existing component

2012-09-27 Thread Martin Grigorov
Hi, class MyComponent extends SomeAjaxComponent { @Override protected void updateAjaxAttributes(attrs) { super.updateAjaxAttributes(attrs); attrs.getAjaxCallListeners().add(getListener()); } protected abstract IAjaxCallListener getListener(); } On Thu, Sep 27, 2012 at

Re: Wicket 6 - add AjaxCallListener to existing component

2012-09-27 Thread Marieke Vandamme
Hi, I have a component that I use to do my own feedback an stuff. This component contains a LabeledWebMarkupContainer, which is passed inside the constructor. This LabeledWebMarkupContainer can be a TextField, DropDownChoice, Radio, ... The constructor is like this: public

Re: Wicket 6 - add AjaxCallListener to existing component

2012-09-27 Thread Martin Grigorov
You don't need to have access to AjaxRequestAttributes all the time. Just keep the reference to the listener and later add it in #updateAjaxAttaributes(). On Thu, Sep 27, 2012 at 10:50 AM, Marieke Vandamme marieke.vanda...@tvh.be wrote: Hi, I have a component that I use to do my own feedback

Re: Wicket 6 - add AjaxCallListener to existing component

2012-09-27 Thread Marieke Vandamme
Sorry, I don't get it... When I don't want to change all the constructors of my components, how can I use the function updateAjaxAttributes on an already existing component ? I thought this function is only overriddable when you are constructing the component. So when you want to add the same

Re: Wicket 6 - add AjaxCallListener to existing component

2012-09-27 Thread Marieke Vandamme
In wicket 1.5 I could do: this.visitChildren(new IVisitorComponent, Void() { public void component(Component component, IVisitVoid visit) { component.add(new AjaxEventBehavior()); } } -- View this message in context:

Re: Wicket 6 - add AjaxCallListener to existing component

2012-09-27 Thread Martin Grigorov
On Thu, Sep 27, 2012 at 11:05 AM, Marieke Vandamme marieke.vanda...@tvh.be wrote: In wicket 1.5 I could do: this.visitChildren(new IVisitorComponent, Void() { public void component(Component component, IVisitVoid visit) { component.add(new AjaxEventBehavior());

sicket 6 beta3 - wicket 6

2012-09-27 Thread Douglas Ferguson
I just tried to upgrade from beta3 to wicket 6 and one of my main pages blows up with a vengeance. It's the typical error indicating that something is in the code but now the markup and it lists out almost every field! You guys have any idea what might cause this? Works fine under beta3...

Re: sicket 6 beta3 - wicket 6

2012-09-27 Thread Thomas Götz
Please show us some code or create a Quickstart that demonstrates the problem, else it will be very hard to help you. On 27.09.2012, at 14:23, Douglas Ferguson the...@gmail.com wrote: I just tried to upgrade from beta3 to wicket 6 and one of my main pages blows up with a vengeance. It's

Re: Wicket 1.5 - Generic JSON Response

2012-09-27 Thread oggie
Ahijah wrote Martin Grigorov-4 wrote On Thu, Apr 12, 2012 at 7:38 AM, Ahijah lt; darren.greer@ gt; wrote: mountResource(/Feed2, new MyResourceReference()); class MyResourceReference extends ResourceReference { public IResource getResource() { return new MyResource(); } } Thanks

Re: sicket 6 beta3 - wicket 6

2012-09-27 Thread Douglas Ferguson
That may take some time, there are some layers.. I just was curious if there are any known issues from beta3 to the stable release. Douglas On Sep 27, 2012, at 7:36 AM, Thomas Götz t...@decoded.de wrote: Please show us some code or create a Quickstart that demonstrates the problem, else it

Modify markup of inherited page - merge title tags

2012-09-27 Thread rza
Hi there guys, I have several inheriting pages within my application in the following style: BasePage: SomePage (inherits BasePage): I'm struggling to combine these titles (Application + Site), so that in the result the title of SomePage would be titleSite :: Application/title. The

Re: Modify markup of inherited page - merge title tags

2012-09-27 Thread Martin Grigorov
Hi, I'd recommend you to use .java (e.g. a Label) to set the title instead of wicket:head. On Thu, Sep 27, 2012 at 3:57 PM, rza r...@adclear.net wrote: Hi there guys, I have several inheriting pages within my application in the following style: BasePage: SomePage (inherits BasePage):

Re: Wicket 1.5 - Generic JSON Response

2012-09-27 Thread Martin Grigorov
IAuthorizationStrategy is not used for IResource at the moment. You need to roll something yours for this check. On Thu, Sep 27, 2012 at 3:37 PM, oggie gog...@gmail.com wrote: Ahijah wrote Martin Grigorov-4 wrote On Thu, Apr 12, 2012 at 7:38 AM, Ahijah lt; darren.greer@ gt; wrote:

Re: Wicket 1.5 - Generic JSON Response

2012-09-27 Thread oggie
Any suggestions on how I might roll my own? I tried a few things like injecting the Feed class and annotating it, but I suspect it's too late at that point. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Generic-JSON-Response-tp4550807p4652442.html Sent

Re: Wicket 1.5 - Generic JSON Response

2012-09-27 Thread Martin Grigorov
There is no code in Wicket that will check for this annotation in non-Component classes. On Thu, Sep 27, 2012 at 4:17 PM, oggie gog...@gmail.com wrote: Any suggestions on how I might roll my own? I tried a few things like injecting the Feed class and annotating it, but I suspect it's too late

Re: sicket 6 beta3 - wicket 6

2012-09-27 Thread Jesse Long
WebSession#authenticate() disappeared after 6.0.0-beta3. Affected me... Cheers, Jesse On 27/09/2012 14:41, Douglas Ferguson wrote: That may take some time, there are some layers.. I just was curious if there are any known issues from beta3 to the stable release. Douglas On Sep 27, 2012, at

Solved // Re: Session problem - object stays in after invalidate()

2012-09-27 Thread Ondrej Zizka
Solved. I was writing an original reply, using I think I have something conceptually wrong, when it hit my mind: One of the components (the login/logout box) has this: final EsscAuthSession sess = (EsscAuthSession)getSession(); and the onClick() was like add( new

Re: Modify markup of inherited page - merge title tags

2012-09-27 Thread rza
Sorry, but this is not an option. I need to have the title in my markup. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Modify-markup-of-inherited-page-merge-title-tags-tp4652439p4652449.html Sent from the Users forum mailing list archive at Nabble.com.

Re: sicket 6 beta3 - wicket 6

2012-09-27 Thread Douglas Ferguson
Thanks.. I'll check it out. I don't think that would cause these problems. :) It's as if the wicket can't see any of the wicket:ids.. Did anything change with regards to enclosures? Or child extend? Douglas On Sep 27, 2012, at 9:24 AM, Jesse Long j...@unknown.za.net wrote:

Re: Exception handling and testing

2012-09-27 Thread Alec Swan
Thanks, works great. I just needed to convert IRequestParameters to PageParameters in RequestHandler#onException() in order to remember the tab selection made by the user throughout login. Is there a convenience method somewhere in wicket to convert between IRequestParameters and PageParameters?

Re: Small Wicket 6 Auth Example

2012-09-27 Thread Anton Bessonov
Hello Martin, I removed it from dependency, thank you! Best regards, Anton On 09/27/2012 09:15 AM, Martin Grigorov wrote: wicket-spring-annot.version1.3.7/wicket-spring-annot.version ^^ This is not really needed. -- Oracle Certified Expert, Enterprise JavaBeans Developer Oracle Certified

Re: WicketTester with custom html placement

2012-09-27 Thread Martin Grigorov
Hi, What is WebAppResourceStreamLocator ? It is not part of Wicket. You just need to point to a folder with the .html files. In Wicket 6: getResourceSettings().getResourceFinders().add(new Path(new Folder(src/main/webapp))) On Thu, Sep 27, 2012 at 10:22 PM, rdev devstuff2...@gmail.com wrote:

clickable calendar cells

2012-09-27 Thread grazia
My customer needs to have an overview of some data through a calendar; each calendar cell would contain data for a specific day; the cells would be clickable so that the user could be redirected to another screen with more information pertaining to the selected day of the month. Any idea as to

form with arbitrary number of fields

2012-09-27 Thread Steve Swinsburg
Hi all, I have a form that allows users to add an arbitrary number of fields, for example keywords for an item where there could be multiple. Up until now I have been processing my form where the fields are known and map directly to a model. However I'm unsure as to how this mapping works, for