I'm afraid that is not possible. The grid gives you notification
immediately when selection status changes and for that it needs to
load the items.
-Matej
On Thu, Sep 17, 2009 at 1:24 AM, Bryce Bell bryce.z.b...@gmail.com wrote:
How do you keep a data grid from querying it's data source when
the first time I used genericsuperclass() was in generic daos after
reading https://www.hibernate.org/328.html,
though it has it's own quirks, it doesn't apply every where ..
abstract modifier in above code was needed,it's done so that one will
eventually subclass funnyfactory
and that
what happens if down the line the index of the type changes?: )
class FunnierFactoryA,B extends FunnyFactoryB
-igor
On Wed, Sep 16, 2009 at 3:43 PM, jWeekend jweekend_for...@cabouge.com wrote:
Since you can NOT do
class ST{S(){T t = new T();}} // broken
how would you create an object of
I'm trying to update a parent's, parent's, parent component using
AJAX. I tried combing the archives and came up with some seemingly
useful stuff (http://www.nabble.com/How-to-update-base-page-panel-from-child-page--td20998486.html#a21015568
), although I'm still have trouble. Below is a
I have a need to 'wrap' some content inside some border style markup,
specifically within a li ... /li combo but the panel that is being
inserted may be visible or invisible depending on logic within the panel
and the current session etc,.
When the 'wrapped' panel is invisible I don't want the li
On Thu, Sep 17, 2009 at 1:56 PM, Chris Colman
chr...@stepaheadsoftware.comwrote:
I have a need to 'wrap' some content inside some border style markup,
specifically within a li ... /li combo but the panel that is being
inserted may be visible or invisible depending on logic within the panel
If they don't, what would be the best way to have the border go
invisible if the child is invisible?
How about using wicket:enclosure child=wrappedPanel around the
border.
refer
http://cwiki.apache.org/WICKET/wickets-xhtml-
tags.html#Wicket%27sXHTMLtags-Elementwicket:enclosure
On Thu, Sep 17, 2009 at 2:19 PM, Chris Colman
chr...@stepaheadsoftware.comwrote:
If they don't, what would be the best way to have the border go
invisible if the child is invisible?
How about using wicket:enclosure child=wrappedPanel around the
border.
refer
... or, if you subclass the subclass ...
In the form I gave it's very fragile - just a trick really, but it tells you
a bit about what is actually in the bytecode and contradicts (as
conclusively as using javap) what some would have you believe.
Regards - Cemal
jWeekend OO Java Technologies,
Hi,
in our project we use a javax.validation implementation for
validating our forms. However there are some cases in which we
need to consider some information from wicket, like conversion
errors etc. Thus merging Wicket's and our own validation results
becomes an issue.
A reasonable approach
Vineet ,
Yes, this is a technique that, carefully and properly used, could help in
building a generic DAO.
Can you elaborate on intializing the class type in constructor. ?
Regards - Cemal
jWeekend
OO Java Technologies, Wicket Training and Development
http://jWeekend.com
vineet semwal
On Thu, Sep 17, 2009 at 2:19 PM, Chris Colman
chr...@stepaheadsoftware.comwrote:
If they don't, what would be the best way to have the border go
invisible if the child is invisible?
How about using wicket:enclosure child=wrappedPanel around the
border.
I'm using my own
Hi,
I would like to know if there is a better way to code this case : What
I would like to do is to enable/disable a link depending on a
condition. If the condition is true, than we create the link otherwise
we disable it. In both case, a label must be defined for the Link.
I mean, is it
Sure, just create it (including the onClick which might be invalid), but
afterwards set the setEnabled() as needed.
As long as the link is disabled, it can never be clicked thus the
onClick() will never be executed anyway, so it's irrelevant if the
requestFormModel is valid or not...
I dont
Another related article by Gafter:
http://gafter.blogspot.com/2006/12/super-type-tokens.html
class ST{
S() {
// T t = new T();
T t = new TypeReferenceT() {}.newInstance();
}
}
The unittest would then look like this.
public class CreateInstanceOfTypeParameter {
@Test
public
You are right. I don't need the setEnabled(false) in the onClick method
I have changed my code :
link = new Link(linkRequest) {
@Override
public void
Hi
As I said in my previous mail, just initialize the link once using the
upper variant.
Use an if before to create the requestFormModel, in case 2, the
requestFormModel can be null - as the onClick is never executed this
will not matter.
Have something like:
final Model requestFormModel;
Mattias,
OK about what you propose but we repeat the test a second time so the code
still remains very verbose.
Thanks for the suggestion.
I think that this is a general remark that some users make about Wicket. It
is very difficult to reuse part of the code.
Here is another example :
I have
Hi
Yes there'll always be some repetition. Depending on your logic you
might also stuff the first block in the onClick event to generate the
model if it's not used anywhere else. That could eliminate the first block.
The problem about reusable components in wicket is that probably you
might
Yes indeed! This (see Neal Gafter's code below) is neat and getting much
closer to being actually usable, as long as its implementation is hidden
well away. I'd probably mark some of those methods final too (it's a shame
the class itself can't be - a subclasser could mess up the type parameter
Hello,
I'm trying to add a hover effect for the actions column (icon with
popup menu panel on mouseover) in an ajax table.
The problem is that jQuery does not sense the new dom elements while
I'm retrieving them with Wicket Ajax - by clicking (header sort link),
so I'm using jquery Live query
Maybe you need to re-register it with wicket post/precallhandlers...
I have had lots of difficulties with jquery and ajax because the
markup added by jquery and the magic remains attached to the component
that is replaced via ajax... and then the state is a mess. With
pre/postcallhanlers you can
The problem is that jQuery does not sense the new dom elements while
I'm retrieving them with Wicket Ajax
I had an similar problem with javascript that was not executed when
component was rendered with ajax in my case, the javascript was
programed on onRender override method. In the occasion,
See if it work, I don't think you are needing an asynchronous behavior to
your link...
setResponsePage(getPage());
On Wed, Sep 16, 2009 at 4:30 PM, Ryan O'Hara rjoh...@gmail.com wrote:
I'm trying to update a parent's, parent's, parent component using AJAX. I
tried combing the archives and
Is it possible to create a panel that's inside a wicket:enclosure vi
an IComponentResolver implementation.
If so where do I hook into such a beasty?
I've tried replacing the standard EnclosureResolver in the apps
collection of resolvers with a CustomEnclosureResolver than I created by
extending
I'm not sure you can reload a whole page using AJAX... Why not reload the
containing Panel? Mind that you have to make sure that the panel outputs a
markup ID so that AJAX replacement can work...
Ernesto
On Wed, Sep 16, 2009 at 9:30 PM, Ryan O'Hara rjoh...@gmail.com wrote:
I'm trying to update
Hi Anton
The Problem you encounter is probably because you're holding on to a
hibernate object between requests, thus the references are not valid
anymore.
Have a look at
http://wicketinaction.com/2008/09/building-a-smart-entitymodel/
This works for us with hibernate.
Matt
Anton Komratov
igor.vaynberg wrote:
firstly, wicket 1.4.1 is out.
secondly, it looks like you need to increase the number of open file
handles allowed on your system because you are running out. one cause
may be that a wicket app is deployed in development mode instead of
deployment mode.
-igor
I'm also having problems with setting the size of a ModalWindow. It seems the
only way I can affect the height of the window is by setting the initial
height as px which is not an optimal solution because my users have
different screen resolutions.
Here's the code:
Do you consider to use jsp for this project? They do the entire
servlet
based on the tag name.(just kidding)
I've done my time in the jsp concentration camp - no more please! =)
Make sure of remove the old standard EnclosureResolver and add your
new
one on:
Yes, I've done that. I've made my
From the stack trace you can see that the EnclosureResolver calls
autoAdd which proceeds to do a render and eventually call
getChildComponent - which obviously fails.
It would seem like there needs to be some call to a resolver invoked for
the newly created Enclosure object itself to give it a
I suppose one way around it would be to override Enclosure and create a
DynamicEnclosure that supports the child components being resolved
dynamically by a resolver. I then make my CustomEnclosureResolver return
a DynamicEnclosure instead of a standard Enclosure.
I guess to do that I'd need to
I should have stated it clearly ..
i actually meant passing type Class in constructor itself like in following
code:-
class FunnyT {
private ClassTtypeClass;
public Funny(ClassTtypeClass){
this.typeClass=typeClass;
}
}
class FunnierT,R extends FunnyT{
private ClassTtypeClassT;
private
and using it in this way
Funnier Foo,Barfunnier=new FunnierFoo,Bar(Foo.class,Bar.class);
or
Funny Foofunny=new FunnyFoo(Foo.class);
--
regards,
Vineet Semwal
On Thu, Sep 17, 2009 at 8:16 PM, vineet semwal
vineetsemwal1...@gmail.comwrote:
I should have stated it clearly ..
i actually meant
Is it possible to just remove the checkbox from the header? If so, can
you give me an idea where in the source code that is? I was thinking
that the user would not be tempted to click the header if the checkbox
was not there. The problem is that the data source takes a long time to
be queried,
Isn't caching the data an option?
-Matej
On Thu, Sep 17, 2009 at 5:16 PM, Bryce Bell bryce.z.b...@gmail.com wrote:
Is it possible to just remove the checkbox from the header? If so, can you
give me an idea where in the source code that is? I was thinking that the
user would not be tempted to
Hi all,
I have a form that includes kinds of form components. There is a
dropdownchoise that determine the validation plan of the form.
When I select A item on dropdownchoise:
FirstName, LastName, Phone, Email inputs will be validated
When I select F item on dropdownchoice:
Disregard the last post. I just set display:none for the header check
box markup. It works fine.
Matej Knopp wrote:
I'm afraid that is not possible. The grid gives you notification
immediately when selection status changes and for that it needs to
load the items.
-Matej
On Thu, Sep 17, 2009
hi,
you could also use an Aspekt (e.g. with Aspekj) zu reinit all lazy
proxies on the next request. The Proxy objects would be detachted and
serialized throw
the models. With an Aspekt you can re-attach ALL hibernate proxies,
without triggering the DB.
Martin
Anton Komratov schrieb:
Hi, I'm
Is there a way of having a paging view for columns instead of rows? Does
anybody know how to do this or have any examples?
Thanks
Hi,
Is it possible to get rid of sessions by automatically saving page state
directly to URL, not into session?
So, for example, this can look like: ?pagestate=automatically serialized
state of the page
Of course, this won't work when page has models with large state because of
URL length limit,
we tried that already but dismissed it
wicket has no support for this and for these kind of things to work
everything must be come a post
you cant use any normal links.
also you are trading in memory for cpu speed and bandwidth which is in my
eyes more expensive then memory or hd space
Page
Am Donnerstag, den 17.09.2009, 08:06 +0300 schrieb Haim Ashkenazi:
OK, I think I've found it. :)
getResponsePage(Class) first links to a regular wicket url and only then
redirects to a bookmarkable one. This is why it didn't work when
invalidating the session :)
Any Questions so far?
I did
As can be seen by the Enclosure.getChildComponent method below the
component resolver expects to find the 'child' within its own parent -
i.e. it assumes that its *child* is actually its sibling via:
child = parent.get(childId.toString());
While all other children of the common parent are
Hi,
(Solution with no Spring is
preferable).
Use Spring, because it will limit your headache..
Maybe this is usefull:
http://www.wicket-praxis.de/blog/download/
use Link behind Praxisbuch Wicket Beispielcode for a maven-based
project with:
- Spring (open session in view filter,
as an further improvement use salve to completely remove your
headache :-)
http://code.google.com/p/salve
Am 17.09.2009 um 23:51 schrieb Michael Mosmann:
Hi,
(Solution with no Spring is
preferable).
Use Spring, because it will limit your headache..
Maybe this is usefull:
you can search this list to find answers to those questions.
-igor
On Thu, Sep 17, 2009 at 6:31 AM, konsul a.komra...@gmail.com wrote:
igor.vaynberg wrote:
firstly, wicket 1.4.1 is out.
secondly, it looks like you need to increase the number of open file
handles allowed on your system
somethign like:
webapplication.newajaxrequesttarget(page) {
ajaxrequesttarget t=super.newajaxrequesttarget(page);
t.addlistener(new ajaxrequesttarget.listener() {
onafterresponse(..) { notify_jquery_live_plugin_of_changes(); }
}
}
-igor
On Thu, Sep 17, 2009 at 5:02 AM, Decebal Suiu
To be more specific, I ran into this problem when trying to submit a form
from a panel that was rendered inside a modal window, but only if the panel
itself was rendered by ajax. In my case, that meant calling
somePanel.replaceWith(TestPanel), and having a form inside TestPanel fail.
The problem
Hi Micheal,
On Fri, Sep 18, 2009 at 12:41 AM, Michael Mosmann mich...@mosmann.dewrote:
Am Donnerstag, den 17.09.2009, 08:06 +0300 schrieb Haim Ashkenazi:
OK, I think I've found it. :)
getResponsePage(Class) first links to a regular wicket url and only then
redirects to a bookmarkable
Am Freitag, den 18.09.2009, 00:35 +0200 schrieb Peter Ertl:
as an further improvement use salve to completely remove your
headache :-)
http://code.google.com/p/salve
thank you.. interesting stuff..
do you have any experience in combination with hibernate?
mm:)
Am 17.09.2009 um 23:51
51 matches
Mail list logo