you could write a HttpSessionListener:
in your WEB-INF:
listener
listener-classcom.my.SessionObserver/listener-class
/listener
class:
public class SessionObserver implements HttpSessionListener
{
private static final Log LOG =
Just tested it and found an entry on their mailing list. In maven 2,
at least the current version mvn eclipse:eclipse tries to download
sources and javadocs automatically.
Eelco
On 6/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
I'm guessing it includes the source jars if they are in your
If you look at the settings for the eclipse project in our parent
pom.xml you will see a setting that is responsible for downloading the
sources:
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
version2.3/version
Yeah, you're right. I just found a similar entry in our pom. Gawd, why
don't they just do that automatically.
Eelco
On 6/17/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
If you look at the settings for the eclipse project in our parent
pom.xml you will see a setting that is responsible for
Yeah, you're right. I just found a similar entry in our pom. Gawd, why
don't they just do that automatically.
our == Teachscape
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of
Eelco Hillenius wrote:
Thanks. I had blocked cookies on my test site for some reason. Why
cookies are needed in 1.3? In 1.2 that wasn't the case, was it?
It shouldn't be the case now either; links should always be rewritten
so that it includes the jsessionid if the cookie is not available
Eelco Hillenius wrote:
On 6/17/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
thats not entirely correct. while the event cannot be pushed to you, you
can
pull for it. you can set a cookie with expiration null - such a cookie is
destroyed when the window is closed. so you can poll for it ad
I was looking for a wicket solution, but this is not a bad idea. I will
try this later on today and see how it goes (it does seem straightforward
enough...)
Konstantinos
Harald Gruber wrote:
you could write a HttpSessionListener:
in your WEB-INF:
listener
That won't solve your problem though. You'd get the same kind of call
back as you would get by overriding onUnbind in a custom session
store. It won't do anything for catching the event that a user closes
a browser without properly logging out.
Eelco
On 6/17/07, wicket21 [EMAIL PROTECTED] wrote:
wicket21 schrieb:
I was looking for a wicket solution, but this is not a bad idea. I will
try this later on today and see how it goes (it does seem straightforward
enough...)
probably you can implement the HttpSessionListener interface in your wicket
application and
install it
Eelco Hillenius schrieb:
That won't solve your problem though. You'd get the same kind of call
back as you would get by overriding onUnbind in a custom session
store. It won't do anything for catching the event that a user closes
a browser without properly logging out.
those methods are
Eelco Hillenius schrieb:
That won't solve your problem though. You'd get the same kind of call
back as you would get by overriding onUnbind in a custom session
store. It won't do anything for catching the event that a user closes
a browser without properly logging out.
those methods are
Yes, and the same happens for AbstractHttpSessionStore#onUnbind
ok, admit, i didnt check the source code of AbstractHttpSessionStore ;-)
so i guess, that's what he needs...
-
This SF.net email is sponsored by DB2 Express
Juha Alatalo wrote:
Eelco Hillenius wrote:
Thanks. I had blocked cookies on my test site for some reason. Why
cookies are needed in 1.3? In 1.2 that wasn't the case, was it?
It shouldn't be the case now either; links should always be rewritten
so that it includes the jsessionid if the cookie
Al Maw wrote:
Eelco Hillenius wrote:
well, I have a project where the requirement is to do some things when
user
logs out, otherwise the same user can't use the application for the next
30
minutes. It works fine when user uses the logout link, but I want the
same
behavior when the user
though it implements the HttpSessionBindingListener and not the
HttpSessionListener.
i guess the difference between both ist, that the binding listener only
realizes and observes which
values of the session are bound and the session listener recognizes if a
session itself is created
or
Konstantinos:
Firstly, please quit replying with your own text indented with a , the
same as the text you're quoting. It makes it really difficult to see
what the heck is going on. ;-)
Secondly, I said onbeforeunload, not onunload.
Al
--
Alastair Maw
Wicket-biased blog at
Inspired by Al Maw's mail:)
I've seen some guys from DK around here and wanted to hear if any were
interested in a user day?
Not topics has been decided, so its free for grabs, both on the taking
and giving side.
Depending on how many we are we could spl
regards Nino
can't you debug it and break on the exception NullPointer?
But i agree somehow we should log this better.
On 6/18/07, Jonathan Locke [EMAIL PROTECTED] wrote:
aha. we might have two of these bugs, but i'm getting this trace
now. does
anyone have any idea what line of code it is that is
Yes you have :). private final static IGetAndSet getGetAndSetter(String
exp, Class clz) has changed quite a lot.
Do you have a unit test that fails now that shouldn't that i can add to
the PropertyResolverTest ?
No I don't.
is this exception now thrown then:
throw new
Hi,
As a result of how wicket stores pages in the session, links and pages do
expire quite often. I read a lot about it in the mailinglist archive, but
I'm still unsure how to handle it. It just seems very weird to run in to the
page expired message all the time. It's such a bad user experience:
Hi All,
We might have to embed lazslo inside some of our Wicket templates. Does it
generally play well with Wicket? Is there any information that you can
share. I'm yet to try this out - embedding Lazlso markup with Wicket, but
would be of great help if you already have something to share.
Hi,
I'm using IComponentInstantiationListener to add additional
functionality to my components. But in this listener I need to know the
model of the component to condition this functionality.
If we inspect the code, we can see that the listeners are called before
assigning the model to the
Aha:)
Then we just need some people to sign up...:)
regards Nino
Frank Bille wrote:
Was just thinking the same :)
I also think we can borrow a room at Avaleo (ITU's meeting rooms).
Frank
On 6/15/07, *Nino Saturnino Martinez Vazquez Wael *
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Al Maw wrote:
Konstantinos:
Firstly, please quit replying with your own text indented with a , the
same as the text you're quoting. It makes it really difficult to see
what the heck is going on. ;-)
Secondly, I said onbeforeunload, not onunload.
I've just added this functionality to
I will be out of the office starting 06/18/2007 and will not return until
06/25/2007.
I will check messages daily.-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
We are 2 guys so far:) Guessing that we need at least 5 to make it happend?
regards Nino
Nino Saturnino Martinez Vazquez Wael wrote:
Aha:)
Then we just need some people to sign up...:)
regards Nino
Frank Bille wrote:
Was just thinking the same :)
I also think we can borrow a room
Yeah, perhaps we could start out as an introduction/getting-started thingy
for a go-home-meeting or something. I don't have the time to arrange a lot
right now, but perhaps in aug.
Frank
On 6/18/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
wrote:
We are 2 guys so far:) Guessing
Yup better be late aug then, so we dont run into my vacation.. I've held
a couple of getting started wicket things now..
This should defiantly attract some people(it's like a free getting
started with wicket course...:))...
regards Nino
Frank Bille wrote:
Yeah, perhaps we could start out as
I've had this same issue when trying to build a component instantiation
listener for inspecting hibernate annotations. Since the
IComponentInstantiationListener interface doesn't have a hook for
onModelBinding, i've tried to use Behaviors instead. Can you try
something like this?
public
I think I cannot use this solution.
The problem in that case is that the behavior is executed in another
moment, not in instantiation time of the component. And the children of
the component depend of this listener.
For this reason, the only moment where I can execute the functionality
is in
Thank you Ernesto.
I've found a different solution.
Need 2 pages: NoPdfPage and MyPdfPage.
1). When hyperlink for PDF is clicked, onclick event opens a new window, which
points to PDF url, e.g. /myapp/MyPdf.go?params_go_here (Extension doesn't
matter. Iframes also work, just supply
Johan Compagner wrote:
Yes you have :). private final static IGetAndSet getGetAndSetter(String
exp, Class clz) has changed quite a lot.
Do you have a unit test that fails now that shouldn't that i can
add to
the PropertyResolverTest ?
No I don't.
is
no repro case currently.
Johan Compagner wrote:
can't you debug it and break on the exception NullPointer?
But i agree somehow we should log this better.
On 6/18/07, Jonathan Locke [EMAIL PROTECTED] wrote:
aha. we might have two of these bugs, but i'm getting this trace
now.
I'm just trying to use one of these two solutions in my Wicket app, and am
unsure of a couple things:
- I used gmap (original) first, and it checked out and installed super
easy. (As a sidenote, for some reason I had to add the dependency to
javax.servlet, servlet-api, 2.3 to my POM after
On Monday 18 June 2007 2:19 am, Eelco Hillenius escreveu:
Eelco Hillenius schrieb:
That won't solve your problem though. You'd get the same kind of call
back as you would get by overriding onUnbind in a custom session
store. It won't do anything for catching the event that a user closes
On 6/18/07, Jeremy Thomerson [EMAIL PROTECTED] wrote:
I'm just trying to use one of these two solutions in my Wicket app, and am
unsure of a couple things:
- I used gmap (original) first, and it checked out and installed super
easy. (As a sidenote, for some reason I had to add the dependency
With GMap2, how do I remove an overlay in a click event?
I need to be able to do this:
mapPanel.addClickListener(new ClickListener() {
private static final long serialVersionUID =
-7743409010362331350L;
@Override
public void clickPerformed(ClickEvent
Çäðàâñòâóéòå, Al.
Âû ïèñàëè Monday, June 18, 2007, 3:08:44 PM:
Al Maw wrote:
Konstantinos:
Firstly, please quit replying with your own text indented with a , the
same as the text you're quoting. It makes it really difficult to see
what the heck is going on. ;-)
Secondly, I said
I patched the code (my local checkout, although I'd like to see this
contributed) as follows:
/**
* Add an overlay to this map.
*
* @see GOverlay
* @see GMarker
*
* @param overlay
*/
public void addOverlay(GOverlay overlay)
{
overlay.setGMap2(this);
Crap! 10th of July and I would have been there.. :)
..unfortunately away in sunnier climes 1-9th of July.. :(
However, feel free to e-mail me about future events or things of
Wicket-interest at wille.faler (a t) gmail.com
Al Maw wrote:
Hello everyone,
As Wicket grows in popularity, we
Hi all,
I want to use an InlineFrame with a custom pagemap.
I created some simple demo code to illustrate, but I have some problems
with it ...
To create an InlineFrame with custom pagemap, there was the possibility to
choose from three different constructors on InlineFrame ...
1. -- public
it really depends on what you consider a reasonable while. two hours? six
hours? ten hours? set your session timeout to that period and you wont have
a problem - configure your container to swap idle session to disk.
if you have pages in your app that you consider reasonable to abandon for a
how could it be set up incorrectly? we got the message part of the NPE
just not the stack trace.
Eelco Hillenius wrote:
could it be this code that's not logging the whole exception?
protected void logRuntimeException(RuntimeException e)
{
though it implements the HttpSessionBindingListener and not the
HttpSessionListener.
i guess the difference between both ist, that the binding listener only
realizes and observes which
values of the session are bound and the session listener recognizes if a
session itself is created
or
There is now - since a few weeks - also
org.apache.wicket.application.IComponentOnBeforeRenderListener, which
may suit your needs better.
We (Teachscape) use it like:
public final class ValidationListener implements
IComponentOnBeforeRenderListener {
public void onBeforeRender(Component
the second constructor doesnt really make sense. imho it should be removed.
for it to work your page needs to have a constructor that takes a pagemap so
you can do
ipagemap map=new PageMap.forName(foo);
new InlineFrame(id, map, new MyPage(map)) where MyPage() { super(map); }
the third
I know IComponentOnBeforeRenderListener, but I cannot use this
interface, because I need to condition
the instantiation of the children of my component, depending of the
functionality of the Listener.
And if I use IComponentOnBeforeRenderListener, the instantiation has
been finished when the
I think we could move the wrap up:
setId(id);
this.model = wrap(model);
getApplication().notifyComponentInstantiationListeners(this);
I can't really think of anything that would go wrong because of that
(wrap is final), and it doesn't result in
i do not think we will allow what you want here.
this listener is invoked during the construction of the component, it is
really UNSAFE to call any methods on that component because it is still
being constructed. the only safe method to call is getid(), thats it. that
much is expressed in the
gah!
wrap() is final. but getmodel() calls initmodel() which is not! we are just
heading for a lot of trouble if we allow this! we are dealing with
unconstructed objects here, we should be as strict as possible.
and who is to say wrap() will stay final, that looks like a pretty handy
method to
wrap() is final. but getmodel() calls initmodel() which is not!
Yeah, but that isn't called in wrap, so whatever he is doing in the
listener, it won't be broken more than it would be now.
we are just
heading for a lot of trouble if we allow this! we are dealing with
unconstructed objects
Alberto, it would be interesting to learn what exactly you plan to do.
The before render listener should be pretty useful actually, also if
you want to add behaviors or set properties of components etc. The
construction of the components is one thing, but as long as they are
not rendered yet, it
I saw there was another message posted about this being a problem with ff
1.0.6 and the wikki states that ff 1.5* has only been verified working with
ajax. That being said, I'm using ff 2.0.04 and I am occasionally getting
this error:
Error: [Exception... Component returned failure code:
On 6/18/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
wrap() is final. but getmodel() calls initmodel() which is not!
Yeah, but that isn't called in wrap, so whatever he is doing in the
listener, it won't be broken more than it would be now.
no, it isnt called in wrap. but the reason he
no, it isnt called in wrap. but the reason he wants this is to access the
model, so i would imagine a call to getmodel() from within the listener isnt
far behind.
True, but this is not directly related to whether wrap can be called
there or not.
the only reason i agreed to allow to set the
i say rollback. i dont want to have a can of worms opened this late in the
game. lets wait for his usecase, it might even be doable without this thing.
-igor
On 6/18/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
no, it isnt called in wrap. but the reason he wants this is to access
the
Anyway, roll back?
Done. I agree with Igor after haven given it a bit of thought.
Sorry Alberto, if you give us more details on your use case we can try
to find another way.
Eelco
-
This SF.net email is sponsored by DB2
thx for fixing it.
using a method is obviously better, too.
gerolf
On 6/18/07, Gerolf Seitz [EMAIL PROTECTED] wrote:
done
checkout https://issues.apache.org/jira/browse/WICKET-661
gerolf
On 6/17/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
hi,
sometimes i'd like the datepicker to fire
Weird, wicket-ajax works for me well in IE6.
-Matej
On 6/17/07, Thies Edeling [EMAIL PROTECTED] wrote:
AjaxLink works in FF2 and IE7, however in IE6 I get a Page Expired
immediately. I saw some previous threads about the jsessionid not set
but I doubt this is the same problem as it works in
Earlier I asked how to relocate html, css, and other resources away
from the Java code and Al Maw gave me some good help in IRC. In our
conversation, he helped me to realize that the approach I was planning
would not work the way I had desired. I'd like to find out how others
on the list have
In my (humble) oponion, I'd say this is hardly possible, at least not in a
satisfactory way. You will have to find some compromise with your customer
on what parts can be redesigned and which not. Sure, there are good ways
to edit a Wicket application say with Dreamweaver. But still you have to
I've thought about creating a simple CMS system for the static
content in the html pages. But that really isn't in the scope of the
project. Maybe it should be. I could extract all static content
into properties files and use Labels all over, then have the app
search for properties files
i added an enhancement request for next wicket version to support the
inspector better. the problem i'm having with it right now is that after
visiting the inspectorpage, every request to the web app results in a page
expired exception. the app is basically dead. has anyone seen this type of
Hello Wicket,
We have to hide a couple of components from certain groups
of users. We tried doing it with a reusable AbstractBehavior,
but calling component.setVisible() in IBehavior.beforeRender()
caused the good old cannot modify component hierarchy
during render phase exception. There is no
I should say this class seems too heavy for http session - it holds
SimpleDateFormat instance which in turn holds DateFormatSymbols instance
which in turn has several arrays inside. BTW I've created class which
can dump http session contents into a file in the form of object tree,
in fact it's
I should say this class seems too heavy for http session - it holds
SimpleDateFormat instance which in turn holds DateFormatSymbols instance
which in turn has several arrays inside.
DateTextField? Not the one from wicket-datetime! That holds the
datePattern as a string, shouldn't hold
I ran into a problem where wicket(1.2.x) actually swallowed my exception
before reporting it to me and showed another exception. Take this code for
example :
add(new MyComponent(id,new LoadableDetachableModel() {
public void load() {
// do something that throws
Eelco Hillenius wrote:
I should say this class seems too heavy for http session - it holds
SimpleDateFormat instance which in turn holds DateFormatSymbols instance
which in turn has several arrays inside.
DateTextField? Not the one from wicket-datetime! That holds the
datePattern as a
Eelco and Rüdiger,
Thanks for your responses. I must admit I was hoping to hear that
others had solved similar problems with a more robust solution. I was
starting to wonder if what I wanted to do was possible, and it sounds
like it would be very difficult if even possible.
I've already
70 matches
Mail list logo