I noticed that CompoundPropertyModel is deprecated in 1.5 but I can't find
anything relating to this on the "Migration to Wicket 1.5" page.
What is meant to be used instead of this class?
DISCLAIMER:---
This e-mail transmi
At the bottom of this page:
https://cwiki.apache.org/WICKET/working-with-wicket-models.html
it says that the IModel interface was simplified in Wicket 2.0... should that
really be Wicket 1.2?
Never heard of Wicket 2 and I can see the 'new' style interface in Javadocs for
1.5.
DISCLAIMER:---
>>>
>>> Just like EJBs, you should be careful about how much interaction you do
>>> beyond your object's scope within the constructor. Your component doesn't
>>> have a hierarchy, getPage() cannot be accessed, none of your subclass
>>> constructors have been invoked and therefore your instance
Wicket only knows how to construct bookmarkable pages when they have
either a default constructor or a constructor taking *only*
pageparameters. Any other constructor is outside the realm of wicket's
capabilities and responsibility.
In your case, how could Wicket construct the page when it is dire
Thanks. I'll give feedback if needed
On Mar 9, 2011 4:22 AM, "Richard Nichols" wrote:
> I've committed what appears to be a mostly working visural-wicket with 1.5
> (rc2) compatibility.
>
>
http://code.google.com/p/visural-wicket/source/browse/#svn%2Fbranches%2F1.5
>
> If there are any issues foun
You can do this on the client side relatively easily.
Just bind a javascript event handler to the onkeydown event in the browser.
When these key(s) are depressed change a form input to indicate which keys
are pressed.
When your Ajax event submits, you can check the model of the component the
inp
On 08/03/2011 4:07 PM, Igor Vaynberg wrote:
On Tue, Mar 8, 2011 at 11:42 AM, Maarten Billemont wrote:
On 08 Mar 2011, at 17:54, Carl-Eric Menzel wrote:
However, there are much better arguments than existing codebase for
still allowing constructors. First, constructors are natural places to
do
you cannot have a bookmarkable url for a page instance, only for a
page class with parameters, so
setResponsePage(MyPage.class, somePageParameters) will give you a
bookmarkable url
-igor
On Tue, Mar 8, 2011 at 8:09 PM, Alec Swan wrote:
> Hello,
>
> I have a form which calls the following statem
Hello,
I have a form which calls the following statement in its onSubmit() method:
setResponsePage(new MyPage(pageParameters, extraParam1, extraParam2))
NOTE: The MyPage construtor calls WebPage constructor as
super(pageParameters) and then adds extraParam1 and extraParam2 to
WebPage.getPagePara
I've committed what appears to be a mostly working visural-wicket with 1.5
(rc2) compatibility.
http://code.google.com/p/visural-wicket/source/browse/#svn%2Fbranches%2F1.5
If there are any issues found, please report them at
http://code.google.com/p/visural-wicket/
cheers,
Richard.
On Wed, Mar
Hello all!
Nice replies, I really appreciate them.
I liked the maven plugin, that was exactly what i was looking for.
Winstone also looked like a good alternative.
Thanks for the replies.
Regards!
On Tue, Mar 8, 2011 at 9:02 PM, Nitnatsnok wrote:
> To create a runnable .war file with just a mav
To create a runnable .war file with just a maven plugin I used this tool:
http://simplericity.com/2009/11.html
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Run-a-standalone-wicket-app-tp3339521p3342507.html
Sent from the Users forum mailing list archive at Nabble.c
Hello,
I have been a naughty boy; I designed my form without using a
LoadableDetachableModel. Serves me right. I have now changed my page's
domain object so that it is used in the form and the form's WebPage using a
LoadableDetachableModel.
So far so good, but I have a problem with my Image compo
On Tue, Mar 8, 2011 at 11:42 AM, Maarten Billemont wrote:
> On 08 Mar 2011, at 17:54, Carl-Eric Menzel wrote:
>>
>>
>> However, there are much better arguments than existing codebase for
>> still allowing constructors. First, constructors are natural places to
>> do stuff like that. Yes, they have
On Tue, Mar 8, 2011 at 6:03 PM, GOODWIN, MATTHEW (ATTCORP)
wrote:
> +1 for clear documentation/Javadoc explaining proper use of
> onInitialize.
>
> Does this exist somewhere? As someone new to Wicket I'm trying to learn
> as fast as I can and a lot of examples (almost exclusively) I see out
> ther
On 08 Mar 2011, at 17:54, Carl-Eric Menzel wrote:
>
>
> However, there are much better arguments than existing codebase for
> still allowing constructors. First, constructors are natural places to
> do stuff like that. Yes, they have limitations, and yes, PostConstruct
> exists for a reason, but
ok great.. I'll probably take at look at it monday then..
2011/3/8 Richard Nichols
> Hi Nino,
>
> The version in the public respository 1.5 branch is still a direct copy of
> 1.4 - sorry I haven't commited the WIP 1.5 changes yet.
>
> I'll aim to get the WIP committed in this week.
>
> cheers,
>
+1 for clear documentation/Javadoc explaining proper use of
onInitialize.
Does this exist somewhere? As someone new to Wicket I'm trying to learn
as fast as I can and a lot of examples (almost exclusively) I see out
there show the add(..) from within the constructor - which is apparently
an anti-p
On Tue, 8 Mar 2011 17:46:26 +0100
Maarten Billemont wrote:
> This is a valid vote if we can come up with a way of not having
> random failure side-effects from mixing the two (which is the whole
> reason the the issue exists in the first place), without a final
> onInitialize and an exception in
On Tue, 8 Mar 2011 17:43:29 +0100
Maarten Billemont wrote:
> On 08 Mar 2011, at 16:39, Pedro Santos wrote:
> >
> > I vote for solution 3: postpone the onInitialize call, possible to
> > the first Component#configure execution. Then the problem of
> > initialization code being executed for not f
Thanks Michael for your quick response.
Let me know if I got it correctly:
I created the following generic model:
public class GenericDetachableModel extends LoadableDetachableModel {
private final long id;
private final Service service;
public GenericDetachableMo
On 08 Mar 2011, at 17:38, Hans Lesmeister 2 wrote:
>
> +1 for making Page.onInitialize() non-final. Since 1.4.12 we have migrated a
> lot of code moving construction of the component hierarchies to
> onInitialize. We are really very happy with the way it is now in 1.4.
>
> -1 for throwing an exc
On 08 Mar 2011, at 16:39, Pedro Santos wrote:
>
> I vote for solution 3: postpone the onInitialize call, possible to the first
> Component#configure execution. Then the problem of initialization code being
> executed for not fully constructed components go away.
I actually also thought of that,
+1 for making Page.onInitialize() non-final. Since 1.4.12 we have migrated a
lot of code moving construction of the component hierarchies to
onInitialize. We are really very happy with the way it is now in 1.4.
+1 for clear documentation/Javadoc explaining proper use of onInitialize.
(Developers
call setescapemodelstrings(false) on the textfields to disable escaping.
-igor
On Tue, Mar 8, 2011 at 7:48 AM, Henrique Boregio wrote:
> Hi, quick question.
> Wicket automatically escapes special characters so when I type in:
> This is "my" house.
>
> What gets stored in my database is: This is
wont the user have two or more sessions if they are logged in concurrently?
-igor
On Tue, Mar 8, 2011 at 5:52 AM, shetc wrote:
> Sorry Igor, I think I'm missing something obvious here. Won't the GUID from
> the cookie and session
> always match as the cookie was generated from the equivalent ses
Hi, quick question.
Wicket automatically escapes special characters so when I type in:
This is "my" house.
What gets stored in my database is: This is "my" house
When I try to display it using a Label, like:
new Label("label", DAO.getValue(id));
It does not convert the " to quotes.
Is there a w
I vote for solution 3: postpone the onInitialize call, possible to the first
Component#configure execution. Then the problem of initialization code being
executed for not fully constructed components go away.
If it is really important to have a callback method for path cognizant
components, than t
Hi,
Pass an IModelmodel into your dataprovider instead of the
DomainObject itself.
e.g.
class MyPanel
private final IModelmodel;
public MyPanel (String id) {
super (id);
model = new LoadableDetachableModel() {
protected DomainObject load() {// return object
Hi,
I have a DataProvider that implements IDataProvider, and for example in the
size method I need to call the service as follows:
public int size() {
return service.countAllByDomainObjectY(domainObjectY);
}
DomainObjectX contains a manytoone relationship with DomainObjectY.
So,
Interesting problem.
It helped me visualize the issue when I tried to suggest:
myPage() {
add(new Thing(this,...)); // 'this' doesn't exist yet
}
I think building component hierarchy from constructors feels natural and
it's going to be a hard sell to change to support this use case where
On Tue, Mar 8, 2011 at 1:21 PM, Antoine van Wel
wrote:
> Since "you can't always have what you want"..
>
> Is there any PHP framework out there which comes even close to Wicket;
> component based, strict separation between HTML and programming,
> stateful, out-of-the-box Ajax support, event handli
Hi!
If you use ajax, you can register js functions into wicket ajax js
framework to show and hide notification and mask off layer:
Wicket.Ajax.registerPreCallHandler(showBusysign);
Wicket.Ajax.registerPostCallHandler(hideBusysign);
Wicket.Ajax.registerFailureHandler(hideBusysign);
Yo
Sorry Igor, I think I'm missing something obvious here. Won't the GUID from
the cookie and session
always match as the cookie was generated from the equivalent session?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-stop-concurrent-logins-tp3332127p3341407.html
I don't think you are going to get all that from a PHP-based framework.
I have used CakePHP, which is sorta Rails-like, for production projects.
It's pretty nifty and has good community support.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/preferred-php-framework-by
> Sadly reality is that PHP is more widely adopted. Apache comes almost
> by default with PHP. So I was wondering, does anything come close to
> Wicket, to ease the pain.. Or to have a stronger case for Wicket in
> discussions.
Do you know Zeta Components which entered the apache incubator for a w
Hi!
My idea is this: Somewhere in the future (for example in wicket 1.6)
adding copmonents from the constructor will be prohibited, but till
than it should be allowed.
--
Zoltán Nagy
-
To unsubscribe, e-mail: users-unsubscr...@
Now wait a moment, let me be very clear that I prefer Wicket .. I
don't want misunderstandings about that ;-)
Sadly reality is that PHP is more widely adopted. Apache comes almost
by default with PHP. So I was wondering, does anything come close to
Wicket, to ease the pain.. Or to have a stronger
2011/3/8 Josh Kamau :
> I dont know of any. If you prefer scripting languages, there is a
> scala+wicket integration. Just google it if you are interested.
I would not call scala a scripting language. It is a statically typed,
compiled JVM language. It's a scripting language in the same sense
Java
I dont know of any. If you prefer scripting languages, there is a
scala+wicket integration. Just google it if you are interested.
Josh.
Hi,
I quickly wrote this, it seems to work.. But, does anyone know if is there a
better (wicket) way to do it ?
Regards,
Yves-Marie
class CopyAttributesBehavior extends AbstractBehavior {
private static final long serialVersionUID = 1L;
private IValueMap attributes;
@Ov
+1 for Symfony, probably as good as you can get for PHP. But no, it
won't work like wicket. Afaik there are no stateful PHP frameworks out
there (but I could be wrong).
/Robert
On 03/08/2011 01:30 PM, Martin Makundi wrote:
Sorry..not close but far...maybe I meant keep enemies closer ;)
**
Ma
Sorry..not close but far...maybe I meant keep enemies closer ;)
**
Martin
2011/3/8 Martin Makundi :
> Hmm.. I would personally stay as close as possible from non statically
> typed languages ;)
>
> Ofcourse it depends on what you are making, if it is worth making and
> so forth ;)
>
> **
> Martin
Hmm.. I would personally stay as close as possible from non statically
typed languages ;)
Ofcourse it depends on what you are making, if it is worth making and
so forth ;)
**
Martin
2011/3/8 Antoine van Wel :
> Since "you can't always have what you want"..
>
> Is there any PHP framework out ther
Since "you can't always have what you want"..
Is there any PHP framework out there which comes even close to Wicket;
component based, strict separation between HTML and programming,
stateful, out-of-the-box Ajax support, event handling, URL mapping,
excellent testing features, and great community
Perhaps one question:
Why is onInitialize invoked immediately after a component is added to a page?
Page#componentAdded(final Component component) (line 1603 in 1.4.15). Is it
really necessary to initialize the page here, and if so, why? The only
possibly useful thing I can see it doing is
Dear fellow wicket users,
Following is a call for your opinion and a vote on how Wicket should behave
with regards to post-constructing components in 1.5. The final solution that
is chosen will affect the way you construct your components and your component
hierarchies.
First, some backgrou
Hi,
when clicking an (ajax)link, or a checkbox, etc, on the server side
I'd like to know whether the shift, ctrl or alt keys are pressed at
the same time.
So I figure I need to fetch via JavaScript and adapt the ajax call
with some extra parameters.
Any thoughts how to do that in a nice & clean w
Hi Nino,
The version in the public respository 1.5 branch is still a direct copy of
1.4 - sorry I haven't commited the WIP 1.5 changes yet.
I'll aim to get the WIP committed in this week.
cheers,
Richard.
On Mon, Mar 7, 2011 at 6:47 PM, nino martinez wael <
nino.martinez.w...@gmail.com> wrote:
Hi I have system based on wicket 1.3.2 (I know it is very old but it is still
working good for me). Sometimes when I submit just local changes on page and
operation with database take long time, It would be nice to show some
notification that the request is processing and disable the whole page
you could also take a look at winstone: http://winstone.sourceforge.net/
2011/3/7 Mauro Ciancio
> Hello all,
> I'd like to create a jar with a wicket application inside that can be
> run from the command line as it were a desktop application. I'm using
> maven and jetty and it would be great if
51 matches
Mail list logo