If you use slf4j 1.5.3 or newer, serialization should just work fine.
See http://www.slf4j.org/faq.html#declared_static
Reinhard
Jeremy Thomerson schrieb:
Your logger instances should either be transient or static - so that
they are not serialized.
--
Jeremy Thomerson
I think we even 'officially' recommend upgrading from 1.2 (or before)
to 1.3 or higher because of the performance and scaling improvements
between the two releases.
Eelco
On Mon, Jul 27, 2009 at 10:51 PM, Nick Heudeckernheudec...@gmail.com wrote:
Thanks for the feedback. Looks like I can
Maybe this CSS trick will help you:
pre class=formatPre style=width: 500px wicket:id=body /
.formatPre {
overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2,
not needed in Firefox 3 */
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap !important; /*
Hi Jason
I dont have a performance comparison, but i cannot see why you should
gain better performance.
All spring beans are as default singleton, so you will just forward a
singleton using a singleton.
/Murat
2009/7/28 Jason Wang jason.w...@bulletin.net:
Hi all,
Although I am using
To set headers to a resource you need to extend setHeaders method from
WebResource. Example:
@Override
protected void setHeaders(WebResponse response)
{
super.setHeaders(response);
response.setAttachmentHeader(announcements.csv);
When I try to request a resource using url http://domain.com/resource.csv
then I get 302 to http://domain.com/resource.csv;jsessionid=joiadfadsfad
and all generated links it csv file with 'jsessionid' parameter.
How to use resource without sessionid?
Thank you
paolo di tommaso wrote:
Yep, intercept the ajax call and inc/dec a counter
-- paolo
Although I could correct the indicator behaviour in all my own AJAX
components, it would probably make more sense to incorporate it into wickets
default AJAX behaviour. If people think it makes sense I
Thanks for this answer Juri.
I tried it (once again) and it didn't work : the setHeaders method
isn't called...
I use Live HTTP headers to check what goes through :
http://localhost:8080/charts/data/dataId/KBU
GET /charts/data/dataId/KBU HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0
Hi Jason,
You could have a look at http://code.google.com/p/salve/
By making use of some byte code instrumentation it will replace your
dependency injections by static lookups, i.e. the best of both worlds. I
wouldn't know about the performance of each approach however.
Regards,
Wilko
Jason
It might give you a very slight edge to use a singleton as you (or the
annotation processor in this case) don't have to introspect and work
through a proxy. If you're not bothered by singletons (I, for one
typically are): go for it. However, keep that famous 'premature
optimization is the root of
Actually, thinking about it, if you're very tight on memory, it will
save you a reference, particularly when the page gets serialized. So
if you are worrying about efficiency *and* are ok with this code
style, it's an option. :-)
Eelco
On Tue, Jul 28, 2009 at 12:47 AM, Eelco
Hello,
I am a newbie to Wicket and am trying to fix an existing page. My problem: we
have a simple page containing a PagingNavigator and NavigatorLabel. They both
display the correct data upon initial load. To add a record, we navigate to a
page, enter the data and press submit. The data is
There's the risk of keeping the retrieved service as a reference
somewhere, e.g. by declaring it final and using it inside an anon
inner class, negating any and all gains you've done by using the
static lookup. The @SpringBean annotated references are safe to pass
around (as they are implemented
It works for me.
ResourceLink csvLink = new ResourceLink(csvLink, new
ResourceReference(AnnouncementCsvResource.ID), params);
add(csvLink);
public class AnnouncementCsvResource extends WebResource
{
public static final String ID = csv;
@Override
public IResourceStream
Maarten,
a) In my source tree, it is in webapp/src/main/resources/log4j.properties.
When deployed, it ends up in WEB-INF/classes/log4j.properties
b) yes, log4j-1.2.15.jar
log4j is working fine, I can get a root logger and log to it. The problem
seems that the wicket infrastructure is using slf4j
This seems like something that warrants a new Jira issue.
Regards,
Erik.
John Patterson wrote:
paolo di tommaso wrote:
Yep, intercept the ajax call and inc/dec a counter
-- paolo
Although I could correct the indicator behaviour in all my own AJAX
components, it would
i use my own (graphic) buttons in wicket.
after getting rid of my own code and just using a modified AjaxFallbackButton
with overridden getCallbackUrl() method,
the form was submitted but i could see an error in the error console of firefox
(translated by me):
security error: content from
Thanks Fernando, I was looking for some code like this!
Fernando Wermus-2 wrote:
Hi,
Instead using a servlet you could try the following (you can find the
whole
code at wicketstuff pickwick )
This way you will have the session because your are into the
requestCycle
On your
Hi,
this blog entry provides a solution for your problem:
http://oktech.hu/blog/2009/07/adding-and-removing-rows-in-wicket.html
Regards:
Szabolcs
John Patterson wrote:
Hi, I have a ListView in a table that can have rows dynamically added with
AJAX. When I add a row and enter a value, then
Hi All,I am interested in using wicket as web service framework. We already
use it to serve a web and mobile
web browser application but now we have a need to open up the API for
other types of client and I think it would be great if I can leverage
a lot of the wicket work already done
like the
Can you provide us with some code on which model you use and how?
--
View this message in context:
http://www.nabble.com/Problem-with-PagingNavigator-and-NavigatorLabel-tp24694245p24697018.html
Sent from the Wicket - User mailing list archive at Nabble.com.
Hi,
Many thanks to the Wicket-Team for the great Framework and
of course for the support I have received from the mailinglist.
I started with zero-Wicket knowledge and now 4 month later
we have launched a new community website:
http://fytch.com
It is based on Wicket, Spring, OpenJPA, Lucene,
Yeah.. cool ! You guys got your site goin' on 4real!
**
Martin
2009/7/28 Oliver Krohne okro...@yahoo.de:
Hi,
Many thanks to the Wicket-Team for the great Framework and
of course for the support I have received from the mailinglist.
I started with zero-Wicket knowledge and now 4 month later
Gute Arbeit Leute und viel Erfolg mit dem Projekt.
Ich hoffe wir ziehen auch bald nach :)
Gruß
Arthur
Von: Oliver Krohne okro...@yahoo.de
An: users@wicket.apache.org
Gesendet: Dienstag, den 28. Juli 2009, 13:01:53 Uhr
Betreff: Thanks Wicket-Team!
Hi,
Many
Erik van Oosten wrote:
This seems like something that warrants a new Jira issue.
Regards,
Erik.
Patch submitted https://issues.apache.org/jira/browse/WICKET-2401
--
View this message in context:
http://www.nabble.com/Ajax-indicator-turning-off-tp24655744p24697620.html
Sent
That's impressive! Nice concept, looks very good... I'll use it :).
Alex
okrohne wrote:
Hi,
Many thanks to the Wicket-Team for the great Framework and
of course for the support I have received from the mailinglist.
I started with zero-Wicket knowledge and now 4 month later
we have
Good work. Now, if I can only learn wicket as well as you have! :)
On Tue, Jul 28, 2009 at 7:01 AM, Oliver Krohneokro...@yahoo.de wrote:
Hi,
Many thanks to the Wicket-Team for the great Framework and
of course for the support I have received from the mailinglist.
I started with zero-Wicket
Not sure what code to include. The authors used a lot of class inheritance,
so it is difficult to include the whole thing.
HTML
table cellspacing=0 class=dataTableView
tr
th class=navigatorLabel colspan=1 wicket:id=navigatorLabelShowing
1 to 25 of 1157/th
th class=navigator colspan=2
The thing that makes your example awkward (IMHO, of course) is that it
leaves out how the value that the user selects makes its way back into
the app's domain object. The OP said he wants my model updates with 1,
2, and 3. From that I understand he has some object with an int
property...
class
Hello Jeremy, thanks for the reply. Painfully obvious now (doh!). David.
- Original Message -
From: Jeremy Thomerson jer...@wickettraining.com
To: users@wicket.apache.org
Sent: Monday, July 27, 2009 7:52:57 PM GMT -06:00 US/Canada Central
Subject: Re: WicketTester and
also safe to do with salve because it removes the field and rewrites
field reads with lookups.
wicket-spring and salve were created for a reason - to make it easy to
work with services in an environment where objects are often
serialized.
salve doesnt have the memory overhead of wicket's
Don't guess, profile it.
2009/7/28 Jason Wang jason.w...@bulletin.net:
Hi all,
Although I am using spring-wicket to prevent the whole spring being
serialized, It still brothers me to see the references in the model
object, for example:
Instead of using this:
public class
i have no idea. you might want to google it.
-igor
On Tue, Jul 28, 2009 at 1:43 AM, Arthur Leigh
Allenarthurleigh.al...@yahoo.de wrote:
i use my own (graphic) buttons in wicket.
after getting rid of my own code and just using a modified AjaxFallbackButton
with overridden getCallbackUrl()
sounds like you are not using loadable detachable models in your listview
-igor
On Mon, Jul 27, 2009 at 11:55 AM, LEWIS, LONNIElonnie.le...@hp.com wrote:
Hello,
I am a newbie to Wicket and am trying to fix an existing page. My problem: we
have a simple page containing a PagingNavigator and
Hi!
I am having trouble with listView.setReuseitems(true).
My problem is that
1. on first request the listview creates form components.
2. on second (or third ...) request the listView reuses the form components.
3. however, the propertymodels attached to the formcomponents at 1 are
no longer
+1
I will buy such trick
Erik van Oosten wrote:
Jonathan Locke wrote:
I've got 13 tricks coded up now and
ideas for a handful more, but if there are any requests out there, please
let me know
Perhaps something about handling URLs. Like writing your own url coding
strategy
+1
I would buy the book.
--
View this message in context:
http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p24703709.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail:
Yes, you are right.
Didn't read the question close enough.
--
View this message in context:
http://www.nabble.com/DropDownChoice-with-ID-and-Value-tp24686742p24703752.html
Sent from the Wicket - User mailing list archive at Nabble.com.
I don't see much buzz about this topic here, just a request for the trick
for the forthcoming Johnatan Locke book. So it seems for now that just a few
poople are interested in.
I experienced problems in different places with approaches where components
are loosely coupled and they try on their
ModalWindow (being a wicket cheat :) ) deserves a sole book of tricks. I'll
definitely author my own modal window unless someone fixes the original one.
-1 on including ModalWindow to the book.
egolan74 wrote:
I can't wait for yet another great Wicket book.
I will surly buy it.
regarding
Why create your own? Submit a patch to fix what you see is wrong with
the current one. Everyone wins.
--
Jeremy Thomerson
http://www.wickettraining.com
On Tue, Jul 28, 2009 at 12:20 PM, Vladimir Kkoval...@gmail.com wrote:
ModalWindow (being a wicket cheat :) ) deserves a sole book of
Martin,
please describe the context. I don't see how the process of serialization
makes the instance of the object obsolete.
In my practice I use a detachable model when rendering View page and I use a
static model when rendering an Edit page. In onSubmit method I save the
model object and
Wow Only four months? How many developers?
I'm very impressed :)
Fantastic work
Best regards
-Mensaje original-
De: Oliver Krohne [mailto:okro...@yahoo.de]
Enviado el: martes, 28 de julio de 2009 13:02
Para: users@wicket.apache.org
Asunto: Thanks Wicket-Team!
Hi,
Many
I have a LinkTree wherein I need to disable the links on certain nodes. It
was easy to disable the contentLink but I haven't been able to figure out
how to disable the iconLink. My links are BookmarkablePageLinks, but
iconLink is not a proper link; rather it appears that it's a td element
with
please describe the context. I don't see how the process of serialization
makes the instance of the object obsolete.
1. Page instantiation. Page instance 1 {manipulating target data 1},
formComponent instance 1-target data instance 1.
2. Ajax request or similar onto page.
3. Page refresh
Yes Igor,
I am using the Ajax. Here is my partial code. Please suggest me the possible
misses - Raj
protected void onNodeLinkClicked(AjaxRequestTarget target, TreeNode node)
...
Panel panelOnClick = new DetailTabbedPanel(detailPanel, defNode);
sounds like you are either not repainting the right component, or you
have invalid markup and the browser is puking on replacing the dom.
-igor
On Tue, Jul 28, 2009 at 11:02 AM, rajkaushikrajv...@yahoo.com wrote:
Yes Igor,
I am using the Ajax. Here is my partial code. Please suggest me the
Jeremy,
from my perspective ModalWindow is a mix of javascript widget that works in
non-wicket mode and an wicket wrapper that bridges js widget with wicket. It
is always created at the body level. That's why I said it's a cheat. Thus
are problems with form submitting when nested forms are used.
well thought out answer. thanks.
--
Jeremy Thomerson
http://www.wickettraining.com
On Tue, Jul 28, 2009 at 1:31 PM, Vladimir Kkoval...@gmail.com wrote:
Jeremy,
from my perspective ModalWindow is a mix of javascript widget that works in
non-wicket mode and an wicket wrapper that bridges
Martin,
why do you get Page instance 2 on page refresh?
MartinM wrote:
please describe the context. I don't see how the process of serialization
makes the instance of the object obsolete.
1. Page instantiation. Page instance 1 {manipulating target data 1},
formComponent instance
why do you get Page instance 2 on page refresh?
Wicket always deserializes page state from diskstore.. so it is a copy.
**
Martin
MartinM wrote:
please describe the context. I don
-
To unsubscribe, e-mail:
Or session store.. anyways, that's not relevant. The important fact is
that the copies are different.
**
Martin
2009/7/28 Martin Makundi martin.maku...@koodaripalvelut.com:
why do you get Page instance 2 on page refresh?
Wicket always deserializes page state from diskstore.. so it is a copy.
trying to undertand what is happening in your case. When the page is
serialized the steam contains the whole graph, including the ListView and
it's items and the page default model and the ListView items models. When
the page is deserialized, the whole graph is restored including page, its
model,
On Tue, Jul 28, 2009 at 8:31 PM, Vladimir Kkoval...@gmail.com wrote:
Jeremy,
from my perspective ModalWindow is a mix of javascript widget that works in
non-wicket mode and an wicket wrapper that bridges js widget with wicket. It
is always created at the body level. That's why I said it's a
I agree. Thanks, much appreciated!
On Tue, Jul 28, 2009 at 4:34 AM, Anton
Veretennikovanton.veretenni...@gmail.com wrote:
Congratulations! Nice work!
-- Tony
On Tue, Jul 28, 2009 at 12:32 AM, Andrew
Lombardiand...@mysticcoders.com wrote:
DZone launched a Refcard about Apache Wicket here -
Yes I understand this is a refresh problem.
1. By repainting I am assuming you mean that the right panel should invoke
the setOutputMarkupId. With this parameter set, the repainting is taken care
of by Ajaxified component. Please inform if you have different view.
2. If I have invalid markups,
Matej,
one of the problems is that when ajax submit happens (by pressing ajax
submit button that resides in a form that resides in a ModalWindow that is
put into another form) it contains no data for the components of enclosing
form but the process of handling the submit handles the eclosing
The following class fixes the problem. It is the evidence of mismatch I'm
saying about.
public class ModalWindowFormT extends FormT {
public ModalWindowForm(String id) {
super(id);
}
@Override
public Form? getRootForm() {
Form?
On Tue, Jul 28, 2009 at 9:58 PM, Vladimir Kkoval...@gmail.com wrote:
Matej,
one of the problems is that when ajax submit happens (by pressing ajax
submit button that resides in a form that resides in a ModalWindow that is
put into another form) it contains no data for the components of
On Tue, Jul 28, 2009 at 12:08 PM, Matej Knoppmatej.kn...@gmail.com wrote:
I would like to have some clarification on this. What is so difficult
about the Wicket Tree API? (apart from the fact that it uses swing
TreeModel which seem to be too confusing for some people).
Confusing for some,
Both links are created in LinkIconPanel. You can subclass it or
replace it by your own class (it's really a tiny class) and disable
the links there.
-Matej
On Tue, Jul 28, 2009 at 7:40 PM, Seven Cornersseven.cor...@gmail.com wrote:
I have a LinkTree wherein I need to disable the links on
I do not know exactly what happens, but if I run the debugger I can
see thet the page seen by the formcomponents' propertymodels is in a
different state than the one actually holding the form components.
I wonder if ajax has something to do with this, because only part of
the page is refreshed
Thank you...
On Mon, Jul 27, 2009 at 11:34 PM, Juri Prokofiev proj...@gmail.com wrote:
Maybe this CSS trick will help you:
pre class=formatPre style=width: 500px wicket:id=body /
.formatPre {
overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2,
not needed in Firefox
I would buy the book too. When will it be available?
--- On Tue, 7/28/09, Mathias Nilsson wicket.program...@gmail.com wrote:
From: Mathias Nilsson wicket.program...@gmail.com
Subject: Re: Twenty Six Wicket Tricks
To: users@wicket.apache.org
Date: Tuesday, July 28, 2009, 1:02 PM
+1
I
Why just 26 tricks?More please..!
I feel the learning curve for Wicket is kind of tall and more tricks can
definitely help new comers in terms of available practical tools and
understanding masterful use of Wicket by gurus and ... and ...
--- On Tue, 7/28/09, David Chang
Ok then. I'm a noob in maven and ... I even don't know how to make a
quickstart of this problem for you. I have never done Wicket project from
scratch. But I have just found a free maven by example book and started to
read. I will be back soon :)
Matej Knopp-2 wrote:
This would be then a bug
Doesn't really have to be a complete quickstart. Put the pages with
markup in a zip (without any external references to your daos, etc).
That should be enough.
-Matej
On Tue, Jul 28, 2009 at 11:13 PM, Vladimir Kkoval...@gmail.com wrote:
Ok then. I'm a noob in maven and ... I even don't know
Matej Knopp-2 wrote:
Modal Window is an ajax component. Submitting it with regular submit
is not supported and it never was.
But I would like to have AjaxFallbackModalWindow that survives page refresh.
Why not author my own if the aims are different? Probably requirements we
have are far
We developed a RAD framework that builds page design dynamically completely
basing on metadata. So there is no any concrete page that I could extract.
I believe it would be more convinient for you and simpler for me to just
have a look at the concrete page without dynamic layout.
Matej Knopp-2
On Tue, Jul 28, 2009 at 11:55 PM, Vladimir Kkoval...@gmail.com wrote:
Matej Knopp-2 wrote:
Modal Window is an ajax component. Submitting it with regular submit
is not supported and it never was.
But I would like to have AjaxFallbackModalWindow that survives page refresh.
Why not author
hi Juri
I did it the same way as you did and it worked fine. Even more : I
didn't even see lines in http header (???).
However, it doesn't fit my use case : I need to get the link to the
file to embed it in a javascript. Previously I did it this way :
PageParameters parameters = new
Hmm ... i can imagine the only case - somewhere resolveObject() method is
called during deserialization.
But I'm afraid your code don't have such a method and the cause is
different.
MartinM wrote:
I do not know exactly what happens, but if I run the debugger I can
see thet the page seen by
Is there a way to turn off the localization of the choices in a Palette
component? It looks like the AbstractChoice has the ability but the Palette
which uses AbstractOptions does not.
Thanks,
Tim
Hi Martijin,
Thats a very good point. I definitely overlooked that risk before. Thank
you for pointing it out!
Thanks,
Jason Wang
Martijn Dashorst wrote:
There's the risk of keeping the retrieved service as a reference
somewhere, e.g. by declaring it final and using it inside an anon
inner
Hi,
I am a rookie to Wicket and need help here. The problem may be easy for you
but the detailed introduction is tedious.
In one shortest sentence, the URL shown in the subject should be
http://dliu-pc:8080/WB/brainSideBar?wicket:interface=:1:comments:post::IFormSubmitListener::
instead (i.e.,
+1
26 Wicket Tricks or Wicket Cookbook or Wicket Recipes
(Whenever I am trying something new I always try a cookbook, It later
on acts as a reference too)
taha
On Wed, Jul 29, 2009 at 3:38 AM, Matej Knoppmatej.kn...@gmail.com wrote:
On Tue, Jul 28, 2009 at 11:55 PM, Vladimir
I have a workaround and it goes a little something like this:
script type=text/javascriptWicket.replaceOuterHtml=function(element,
text) {
new $(element.id).fade({ duration: 0.4, afterFinish: function(effect) {
if (Wicket.Browser.isIE()) {
Wicket.replaceOuterHtmlIE(element, text);
}
It might also be that it is wickettester related problem, maybe
something goes somehow wrong there. I will try to make a quickstart.
**
Martin
2009/7/29 Vladimir K koval...@gmail.com:
Hmm ... i can imagine the only case - somewhere resolveObject() method is
called during deserialization.
But
+1 Wicket Cookbook
On Tue, Jul 28, 2009 at 6:04 PM, taha siddiqi tawushaf...@gmail.com wrote:
+1
26 Wicket Tricks or Wicket Cookbook or Wicket Recipes
(Whenever I am trying something new I always try a cookbook, It later
on acts as a reference too)
taha
On Wed, Jul 29, 2009 at 3:38 AM,
Is anyone doing this:
http://www.google.com/support/googleanalytics/bin/answer.py?hl=enanswer=55519
If so can you share your code? If not I'll build it ;)
John-
80 matches
Mail list logo