If you want this kind of behaviour you can do it in a common base page and
then in the method onAfterRender() of the page.hmm, I'll give that a try, but the custom WebRequestCycle feels justright for this kind of strategy, especially because it''s easy to tiein the rollback on errors via
Hello,
After spending the night testing, it appears that there are two
different problems :
1) The Ajax handler - onSubmit(AjaxRequestTarget target, Form form) - is
not called and Wicket default to onSubmit() if is is present. I can't
see why Ajax does not work for this form, since it works
On Thu, 2006-08-10 at 01:05 +0200, Johan Compagner wrote:
This code is extremely ugly!
Everytime you render the page the form gets a new FormValidator
because everytime the listview is populated..
Do setReuseItems(boolean reuseItems) to true on the ListView.
setReuseItems does not make
Hi,
I've not got any real experience with Ajax, so the only things I can
suggest are to (a) see if you can see anything with the
WicketAjaxDebug window, (b) paste some example code or maybe better,
make up a small example app to show the problem, using
wicket-quickstart or wicket-template as a
* Eelco Hillenius:
How can I set a page to be stateless in 1.2.1 ? Is there some attribute to
do this or does it just mean that you use detachable models?
Stateless means the page isn't even stored in the session. We started
out implementing that automatically for pages that don't have
setResponsePage(Page) can be used just fine.Except you have to do then setRedirect(false)because if you redirect it (what is default when for example submitting a form)then the page is statefull because it has to be there after the redirect so that we can render it.
johanOn 8/10/06, Jean-Baptiste
Hi,
I've noticed a strange behavior in 1.2.1 when using links with an
img-element inside.
a wicket:id=linkimg src=img/button_lagg_till.gif//a
in my HTML is changed to
a href=/test?wicket:interface=:3:createLink::ILinkListenerimg
src=/test/img/button_lagg_till.gif alt=Lägg till//a
when wicket
I'm gradually getting to a conclusion that ListView sucks, and should bereplaced with something more robust. A core component should not have
following problems:- you have to remember to call setReuseItems if it is within a formonly if you use form inputs there. If it is in a list but it only
are you saying we introduce the alt attribute? Then wicket would be very good! :)But wicket tries to resolve all relative links to absoluteSo how do you other things look? Are those also relative links?
see the PrependContextPathHandler for the place that does this.johanOn 8/10/06, Mats Norén
do you have a simple test case in a quickstart project?On 8/10/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote:
Hello,After spending the night testing, it appears that there are twodifferent problems :
1) The Ajax handler - onSubmit(AjaxRequestTarget target, Form form) - isnot called and Wicket
hmm that does seem weird.Strange thing is that we don't do it for the onclick .. only for the href attribute..that comment is in my code at another placeit is this:// generate the href attribute
tag.put(href, Strings.replaceAll(url, , amp;));and// or generate an onclick JS handler
On 8/10/06, Johan Compagner [EMAIL PROTECTED] wrote:
are you saying we introduce the alt attribute? Then wicket would be very
good! :)
:)
No, I don't think wicket added that one...
But wicket tries to resolve all relative links to absolute
So how do you other things look? Are those also
Hey to all.I just finished a draft version of a small ajax component that allows the user to change the order of elements in a list. I'm doing an application that requires such functionality in a number of places and so I decided to pack it out as a seperate component and send it to the mailing
may it is worth to be added to wicket-example and the component to
wicket-extensions?
Juergen
On 8/10/06, Stefan Kanev [EMAIL PROTECTED] wrote:
Hey to all.
I just finished a draft version of a small ajax component that allows the
user to change the order of elements in a list. I'm doing an
* Johan Compagner:
setResponsePage(Page) can be used just fine. Except you have to
do then setRedirect(false) because if you redirect it (what is
default when for example submitting a form) then the page is
statefull because it has to be there after the redirect so that
we can render
http://weblogs.java.net/blog/kohsuke/archive/2006/08/hudson_140_and.html
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
OK, I will rephrase my questions, maybe someone then can give a hint on how I proceed...It is so that a component with AjaxSelfUpdatingTimerBehaviour should stop self-updating when the containing page is notin focus (topmost)? If yes, is there a way to change this so the page always
why do this anyway? the link doesn't work.
Johan Compagner wrote:
hmm that does seem weird.
Strange thing is that we don't do it for the onclick .. only for the
href attribute..
that comment is in my code at another place
it is this:
// generate the href attribute
tag.put(href,
jelly...nuff said :)-IgorOn 8/10/06, Thomas R. Corbin [EMAIL PROTECTED] wrote:
http://weblogs.java.net/blog/kohsuke/archive/2006/08/hudson_140_and.html
-Using Tomcat but need to do more? Need to support web services,
i havent seen this problem, perhaps you can create a quickstart that shows it. its hard to hypothesize as to why or when this might happen without something concrete to look at.-Igor
On 8/10/06, Per Ejeklint [EMAIL PROTECTED] wrote:
OK, I will rephrase my questions, maybe someone then can give a
It's an optimization. So it depends on the kind of application you're
building whether you 'need' it. Typically, I'd consider using
bookmarkable pages for pages that have to be accessible regardless of
any session (e.g. a bookmark). You can code your whole app using
bookmarkable pages, but you
That's pretty funny. I heard about people that like to play with whips
and stuff. Maybe this is the binary variant?
Eelco
On 8/10/06, Thomas R. Corbin [EMAIL PROTECTED] wrote:
http://weblogs.java.net/blog/kohsuke/archive/2006/08/hudson_140_and.html
Hi Dipu,
I can't reproduce this with the current 1.2 svn version.
Does the linkomatic example have the same behavior for you? Can you
send in a test project that reproduces this problem? And/ or test
against the svn version and see if the problem is still there?
Eelco
On 8/9/06, Dipu [EMAIL
Pardon my ignorance, but would you mind sharing what exactly a
lightbox pattern is?
Eelco
On 8/9/06, Nick Heudecker [EMAIL PROTECTED] wrote:
All:
I'm going to be using the lightbox pattern in a number of pages. The
lightboxed pages will have forms, so I'm concerned that they might cause
http://justfuckinggoogleit.com/search?hl=enq=lightboxbtnG=Google+Searchand no...the lightbox pattern should not be a problem for wicket versions
1.2.2 - the lightbox will open a new iframe - wicket should detect this using the window.name and create a pagemap automagically.-IgorOn 8/10/06,
Eelco
I did fucking google it and got a few pages that didn't help much - in
hindsight I should've googled for just 'lightbox' instead 'lightbox
pattern'. As I'm not interested in googling for anyway for the sole
sake of trying to help out on this list, a question like this could
include a link with an
i think the problem is nick thinks everyone is as enlightened as he is - but its a lonely place way up top there :)-IgorOn 8/10/06, Eelco Hillenius
[EMAIL PROTECTED] wrote:
I did fucking google it and got a few pages that didn't help much - inhindsight I should've googled for just 'lightbox'
I eventually could not reproduce the problem in a test case. However, I
have been able (??) to produce another problem of the same kind, ie
something that does not work the same in IE6 and Firefox. In fact, it
works fine in FireFox and produces an error in IE6. The example is a
ListView that
you cannot update listview directly because a) listview itself has no markup - it lets the children use its markupb) you cannot update tr/tbody/etc tags via outerhtml which is what we do and when you try you get the very helpful runtime error
you have to create a markupcontainer around the
you cannot update listview directly because
a) listview itself has no markup - it lets the children use its markup
I know this because I made some research on the list archive and found
one of your post where you explained this problem ;-)
b) you cannot update tr/tbody/etc tags via outerhtml
New to the framework, so bear with me, as I'm likely to have many questions.
I have an app that I've created for testing purposes. There are two pages,
one is an index, the other a form. If I fill out the form on the second
page, and redirect to the home page in the form submit method using
So for those readers that didn't google yet, here it an example
http://www.huddletogether.com/projects/lightbox/
Eelco
On 8/10/06, Nick Heudecker [EMAIL PROTECTED] wrote:
Indeed it is, plebe. :)
On 8/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
i think the problem is nick thinks
b) you cannot update tr/tbody/etc tags via outerhtml which is what we do and when you try you get the very helpful runtime error
I do not get any error in Firefox although I update tbody !not all browsers are born equal. have you tried safari? opera? konqueror? :)-Igor
On 8/10/06, spencer.c [EMAIL PROTECTED] wrote:
I have an app that I've created for testing purposes.There are two pages,one is an index, the other a form.If I fill out the form on the secondpage, and redirect to the home page in the form submit method using the
following
I'm gradually getting to a conclusion that ListView sucks, and should be
replaced with something more robust.
It does suck that about 25% of the problems people have with Wicket
seems to come from the ListView.
What do you think about the repeater packages? I'm still using
ListViews myself
i dont think this is a problem with listview. i think joni misunderstood what setreuseitems() did and that even with pull models it makes sense. in this particular case dataview would suffer the exact same problems as the listview save one - you will not forget to override getlistitemmodel()
When one gets an url like :
http://localhost:8081/test/app?wicket:interface=:2:3:
What does the rightmost digit (3) means ?
Pierre-Yves
Igor Vaynberg a écrit :
On 8/10/06, *spencer.c* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
I have an app that I've created for testing
the details are internal and you shouldnt really be bothered by them, but if you must know it is the version of the page.-IgorOn 8/10/06, Pierre-Yves Saumont
[EMAIL PROTECTED] wrote:When one gets an url like :
http://localhost:8081/test/app?wicket:interface=:2:3:What does the rightmost digit (3)
quotehere you tell wicket to redirect to an /instance/ of a page,
so wicket is not in control. you give it a page object with some
internal state and tell it to go to it. a bookmarkable url cannot be
used here because the page has arbitrary state that cannot be encoded
into the url. so wicket puts
sure, you can subclass webrequestcodingstrategy and override methods on it that encode/decode these urls. its no trivial task so you must get encoding/decoding to work exactly right or lots of things might break.-Igor
On 8/10/06, Spencer Crissman [EMAIL PROTECTED] wrote:
quotehere you tell wicket
I am sorry, I just hit reply and although sometimes it goes to the list,
sometimes not :-(
I tried to use the enclosing tab as the target, as well as the panel
that was used in the standalone version. In either case, absolutely
nothing happens. And nothing is displayed in the Ajax Debug
alritey, this is a bit of a tricky onefirst some prologuethe ajax timing behaviors generate urls that only work if the page they are trying to access is the most recent page accessed in the pagemap - ie it is the page that the user is currently looking at. after all if you come to page A, start
Ok, regardless of this case then... I'd be interested to hear what
people think in general about ListViews vs repeaters (package
wicket.extensions.markup.html.repeater and kids)? Are repeaters a
better solution in general/ only for certain cases (database) or just
different?
I'm asking this
Hi
I'm trying to mix authentication using annotations and SSL, but I'm having
problems.
I am simply using the code found in the auth-roles-examples (1.2.1) and I
have made some changes using the Switch to SSL example
(http://www.wicket-wiki.org.uk/wiki/index.php/Switch_to_SSL_mode)
If I try to
Can't say I've looked at the repeaters (theres ALOT in extensions I've just not touched really) yet, any examples anywhere of them/how they differ from ListViews?On 8/11/06,
Eelco Hillenius [EMAIL PROTECTED] wrote:
Ok, regardless of this case then... I'd be interested to hear whatpeople think in
I would say move at least the basic/core stuff of the repeater package to the core.And for simple list stuff the listview works fine. For example repeating just panels of making a dynamic form i guess listview (or maybe even just loop) works fine.
I think the repeater package is then to
See wicket.examples.repeater in wicket-examples.
Eelco
On 8/10/06, Mark Derricutt [EMAIL PROTECTED] wrote:
Can't say I've looked at the repeaters (theres ALOT in extensions I've just
not touched really) yet, any examples anywhere of them/how they differ from
ListViews?
On 8/11/06, Eelco
personally i like the visitor joni proposed - it doesnt need to be part of core but it solves the problem elegantly. i recently factored out form.validateFormValidator(IFormValidator v) that maeks the usecase even simpler to implement.
-IgorOn 8/10/06, Johan Compagner [EMAIL PROTECTED] wrote:
and
you can make an idataprovider-to-list adapter that will make dataview work exactly the same as a listview-IgorOn 8/10/06, Eelco Hillenius
[EMAIL PROTECTED] wrote:See
wicket.examples.repeater in wicket-examples.EelcoOn 8/10/06, Mark Derricutt [EMAIL PROTECTED] wrote: Can't say I've looked at the
did you also fix Link:522 tag.put(href, Strings.replaceAll(url, , amp;)); ?-IgorOn 8/10/06, Johan Compagner
[EMAIL PROTECTED] wrote:
fixed in 1.2.x and 2.0On 8/10/06, Ittay Dror
[EMAIL PROTECTED] wrote:
why do this anyway? the link doesn't work.Johan Compagner wrote: hmm that does seem weird.
it does work really differnet then wat we do now.And with a panel it looks maybe nice. But it is a but more blown up code.Personally i like this then better:IFormValidator{ validate(Form)}
MyPanel implements IFormValidator{ validate() { validate the panel. }}and the Form searches for
thats pretty much what joni suggested!-IgorOn 8/10/06, Johan Compagner [EMAIL PROTECTED] wrote:
it does work really differnet then wat we do now.And with a panel it looks maybe nice. But it is a but more blown up code.
Personally i like this then better:IFormValidator{ validate(Form)}
MyPanel
except that you don't have that extra interface. The component can just be the IFormValidator..But i don't think that will solve his first example.. Where he just added 2 textfields in a ListItemand wanted to validate those 2. Which component is then the supplier? One of the textfields?
johanOn
not only that, then you must also make sure the components you will be using in your validate() are valid themselves - an easy thing to forget.-IgorOn 8/10/06,
Johan Compagner [EMAIL PROTECTED] wrote:
except that you don't have that extra interface. The component can just be the
on what input element?can you show the markup?johanOn 8/10/06, Mats Norén [EMAIL PROTECTED]
wrote:On 8/10/06, Johan Compagner
[EMAIL PROTECTED] wrote: are you saying we introduce the alt attribute? Then wicket would be very good! :):)No, I don't think wicket added that one... But wicket tries to
Why - Just to look nice, or is this a case where you might be needing
to use a BookmarkablePageLink? There'll still be cases where Wicket
will use it's internal links (where there's state being passed
around), but there may also be cases where there's no state that could
be used by bookmarkable
On 8/10/06, Gwyn Evans [EMAIL PROTECTED] wrote:
Why - Just to look nice, or is this a case where you might be needing
to use a BookmarkablePageLink? There'll still be cases where Wicket
will use it's internal links (where there's state being passed
around), but there may also be cases where
I'm trying to create a field that allows filling in of a credit card
expiration date using 1.2. What did I miss?
Code:
TextField exp = new RequiredTextField(expiration);
DatePicker picker = new DatePicker(expirationDatePicker, exp);
DateConverter conv = new DateConverter();
58 matches
Mail list logo