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 =
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
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
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
hi all,
i got some sort of crud page consisting of a listview and a detailview for my
objects. depending on a stateflag either the listview is shown or the
detailview.
the detailview contains an addresspanel (textfields for my properties, which
use
propertymodels to get the fieldvalues).
hi,
i traced a bit by adding
protected void onComponentTag(final ComponentTag tag) {
System.out.println(ADRESSPANEL + getModel());
this.visitChildren(new IVisitor() {
public Object component(Component component)
Martijn Dashorst schrieb:
Are there any validation errors?
no
-harald
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just
ok, i got a workaround..if i replace my addresspanel in my onEditAction()
method with a new one, it works.
though it would be interesting, why the fieldvalues didnt get updated on
modelobject change.
-harald
-
This SF.net
try this...
public void onSubmit() {
File file = generatePdfReport();
ResourceStreamRequestTarget target = new
ResourceStreamRequestTarget(new
FileResourceStream(new org.apache.wicket.util.file.File(file)));
target.setFileName(Filename.pdf);
kenixwong schrieb:
Ignore the previous question
The 2 line is generate the report in pdf format. Yeah, it success. Then come
to the 3rd line, it prompt me Null Value. SO, it that mean cant read the
pdf file and then display it into the browser ?
3System.out.println(file =
you could implement it as behavior and just add it to the dropdown...
have a look at my example. the javascript is composed and written in the
onRendered
method so its written out right after the component.
harald
example ---
import org.apache.wicket.Component;
import
hi all,
i was just wondering, if other users might have thought about the usefulness of
extending FeedbackMessages by a new type ALERT
(and the according classes (Component.alert(message)...).
The reason for this would be, to provide the user special feedback shown
through a javascript alert
hi all,
i got a WicketNotSerializableException since today. does anybody else
have those exceptions?
org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
Unable to serialize class:
org.apache.wicket.extensions.markup.html.repeater.data.table.NavigatorLabel$1
i'm
I want to be able to have the flexibility to leave the header out in
certain markup variations without wicket generating an error because the
page tries to add the header component.
guess in your base webpage you should fill the header-div/span with a
default WebMarkupContainer ( add(new
dont know, if its the best way, but i set the locale in my session
constructor:
public MyWebSession(...) {
super(application, request);
if (!WebApp.SUPPORTEDLOCALES_LIST.contains(getLocale())) {
setLocale(WebApp.DEFAULT_LOCALE);
log.debug(Setting
hi,
i came over from another framework to wicket because i didnt like the
api change with every release there and liked the way wicket does things.
first i was not sure which version of wicket to use and read the mailing
list and found out, that 2.0 suits best to me. after starting 2 bigger
is there a deadline for making the decision whether to keep 2.0 as it is
or go back to 1.3?
i am working on two projects which will go into production in the next
few weeks. guess the major work downgrading to 1.x is the lack of
generics, which i found out to be very useful.
cheers,
h.
hi all,
any ideas how to set a default locale for sessions (wicket 2.0
snapshot)? i support only a limited amount of locales in my app and need
to get some localized data from my database using the sessions locale.
my first thought was to set the locale in my websession's constructor.
but it
19 matches
Mail list logo