there are two ways to do it:
a) use a bookmarkablepagelink to go to the cart page and pass in the
itemid+quantity to be added. this means that the cart page is
responsible for adding the item to the cart.
b) use a stateless link to add the item to cart, then
setResponsePage(CartPage.class) == to
But is it then really downloaded?
Because the brower makes first a head request to it and that will say
not changed
On 5/8/08, Stefan Simik [EMAIL PROTECTED] wrote:
Hi boys,
I think, there is one problem with wicket ajax javascripts - there are
reloading by browser every
hour, because the
Or use a converter? Because it seems that is what you are doing?
On 5/7/08, Eyal Golan [EMAIL PROTECTED] wrote:
Hi all,
I have this in several components:
@Override
protected void onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag) {
String value;
if
Can you show us some code?
This should work as long as the component models are updated.
Maurice
On Thu, May 8, 2008 at 1:22 AM, nate roe [EMAIL PROTECTED] wrote:
I have a form with several items. About half of the form is wrapped in a
named div attached to a WebMarkupContainer. When a
On Wed, May 7, 2008 at 8:42 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:
doesnt Label do this already?
Yeah, I think just using getModelValueAsString would give the same results.
Also, Label is the only (or one of the few at most) class(es) where
overriding onComponentTagBody makes sense. Why not
Hello guys,
I have a problem with the wizard component in Wicket 1.3.1. I have a
user form panel, containing a form with several fields. I put it in a
wizard, and have the following problem:
FormUser
public class FormPerson extends Panel {
// ...
public FormPerson(String formid) {
I think we miss one call into Eyan's code:
Consts.getTableBody(getMarkupId(), value)
seems to be the crux.
Martijn
On 5/8/08, Eelco Hillenius [EMAIL PROTECTED] wrote:
On Wed, May 7, 2008 at 8:42 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:
doesnt Label do this already?
Yeah, I think
Thank you! The ListView did the trick!
-Ursprüngliche Nachricht-
Von: Eelco Hillenius [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 8. Mai 2008 00:35
An: users@wicket.apache.org; [EMAIL PROTECTED]
Betreff: Re: Ajax and Loop
Have you tried using a ListView in combination with a model
are you sure that all the form elements that are in that div that you
replace have the AjaxFormComponentUpdatingBehavior attached?
On Thu, May 8, 2008 at 1:22 AM, nate roe [EMAIL PROTECTED] wrote:
I have a form with several items. About half of the form is wrapped in a
named div attached to a
Hello,
I have use MultiFileUploadField for uploading pictures, everything
works fine but when I use e.g. setMaxSize(Bytes.kilobytes(1024)) on
the form and try to upload larger picture or pictures than limit, I
got only one message about hitting limit size, and other fildes are
not checked this
when the file size exceeds the size limit,
the request processing is kind of aborted and the other
request params are not processed (no conversion, validation, ...).
when the page is then rendered again, the formcomponents
don't have an input value set, and that's why the fields
are cleared and no
i have no idea then what goes wrong
especially if it is just one request not a redirect one.
you could try to clean the cookes by directly using the httpresponseobject
yes.
Just that that one from the WebResponse
johan
On Wed, May 7, 2008 at 5:00 PM, Andrew Broderick
[EMAIL PROTECTED] wrote:
Hi Izak,
Plenty of such companies around in the Netherlands it seems.
Search through the list archives for ideas :-) Topicus, Xebia,
Servoy, Hippo, Finalist to name a few. Good knowledge of
Dutch is probably required, especially if you want to work outside of 'de
randstad'.
Hi there
it seems that jetty 6 really uses servlet api 2.5 yes (this is by the way
very hard to find... they really should have a list just as tomcat has)
so somehow you have another servlet.jar there
On Thu, May 8, 2008 at 3:32 AM, freak182 [EMAIL PROTECTED] wrote:
Hello Johan,
I think im running on
Actually, since I changed jobs, Finalist no longer uses Wicket but now
JTeam (www.jteam.nl) does :)
Regards,
Erik.
Plenty of such companies around in the Netherlands it seems.
Search through the list archives for ideas :-) Topicus, Xebia,
Servoy, Hippo, Finalist to name a few. Good
WHY?
On Thu, May 8, 2008 at 1:34 PM, Erik van Oosten [EMAIL PROTECTED]
wrote:
Actually, since I changed jobs, Finalist no longer uses Wicket but now
JTeam (www.jteam.nl) does :)
Regards,
Erik.
Plenty of such companies around in the Netherlands it seems.
Search through the list
I looked at it in detail, and it works as following:
1. You are right, when caching is too low - then browser makes request, with
header
If-Modified-Since. Response is 304 - that it was not modified. So the
whole resource
is not really downloaded, it is requested only, with short 304
Brilliant suggestions ... Thanks Eelco and Jeremy.
In our proj we attach a behavior to TextField/TextArea like this, but tied
to a specifc event as onblur.
public class ToUpperCaseBehavior extends AbstractBehavior {
public void onComponentTag(Component component, ComponentTag tag){
file RFE
On Thu, May 8, 2008 at 3:07 PM, Stefan Simik [EMAIL PROTECTED] wrote:
I looked at it in detail, and it works as following:
1. You are right, when caching is too low - then browser makes request,
with
header
If-Modified-Since. Response is 304 - that it was not modified. So the
Hi,
I have wicket running clustered and occasionally see this exception:
WicketMessage: Attempt to access unknown request listener interface
IActivePageBehaviorListener
Root cause:
org.apache.wicket.WicketRuntimeException: Attempt to access unknown request
listener interface
a) is what I am doing now.
b) is where the problem was, which is what the original question was about.
Please see my opening post.
igor.vaynberg wrote:
there are two ways to do it:
a) use a bookmarkablepagelink to go to the cart page and pass in the
itemid+quantity to be added. this
We seem to have a similar problem with a wizard page. We came across the
following code in Check.onComponentTag(..)
if (group.hasRawInput())
{
final String[] input = group.getInputAsArray();
if (input != null)
{
for (int i = 0;
If I instead of item.getModel() for the Check, uses some PropertyModel that
evaluates to a String identifier it works fine, but then only the identifier
is saved, and not the object, which as I understand it should be the
purpose. I haven't looked at the code, but I wander what uuid is exactly as
Thanks for the reply. Calling clearInput() on the form components works. It has
to be done on each individual component though, it seems. Is there a way to do
it on the entire form, or a way to group fields on the form and do it on the
group?
Thanks
-Original Message-
From: Igor
yes i read it, but you are not being very clear.
a stateless link points to the page its on, just like Link does. the
trick here is like i said to call setresponsepage(class);
requestcycle.setredirect(true);
this way your link points to ?wicket:interface=blahblah
when you hit that the onclick
form.visitchildren(..)
-igor
On Thu, May 8, 2008 at 8:26 AM, Andrew Broderick
[EMAIL PROTECTED] wrote:
Thanks for the reply. Calling clearInput() on the form components works. It
has to be done on each individual component though, it seems. Is there a way
to do it on the entire form, or a
Actually, since I changed jobs, Finalist no longer uses Wicket but now
JTeam (www.jteam.nl) does :)
Now it's all up to Remco then :-)
Good luck with your new job though.
Eelco
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi,
I've got a page mounted on /path1.
I've got some files in a directory in my webapp root on /path1/dir
How can I tell Wicket to give control back to the servlet container for
dir? Currently (even using QueryStringUrlCodingStrategy) the mount eats
/path1/dir and doesn't let me access the
I wrote earlier about my problems going from Wicket 1.2.2 to Wicket
1.2.6. This has to do with a RadioGroup component that I built;
whenever I used it on more than one page, clicking on one RadioGroup
caused the marker to disapper from all the other RadioGroups on the
page.
I wasn't given much
On Thu, May 8, 2008 at 10:06 AM, Frank Silbermann
[EMAIL PROTECTED] wrote:
I wrote earlier about my problems going from Wicket 1.2.2 to Wicket
1.2.6. This has to do with a RadioGroup component that I built;
whenever I used it on more than one page, clicking on one RadioGroup
caused the
Hrm. I've only added the AjaxFormComponentUpdatingBehavior to the
components that cause the visibility of other components to change. The
idea -- and I'm new to Wicket so it may not have been a very good one -- was
to limit server round-trips until a rendering change is required.
I'll add the
Hello Piller Sébastien:
do you first generate some errors, press next (errors), fix them and then
press next again?
Maybe error messages will not be reset.
Cheers
Per
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Well, then, as I am a beginner who hasn't worked much with open source,
could you please point me to a reference that explains what a jira issue
is and how to create one? (I'm guessing that it's an entry into some
sort of bug tracking database.)
Also, by attaching a quickstart Project do you
Hello Frank Silbermann:
Well, then, as I am a beginner who hasn't worked much with open source,
could you please point me to a reference that explains what a jira issue
is and how to create one? (I'm guessing that it's an entry into some
sort of bug tracking database.)
Sure you can. You could
Yes I am just starting to try and get the autocompletetextfield working on my
app and I am using wicket 1.3. as well and it is doing the same thing. It is
throwing a js type mismatch error. Works fine in firefox but not in IE.
Did you figure out the problem?
T
Niels Bo wrote:
Hi
I just
it's fixed in the upcoming 1.3.4 and the already release 1.4-M1
Gerolf
On Thu, May 8, 2008 at 10:20 PM, taygolf [EMAIL PROTECTED] wrote:
Yes I am just starting to try and get the autocompletetextfield working on
my
app and I am using wicket 1.3. as well and it is doing the same thing. It
Hi!
I'm using the getDefaultChoice to have --- choose brand in my drop box.
@Override
protected java.lang.CharSequence getDefaultChoice(final Object selected){
return option value=\\+
getLocalizer().getString(category.select.edit, CategoryPage.this )
+/option;
}
This is rather
Here's the URL of my jira issue.
https://issues.apache.org/jira/browse/WICKET-1601
The issue has attached a quickstart project and a screen print.
-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 08, 2008 12:13 PM
To: users@wicket.apache.org
I have some questions on detached models for Wicket
Let's say I create a detached model like this
IModel detachedModel = new LoadableDetachableModel(){
protected Object load(){
return . spring injected hibernate dao lets say Categories
}
};
So now I'll have a detached
Why do you need it detached all the way?
On Thu, May 8, 2008 at 4:56 PM, Mathias P.W Nilsson
[EMAIL PROTECTED] wrote:
I have some questions on detached models for Wicket
Let's say I create a detached model like this
IModel detachedModel = new LoadableDetachableModel(){
protected Object
On Thu, May 8, 2008 at 1:56 PM, Mathias P.W Nilsson
[EMAIL PROTECTED] wrote:
add( new ListView( myId , detachedModel ){
public void populateItem( ListItem item) {
final Category category = (Category) item.getModelObject();
item.add( new Link( link ){
public
if you want nicer code then use a dataview with a dataprovider, that
really is geared much better towards database data then listview, and
dataprovider.model() is a great place to wrap the entity with model,
so your code can look like this:
public void populateItem( tem item) {
item.add(
Thanks Igor!
So if I use the sample code you gave me and, when getting the Object from
the constructor
on the response page I will have a detached object.
Do I have to load the object from database here? When looking at the Phone
book example I see you pass id instead of object. Is this more
Hi,
I've got a page mounted on /path1.
I've got some files in a directory in my webapp root on /path1/dir
How can I tell Wicket to give control back to the servlet container for
dir? Currently (even using QueryStringUrlCodingStrategy) the mount eats
/path1/dir and doesn't let me access
Plenty of such companies around in the Netherlands it seems.
Search through the list archives for ideas :-) Topicus, Xebia,
Servoy, Hippo, Finalist to name a few. Good knowledge of
Dutch is probably required, especially if you want to work outside of 'de randstad'.
Hi there from the
OK, thx
https://issues.apache.org/jira/browse/WICKET-1602
Stefan Simik
Johan Compagner wrote:
file RFE
--
View this message in context:
http://www.nabble.com/Wicket-javascripts---reloading-every-one-hour-tp17117009p17137997.html
Sent from the Wicket - User mailing list archive at
On Thu, May 8, 2008 at 3:15 PM, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
Hi,
I've got a page mounted on /path1.
I've got some files in a directory in my webapp root on /path1/dir
How can I tell Wicket to give control back to the servlet container for
dir? Currently (even using
Let's say that hypothetically I used javascript to add an input to a
form in its onload method. How can I get wicket to become aware of that
input so I can do things like validate it, etc.?
Eelco Hillenius wrote:
On Thu, May 8, 2008 at 3:15 PM, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
2) using a special RequestCodingStrategy, i.e.
UnmountedRequestCodingStrategy and tweaking isWicketRequest to return false
if it detects this request coding strategy...
What do you guys think?
Hi,
I've noticed that when submitting a (stateless) Form page the onSubmit()
method of the form is only called once all the Page components have all been
created, and likewise any model objects relating to the form are only populated
once the page components have been rendered.
This means
Although, it still has some issues when dealing with mouseover and
keyboard events combo ;o)
-Original Message-
From: Gerolf Seitz [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 08, 2008 4:23 PM
To: users@wicket.apache.org
Subject: Re: AutoCompleteTextField type mismatch in line 227
in case you mean [0], that's going to be dealt with probably
tomorrow ;)
[0] https://issues.apache.org/jira/browse/WICKET-1595
On Fri, May 9, 2008 at 1:52 AM, Hoover, William [EMAIL PROTECTED] wrote:
Although, it still has some issues when dealing with mouseover and
keyboard events combo ;o)
After some 6 months of wicket ive come accross some wierd scenarios
Go'ol request/response
1. Sub FormComponent hierarchies that needed to be manually visited to have
thier vaidate and updateModel called. It was a criteria/search panel that
supplied a form with data. Just a bit awkward to
that is it :o)
i'm assuming the same issue also causes the selection to be lost on
occasion
-Original Message-
From: Gerolf Seitz [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 08, 2008 7:57 PM
To: users@wicket.apache.org
Subject: Re: AutoCompleteTextField type mismatch in line 227
in
I typically don't like to have my UI code directly interact with the
ORM implementation (hibernate in this case). For my applications, I
pass a Repository (think DAO) object and the object's id into the
LoadableDetachableModel.
On Thu, May 8, 2008 at 6:33 PM, Igor Vaynberg [EMAIL PROTECTED]
This is the error I'm getting:
[DEBUG LoadAdDataInterceptor] Loaded
AdData:[EMAIL PROTECTED]
[ERROR RequestCycle] Cannot format given Object as a Number
java.lang.IllegalArgumentException: Cannot format given Object as a
Number
at
e.g.
public class AjaxEvent
{
private SetComponent listeners = new HashSetComponent();
public void register(Component listener)
{
listeners.add(listener);
}
public void fire(AjaxRequestTarget request)
{
for
Hello Johan,
Thanks for the advice...i will try to look at for any servlet.jar...anyway
our project is big and i dont know want jars my teammate added-n-added...
:-)
Thanks a lot..Cheers
Johan Compagner wrote:
it seems that jetty 6 really uses servlet api 2.5 yes (this is by the way
very
Okay, I just stepped through this and getting the feeling that 'somehow'
the label is being passed on to the model. Now, if the label is '1' it
works fine, but if it's '1 day', then I get that error.
The question here is: why is the label being passed back to the model?
Doesn't make any sense -
the stateless stuff has to recreate the component hierarchy first - eg
the form instance has to exist before you can call onsubmit on it :)
however, inside onsubmit you can do any component replacement you
want, just like in a non-stateless page.
-igor
On Thu, May 8, 2008 at 4:36 PM, Joel
im not that religious about this. i dont like to pass daos around or
have to look them up, not when i am using a central persistence tech
like hibernate/jpa. so i think of my entitymodel as a repository for a
single object :) you can give it the object or the class and id and it
knows how to load
Well, I have a similar class called DetachableEntityModel (Entity is
an interface we devised to mark something as a persistent entity):
public class DetachableEntityModelT extends Entity extends
LoadableDetachableModelT
{
private RepositoryT repository;
private String id;
public
62 matches
Mail list logo