I have a simple signup page that does a setRedirect(true);
setResponsePage(ThankYouPage.class); as the last thing in the Form's
onSubmit(). People can still go back to the signup page and fill it in
again though and this results in all kinds of weird behaviour.
What is the wicket way to prevent
On 9/22/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
Why are you using setRedirect directly like that btw?
So you want to block the login page after a user authenticated? Why
not just block the page for authenticated users e.g. with an
authorization strategy. Or maybe even better... in the
I have a wicket:link in a master template and it seems to change
from a aLink/a to a spanemLink/em when the current page is
the same as the one linked to.
Is it possible to turn this behaviour off or to customize it?
S.
-
On 9/19/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
wicket:link is very basic. You won't be able to change much, if
anything at all. It was just meant as a quick way of building a
working menu. If you want more, then you'll have to use
BookmarkablePageLinks
Hm that kind of sucks :-)
On 9/19/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
This is totally against 'the Wicket' way. The whole idea is to
minimize scripting in the markup. What you propose is just going in
the oposite direction.
Sometimes being practical is better than the wicket way ;)
S.
I have an entity with a phoneNumber field. The format of this phone
number is +9912345678..., the international number notation.
What I want to do is to have a text field that accepts phonenumbers in
different formats. For example 0612345678, 06 12345678 but also
+31612345678. Based on the locale
it happens at your case
because
if you say that the object after the bad submit is converted then it has to
come from
the model object because only the model object is converted. Not the raw
data which
should be displayed back when you have an error.
johan
On 9/7/06, Stefan Arentz [EMAIL
On 8/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
exactly. iauthstrategy is geared more towards declarative security and more
towards components not pages. if your usecase does not match then doing the
check in the base page's constructor is the way to go - clean and simple.
thats why we have
I have a bunch of pages that I have mounted so that they are reachable
as /Foo.html?id=123. No big deal and works fine. But, I need to
protect these pages; I need people to bookmark them and return to
them, showing a login box in between if no session is active.
The usual recipe for protecting
On 8/30/06, [EMAIL PROTECTED] Imam [EMAIL PROTECTED] wrote:
Why dont you forward all these requests to a dummy page where
you can take your decision making rather than depending on the
authorization strategy solely.
Inside the page you can handle requests such that the user is forwarded to a
On 8/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
markup is cached, but you can tweak that by tweaking
MarkupResourceStreamLookupResult, setCacheKey and setDisableCaching
specifically.
Thanks for the hints. I'll give that a try!
Furthermore, instead of adding your components in that for
On 8/8/06, Stefan Arentz [EMAIL PROTECTED] wrote:
On 8/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
markup is cached, but you can tweak that by tweaking
MarkupResourceStreamLookupResult, setCacheKey and setDisableCaching
specifically.
Thanks for the hints. I'll give that a try!
Hmm
I have a simple Panel that we call the QuickLogInPanel. This is a
panel located in a 'side bar'. When the user is not logged in the
panel shows a simple username/password form. After logging in I want
to show just some text and a log out button.
So I did this:
public class QuickLogInPanel
On 7/15/06, Iman Rahmatizadeh [EMAIL PROTECTED] wrote:
Hi,
AFAIK, there are three ways of implementing application transactions,
lazy loading, etc. stuff with Wicket Hibernate :
1 - The hard way, where you pass object ids, and load save them in
each request cycle using a new session
2 -
This is an excellent move. Apache is a great home for a great
framework like Wicket!
Congrats to all!
S.
On 7/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
dear community,
the core wicket team has decided to join the ASF and make wicket a top level
apache project (wicket.apache.org)
On 6/28/06, Johan Compagner [EMAIL PROTECTED] wrote:
and that shouldn't be called by yourself if possible,
Just set the web.xml property or the system property to development.
I've done that, but changes to the html files are still not picked up.
Not sure why :-/
S.
Using Tomcat but need to
I have two simple use cases that I can't figure out how to implement with Wicket.Example form. Pretty basic and works.public class CreateAdministratorPage extends WebPage{ @SpringBean private CreateAdministratorFacade mCreateAdministratorFacade;
public CreateAdministratorPage() { add(new
I was there too. For the first time. Was interesting, but a lot of incrowd. Eye opener for me was the 'JSF Pitfalls' session. I'm glad I chose Wicket instead of JSF :-)S.On 6/15/06,
Johan Compagner [EMAIL PROTECTED] wrote:
i will be thereJohan
___
Do you mean something like this:html
body
img wicket:id=externalImage/
/body
/htmlpublic class TestPage extends WebPage{ public TestPage() { add(new ExternalImage(externalImage,
http://images.apple.com/macbook/images/macbookglossydisplay20060516.jpg)); }}If so, then I just hacked this
:-)I just refactored that code to take a URL instead of a String. That is a bit nicer and guarantees that the URL is valid.S.On 6/21/06, Alex Objelean
[EMAIL PROTECTED] wrote:Yes, this is exactly what I need! :)
Thank you very much!--View this message in context:
On 6/21/06, Alex Objelean [EMAIL PROTECTED] wrote:
Unfortunatelly, this code throws an exception:WicketMessage: Unable to find package resource [path =training/wicket/countryInfo/http:/www.oorsprong.org/WebSamples.CountryInfo/Images/Romania.jpg,style = null, locale = en_US]
Root
Wicket is pretty cool :-)I created a little JFreeChart experiment. You can see all the code athttp://stuff.sateh.com/JFreeChartImageResource/
The test page looks like this: http://stuff.sateh.com/JFreeChartImageResource/TestPage.pngI'm sure you all have done this a thousand times already, but I
On 6/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
mm...sexy...here is something you might want to try:class JFreeChartImage extends Image { protected Resource getImageResource() { Chart chart=(Chart)getModelObject();
return new JFreeChartImageResource(chart, }}this way your chart data will
That took a while to figure out :-/
Eelco told me that this will be solved when the Listener is backported
to 1.2. I might take a stab at that today if I can find some time.
S.
On 6/19/06, Stefan Arentz [EMAIL PROTECTED] wrote:
I have a really odd problem here. I'm working on a simple application
On 6/16/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
no, there are no problems with wicket-spring poject other then some people
dont think its a true way to integrate with spring. sigh.
I have some more concrete issues with the current spring integration code.
First, it is intrusive. Instead of
The Wiki contains this:
Sidenote: To see changes to template files immediatelly, overload the
init() method of the WebApplication class by specifying that you are
in development mode - remember to comment out in production:
// the second parameter is the path to your template files
//
I have a really odd problem here. I'm working on a simple application
that is based on the authentication sample from
wicket-auth-roles-examples. It works fine when I deploy in JBoss, but
when I either start Jetty by hand from main() (like in the examples)
or run it from the command line with mvn
On 5/30/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
All,
The maven team has uploaded all our libraries of wicket 1.2 to their main
repository (http://repo1.maven.org/maven2/wicket)
In case you are in Europe and you find repo1.maven.org very slow, use
my mirror that is located in the
On Oct 27, 2005, at 12:26 PM, Alexandru Popescu wrote:
#: Joni Suominen changed the world a bit at a time by saying on
10/27/2005 11:00 AM :#
On Wed, 2005-10-26 at 10:59 -0700, Igor Vaynberg wrote:
This is similar to how i do it. My application is a spring bean that
gets injected by
On Oct 27, 2005, at 11:00 AM, Joni Suominen wrote:
On Wed, 2005-10-26 at 10:59 -0700, Igor Vaynberg wrote:
This is similar to how i do it. My application is a spring bean that
gets injected by spring on creation and is then used as a service
locator. I am simply questioning the automatic
On Oct 27, 2005, at 9:21 PM, Sven Meier wrote:
BTW rather than letting panels pull service from the page, I'd
prefer the page to push services into its panels (i.e. the page
injects dependencies into its panels).
I don't want my panels to be dependent on the containing page.
Yup. That
On Oct 26, 2005, at 7:49 PM, Igor Vaynberg wrote:
So where does the automatic injection stop? What if I have a panel
that
needs a reference to a service? Or a subclass of a component?
Good question. I think I'm going with this:
* Pages are application specific and thus can have references
On Oct 25, 2005, at 11:58 AM, Johan Compagner wrote:
if you want to create youre own page factory. And use
PagePArameters for everything to supply params back and forth you
are ofcourse free to do that right now.
Better idea! Add some AOP and annotation magic to the mix!
public class
On Oct 25, 2005, at 7:50 PM, Ryan Sonnek wrote:
Is the annotation really necessary? can't you use spring's injection
by type? There will only be one HelloWorldService defined in the
spring configuration.
That is a false assumption. As a concrete example, I have two
'PayPalButtonBuilder'
On Oct 25, 2005, at 8:03 PM, Eduardo Rocha wrote:
Supose the page get serialized, have you already implemented bean
reinjection in deserialization?
Yup.
S.
---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today *
On Oct 25, 2005, at 10:23 PM, Alexandru Popescu wrote:
Stefan I was wondering why annotating the field? At the first
glance it looks the logical choice, but imo the page is the object
depending on the service (so the annotation should be on type level).
What do you mean with type level?
On Oct 25, 2005, at 10:48 PM, Alexandru Popescu wrote:
#: Stefan Arentz changed the world a bit at a time by saying on
10/25/2005 9:32 PM :#
On Oct 25, 2005, at 10:23 PM, Alexandru Popescu wrote:
Stefan I was wondering why annotating the field? At the first
glance it looks the logical
On Oct 26, 2005, at 12:39 AM, Alexandru Popescu wrote:
#: Stefan Arentz changed the world a bit at a time by saying on
10/25/2005 9:58 PM :#
On Oct 25, 2005, at 10:48 PM, Alexandru Popescu wrote:
#: Stefan Arentz changed the world a bit at a time by saying on
10/25/2005 9:32 PM
On Oct 23, 2005, at 9:26 PM, Ryan Sonnek wrote:
I agree. Without taking the extra step to create a Spring web page
factory, this solution is still missing something.
I took some time a while ago and put together a spring web page
factory that would inject the spring services directly into
On Oct 23, 2005, at 10:57 PM, Igor Vaynberg wrote:
There are two problems with creating a spring web page factory:
1) pages get serialized and you don't want to serialize all the
enjected
deps along with it, so you need a mechanism that reinjects the
dependencies
whenever a page is
I've been reading the Spring/Wicket integration threads on the
mailing lists and looked at the code that is available but I was not
entirily happy with the things I saw. So, stubborn as I am, I decided
to forget everything and do some things 'my own way' instead :-)
First, I embedded Jetty
On Oct 22, 2005, at 6:37 PM, Igor Vaynberg wrote:
Where/how is the mHelloWorldService injeted into the page?
-Igor
It is not injected in the page. Only in the WebApplication.
I haven't figured that out yet, but I'm also not sure if you want to
inject stuff in pages. I will find out when I
On Jul 18, 2005, at 11:11 PM, Martijn Dashorst wrote:
Stefan Arentz wrote:
Hi.
I want to create panel that creates very dynamic content. It has
a standard header and footer which I can move to the .html but
everything in between is too dynamic to put in the .html. So what
On Jul 18, 2005, at 9:13 PM, Jonathan Carlson wrote:
This is very cool. I wonder if Tomcat can do this too.
Is Jetty really easier to use than Tomcat? If so, maybe I'll switch.
I'm not switching actually. I use this setup to develop and when I'm
done I package up a .war and deploy it in
On Jul 18, 2005, at 11:47 PM, Martijn Dashorst wrote:
String[][] foo = {{foo, bar}, {foo, bar}};
new ListView(rows, Arrays.toList(foo)){
public void populateItem(ListItem item) {
String[] foo = (String[])item.getModelObject();
add new ListView(cols, Arrays.toList(foo)) {
On Jul 19, 2005, at 12:02 AM, Martijn Dashorst wrote:
Stefan Arentz wrote:
So that translates to:
tbody
tr wicket:id=rows
td wicket:id=cols.../td
/tr
/tbody
Yes. You nailed it! And now for the refridgerator ;-)
Bedankt for the example :-)
I guess the trick
On Jul 19, 2005, at 12:02 AM, Gili wrote:
I think this mailing list is getting out of hand. There are
simply too many messages being posted back and forth and although
their content is good, the medium they're posted in is poor.
Can we please move all discussions to a discussion
I'm looking at http://wicket-stuff.sourceforge.net/ and the hibernate
and spring code in particular but I cannot find a download link. The
wicket and wicket-stuff sites also look so much alike that it is
extremely confusing. (Mostly the including of the news stuff on every
page).
I want
On Jul 17, 2005, at 1:13 PM, Eelco Hillenius wrote:
Thanks. Mind if I (or you) put it on the Wiki?
Sure go ahead!
S.
---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps,
On Jul 17, 2005, at 1:18 PM, Johan Compagner wrote:
I'm also trying to find out how I can let dynamically reloading
code work better. It would be awesome to start Wicket like this
and then be able to just change code and introduce new pages (and
other code) without having to restart
On Jul 17, 2005, at 1:50 PM, Martijn Dashorst wrote:
All,
I'm going to do the release in a few hours (it takes that long,
yes), and in the process I'm updating the site to reflect a new
structure:
The main front page will reflect the latest and greatest. This will
always be generated
On Jul 17, 2005, at 1:15 PM, Eelco Hillenius wrote:
We plan on making some proper distributions of those projects later
today. Right now, it's just CVS. The Hibernate stuff is in project
wicket-contrib-data-hibernate-x
Got it. I did not know there was a seperate cvs rep for this stuff.
First of all. Wow. This stuff rocks. Wicket is my first experience
with a component based framework and I've never got up to speed so fast.
I've been looking for ways to simplify web development. Ruby on Rails
does a lot of things I like, but I would really like to stick with
Java. I'm
53 matches
Mail list logo