Dear All
I am using radioGroup example found at URL:
https://cwiki.apache.org/WICKET/using-radiogroups.html
when I am clicking on submit button then old/Dafault selected values are
printing.
Using following code(saveRoleAssignments method) I want to print user
selected radio button values (e.g.,
On 10 Mar 2011, at 00:42, Igor Vaynberg wrote:
i am +0 for refactoring the code so that oninitialize() cascade is not
started from page#add() but from somewhere before page#onconfigure().
this way oninitialize() is safe to override in pages because it will
not be invoked from page's
Oh the horror I have been through the last 6 years where I could
randomly call add() inside my page's and panel's constructor. Over
1500 hand crafted pages by about 4 hands of developers and they are
all ready for anti-depressants because of the troubles the component
constructor has caused. Yes,
Thanks! I'll look into it this weekend and get back here. Preferably
I'd like a solution without forms, but this approach is certainly
better than hacking into the wicket-ajax call.
Antoine
On Wed, Mar 9, 2011 at 6:07 AM, Richard Nichols r...@visural.com wrote:
You can do this on the client
Ok I've given it a run.. And are having problems :(
It still does'nt seem like ViewOrEdit honors the fact that it is either
ViewOrEdit.
So it either looks like:
http://img826.imageshack.us/i/greenshot20110310111030.png/
Or
http://img689.imageshack.us/i/greenshot20110310111207.png/
If I try to
I've added generics.. Still not working though, it's as if the components
get added twice (and the fragment never gets added or something like that)
Index:
branches/1.5/visural-wicket/src/com/visural/wicket/component/viewmode/ViewOrEdit.java
Doh my bad, I had the components markup in my html as well as in the
fragment, so when I removed them from the html everything works as wanted:)
2011/3/10 nino martinez wael nino.martinez.w...@gmail.com
I've added generics.. Still not working though, it's as if the components
get added twice
In the constructor of a class which extends WebPage, is there a way to
redirect to another page?
setResponsePage() apparently will not work in a constructor.
--
View this message in context:
Hi guys, is this an option to store the JPA entity manager for a wicket
webapp:
public class DBUtil {
private static EntityManagerFactory entityManagerFactory = Persistence
.createEntityManagerFactory(db);
private static ThreadLocalEntityManager emHolder = new
use restartresponseexception
-
vineet semwal
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Redirecting-to-another-page-in-a-WebPage-constructor-tp3345688p3345714.html
Sent from the Users forum mailing list archive at Nabble.com.
Have a look at databinder or warp-persist for a better implementation.
Should you go with your own implementation, do not forget to clear the
ThreadLocal at the end of the request to prevent:
a) leaking
b) re-using an EntityManager from a previous request (most if not all
application servers
I usually use two set of configuration for Sprint (in case that you're
using it) and also maven profiles allows you to forget setting the
proper one. Also I have two set of logger configs and maven chooses
the correct one.
If you need more details just reply me.
Regards.
On Wed, Mar 9, 2011 at
[drama]
So to summarize my rant:
-1 for removing the ability to use add inside a constructor.
+0 for improving the handling of oninitialize
+1 for improving the documentation on the lifecycle of components and
the event chain called during processing [2]
I assume that means you don't
I'd go for guice persist if thats an option..
2011/3/10 Bas Gooren b...@iswd.nl
Have a look at databinder or warp-persist for a better implementation.
Should you go with your own implementation, do not forget to clear the
ThreadLocal at the end of the request to prevent:
a) leaking
b)
Which is basically warp-persist, but integrated into guice. But as far
as I know, it will be only be integrated as of guice 3.0;
Bas
Op 10-3-2011 15:29, nino martinez wael schreef:
I'd go for guice persist if thats an option..
2011/3/10 Bas Goorenb...@iswd.nl
Have a look at databinder or
Hi all,
I have a question regarding resource loading in general (sorry for
little OT). What code should I use to load a property file which is
located in src/main/resources folder (maven directory structure)? I
tried various snippets and the only one working for me under both tomcat
IMO warp-persist is dead and Guice 3.0 should be final soon (rc3 is out now):
http://code.google.com/p/google-guice/downloads/list
Witold
Am Thu, 10 Mar 2011 15:31:19 +0100
schrieb Bas Gooren b...@iswd.nl:
Which is basically warp-persist, but integrated into guice. But as far
as I know, it
-1 on removing add() from ctor, too
it will piss of a huge load of wicket developers for a tiny and questionable
benefit.
things like this made me drop tapestry btw (thanks for the really big laugh,
martijn :-)
we don't want users to leave because we make decisions from within the ivory
I'm a Wicket newbie, working my way through /Wicket in Action.
/I don't understand redirection too clearly yet, but there is
an example in the book which doesn't work right when I
try it and I'd like to ask if the book example code makes
sense to more experienced folks.
Page 271 Listing 11.3
You can also use:
AnyClassInSrcMainJava.class.getClassLoader().getResource(modules.properties)
On Thu, Mar 10, 2011 at 4:29 PM, Marek Šabo ms...@buk.cvut.cz wrote:
Hi all,
I have a question regarding resource loading in general (sorry for little
OT). What code should I use to load a property
On Thu, Mar 10, 2011 at 12:36 PM, Jim Goodwin sophin...@comcast.net wrote:
I'm a Wicket newbie, working my way through /Wicket in Action.
/I don't understand redirection too clearly yet, but there is
an example in the book which doesn't work right when I
try it and I'd like to ask if the
Hi Andrea, code is too long to attach here.
What can I do?
-
Developer
Wicket
Java
JSP
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Using-jQuery-with-Wicket-tp3343275p3346586.html
Sent from the Users forum mailing list archive at Nabble.com.
alternatively use:
AnyClass.class.getResourceAsStream(...)
Am 10.03.2011 um 19:20 schrieb Martin Grigorov:
You can also use:
AnyClassInSrcMainJava.class.getClassLoader().getResource(modules.properties)
On Thu, Mar 10, 2011 at 4:29 PM, Marek Šabo ms...@buk.cvut.cz wrote:
Hi all,
I
On Thu, Mar 10, 2011 at 10:37 PM, Peter Ertl pe...@gmx.org wrote:
alternatively use:
AnyClass.class.getResourceAsStream(...)
this will look next to AnyClass.class, not in the root of the classpath
Am 10.03.2011 um 19:20 schrieb Martin Grigorov:
You can also use:
Thaks to all forum users for their responses.
I have solved the problem.
The problem was related with authentication methodology.
Happy Wicketlying to all
-
Developer
Wicket
Java
JSP
--
View this message in context:
Hi,
thanks for suggestions. I know these variants but I've never had a file
in src/main/java, there's always something like org.company package before.
Regards,
Marek
On 03/10/2011 10:00 PM, Martin Grigorov wrote:
On Thu, Mar 10, 2011 at 10:37 PM, Peter Ertlpe...@gmx.org wrote:
Hi all,
what is the recommended way to mount huge amount of an images (thousands)
in app? Does mountSharedResource() has any bottleneck? Simplified code look
like:
Folder folder = ((Start) Application.get()).getUploadFolder();
File[] files = folder.getFiles();
ListFile lList =
The general idea is to mount a single handler, which takes the filename
from the url.
There is no reason to mount all images by such a handler one-by-one.
Bas
Op 10-3-2011 23:01, Ladislav DANKO schreef:
Hi all,
what is the recommended way to mount huge amount of an images (thousands)
in app?
+1 for the approach you mention where onInitialize is called from the framework
and not as a surprise side effect of calling page#add().
From: Maarten Billemont [mailto:lhun...@gmail.com]
On 10 Mar 2011, at 00:42, Igor Vaynberg wrote:
i am +0 for refactoring the code so that oninitialize()
+1 for keeping calls to add() in the Component constructor. This
makes upgrading as painless as possible.
+1 also for having onInitialize() mimic:
private boolean initialized = false;
/// etc
protected void onBeforeRender() {
if (!initialized) {
onInitialize();
initialized = true;
}
Hey All,
I'm attempting to add a css class to the body element of extensions of our base
page. I've been trying to get BodyTagAttributeModifier working but it doesn't
seem to do anything.
In the onInitialize method I'm using the following:
add(new BodyTagAttributeModifier(class, true,
Create a smaller version of it (a quickstart application) demonstrating what
you want to achieve.
Josh.
I get this error even though I set output markup ID to true on the component
that is being replaced (and the one that is replacing it):
Root cause:
java.lang.IllegalArgumentException: cannot update component that does not have
setOutputMarkupId property set to true. Component:
I should add that this is on 1.5-rc2. Previously on 1.4.16 the exact same code
(except for package renames) worked fine.
Chris
-Original Message-
From: Coleman, Chris [mailto:chris.cole...@thalesgroup.com.au]
Sent: Friday, 11 March 2011 4:02 PM
To: users@wicket.apache.org
Subject:
You did say that you set output markup ID to true on both components,
but maybe you should double check that. I had a very similar problem
once with an AjaxTabbedPanel that went like this:
1-The first displayed panel (tab) did not have setOutputMarkupId(true);
2-When the second tab is selected
Hmmm, it is in a tab panel so it could be the scenario you mention. I'll check
out that theory.
Chris
-Original Message-
From: Bertrand Guay-Paquet [mailto:ber...@step.polymtl.ca]
Sent: Friday, 11 March 2011 4:56 PM
To: users@wicket.apache.org
Subject: Re: Wicket thinks
On 10 Mar 2011, at 13:25, vineetsemwal wrote:
use restartresponseexception
While drf may not have meant what he said, RestartResponseException will not
actually redirect to another page, it will just load the other page as a
response to the current page's URL. That is often very confusing
37 matches
Mail list logo