Personally, I expected the Compound/BoundCompoundPropertyModels to
behave excactly the same, as they solve the same problem/ do the same
magic (operate with Ognl on a 'target' object). Conceptually, the only
difference between those two classes and PropertyModel is that the
Compound models
yup. makes sense to me.
i think it's important to keep at least an implementation distinction
between compound/boundcompound in terms of the records that are kept of
the Binding internally. we should have a mode (as currently exists in
compound) where the binding doesn't cost anything because
how do i redirect to outside of wicket?
for example, i want to go to an external link when the
user clicks on a tree node
redirectTo only accepts Page objects. should i create
an ExternalPage object that can redirect calls ? ie..
redirectTo( new ExternalPage(http://www.google.com;)
);
thanks,
eelco is Mr. Tree, so i'm guessing... but try overriding
Tree.newNodePanel() and in that method create a panel with an ordinary
ExternalLink (see Linkomatic example) in it. make sense?
bin zhu wrote:
how do i redirect to outside of wicket?
for example, i want to go to an external link when the
I'd go for either the option that Jonathan suggested (providing your own
Panel for a node), or - just as easy - create a special Page, that has
the redirect in it:
html
head
meta wicket:id=redirect http-equiv=refresh content=0; url=app
/head
/html
On this page, you add:
It is already in CVS HEAD! This will become available with RC3 or if you
are really in need of this functionality, I can build a snapshot for you...
http://sourceforge.net/tracker/index.php?func=detailaid=1186504group_id=119783atid=684975
Martijn
Jonathan Carlson wrote:
Is there a reason
Super. I can get it from CVS.
(I don't upgrade all the time because CVS isn't working very well on my
laptop. I'm using Fedora Core 3 and I have found it crashing on me far
too often. Even CVS won't log me in because it mangles my username for
some odd reason. How frustrating! I should
I have tried the latest source from cvs and it is better
but I am still having problems. I now get an internal
error and the error in the log is ERROR
[wicket.protocol.http.WebRequestCycle] - No component
found for 0.ProductsPanel.products.0.imageProductLink.
I also added a comment and
the internalAdd change should already be checked into HEAD.
best,
jon
[EMAIL PROTECTED] wrote:
I have tried the latest source from cvs and it is better but I am
still having problems. I now get an internal error and the error in
the log is ERROR [wicket.protocol.http.WebRequestCycle] - No
I'm working on a wizard that includes three buttons: cancel, save,
next.
The wizard extends WebPage, which imbeds a form that in turn includes
three buttons. See below:
public class Wizard extends WebPage {
public Wizard() {
super();
add(new WizardForm(form));
}
Good catch, thanks!
Here is why it was so confusing. The exception we see is:
ognl.OgnlException: email [java.lang.ClassCastException:
[Ljavax.mail.internet.InternetAddress;]
The thing that confused me was [] around the class name, but upon
closer inspection the closing ] is
I found a bug in Wicket's handling of newConversionException(). Here's
my updated source-code:
/*
* Page.java
*
* Created on March 10, 2005, 5:23 PM
*/
package com.be.desktopbeautifier.web.mailinglist;
import java.util.Date;
import java.util.Locale;
import java.util.Properties;
import
So does mean that I need to add to my button's onSubmit() method:
protected void onSubmit() {
getForm.validate();
Person person = (Person) getParent().getModelObject();
... etc
}
Unfortunately I can't do that as the validate() method is protected.
-Matt
[EMAIL
oops! yeah, that's a problem. you could work around that for now by
creating a public method on your form subclass that calls validate(). but
i think that's not the ideal solution...
can you give us a few hours to get some consensus on the problem?
i imagine we can turn around a fix later
14 matches
Mail list logo