So you see the initial state instead of the latest ajax state? This is
a browser problem, i believe ms is fixing that for ie in number 8.
You can go around it by letting the backbutton always go to the
server, look at configureResponse/setheaders of webpage an add nostore
On 3/27/08, bhitai
Yes I did, and the changed values are still being rest back to the original
ones.
Nick Heudecker wrote:
Did you call setReuseItems(true) on your ListView?
On Wed, Mar 26, 2008 at 9:12 AM, lizz [EMAIL PROTECTED] wrote:
I have a page that contains a compound property model that refers
Hello,
I have been looking at messages, examples and wiki, but I couldn't make this
to work...
I have one file: home.java, and around 26 language dependant html files
(home.html, home_es.html, home_ja.html...). What I want to do is create a
folder called 'html' and put the html files there.
you need to implement your own IResourceStreamLocator and register it
in resource settings
-igor
On Thu, Mar 27, 2008 at 12:37 AM, Toscano [EMAIL PROTECTED] wrote:
Hello,
I have been looking at messages, examples and wiki, but I couldn't make this
to work...
I have one file:
James Carman wrote:
On Wed, Mar 26, 2008 at 3:36 PM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
If he meant that the cms should be available via multiple
vhosts(apache2), but share the same application base then what?
Lets say:
mycompA.com -- myapplication on tomcat
Yup. Jayway will be happy to sponsor/provide snacks and shelter for the
meetup:)
Flemming Boller wrote:
Hi
About the copenhagen meetup, should we arrange something around the 25 - 28
march?
At my workplace we are having a wicket course with one of the developers.
Perhabs we can persuade him
Hi!
When I use PropertyModel like this:
public abstract class Parent extends WebPage {
private int field;
public Parent() {
Form form = new Form(form);
add(form);
form.add(new TextField(field, new PropertyModel(this, field)));
}
public int getField() {
ATM the server seems to be down, so that might cause your problem.
otherwise make sure you included the following repository in your pom.
repository
idwicket-snaps/id
urlhttp://wicketstuff.org/maven/repository/url
snapshots
org.apache.wicket.WicketRuntimeException: No get method defined for class:
class com.domain.Child expression: filed
looks like you mispelled the property name in the propertymodel constructor?
Gerolf
you can also roll your own TextLink very easily:
class textlink extends link {
public textlink(id, model) {
super(id, model);
}
protected void onComponentTagBody(...) {
replaceComponentTagBody(..., getModelObjectAsString());
}
}
this way you don't need a label inside the link.
Sorry, it was my bug..
PropertyModel works great! :)
Artur
--
View this message in context:
http://www.nabble.com/using-PropertyModel-in-abstract-class-tp16323331p16323342.html
Sent from the Wicket - User mailing list archive at Nabble.com.
Hi all,
I want to use a CheckGroup (allowgroup) with a DataView, and there is
another CheckGroup (othergroup) in the inside of the DataView.
I can get the allowgroup's value,
but I can't get the othergroup's value.
submitformForm
allowgroupCheckGroup
allowselectorCheckGroupSelector
I found the method Component.render(MarkupStream markupStream).
I am thinking about to create this page and then render it, save the stream,
and set it as email body...
Or is there a more elegant and better wicket-way to achieve this?
greeklinux wrote:
Hello,
I would like to create
Only problem is, that there are no days left. Since I cant today or
tommorow:/ This really sucks!
So I propose that we plan a WUG within the next two weeks instead?
regards Nino
Nino Saturnino Martinez Vazquez Wael wrote:
Yup. Jayway will be happy to sponsor/provide snacks and shelter for
Complementing Maurice on this:
it's also described on the wiki on the developer page
http://wicketstuff.org/confluence/display/STUFFWIKI/ , although the
server seems to be down currently..
Maurice Marrink wrote:
ATM the server seems to be down, so that might cause your problem.
otherwise
Thank you !! It was that. I had not joda-time :)
igor.vaynberg wrote:
do you have joda jars which wicket-datetime depends on???
-igor
On Wed, Mar 26, 2008 at 8:25 AM, Fabien D. [EMAIL PROTECTED]
wrote:
I've just migrated to wicket 1.3.2 and added the good librairies.
And I have
On Wed, 26 Mar 2008, Charlie Dobbie wrote:
I'm guessing at this point that I should just copy the DateTimeField
component entirely and modify to fit! :-)
Yes, Wicket does not entirely solve the issue of GUI
component reuse, though helps a lot in it. I have also
sometimes found that the most
Hi,
Assuming you use CGLib:
CGLib classes could cause this problem, it makes sense since:
- It does not occur in a single jvm, the enhanced classes are available
there.
- It does occur when read from a different jvm *or* restarted jvm: The
enhanced classes are no longer available there.
That makes perfect sense in the scenario where rows are deleted, but it doesn't
make sense when all that is being done is clicking the next button for a
PagingNavigator. Why would do we need two calls to the size method in that
scenario?
-Original Message-
From: Igor Vaynberg
How can the offset in the AbstractPageableView - getViewOffset() be accessed
in a IDataProvider? Does the proposed solution make sense?
-Original Message-
From: Hoover, William [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2008 2:39 PM
To: users@wicket.apache.org
Subject: RE:
Hi Igore
I have some code to share now. This is what I did:
in the constructor for the Application, I mount pages with hybridUrlCoding
strategy as suggested by you.
mount(new HybridUrlCodingStrategy(home, MenuPage.class));
mount(new
and how do we know the difference?
You as a developer know it, we dont know it as a framework, just cache it in
your dataprovider or wrap in in a caching data provider. Why is that so
difficult
johan
On Thu, Mar 27, 2008 at 12:39 PM, Hoover, William [EMAIL PROTECTED]
wrote:
That makes
The difference is that in the deletion scenario the state of the data has
changed. In the pagination scenario the state of the data has not changed. Why
is that so difficult to differentiate?
-Original Message-
From: Johan Compagner [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27,
Also, you mention that all that is needed is to cache it (I assume you are
referring to the actual data) in the data provider. How can that be done when
the size is being called when there is no way to get the current offset that is
needed to get the data in the first place?
-Original
no cache the size.
We first have to have the size to be able to give you the offset and count
params.
And depending of the type of data or the database you use you could also
already query the data (in the size() call)
But i know that is not always the best thing to do.
But do you want an extra 2
On Thu, Mar 27, 2008 at 3:49 AM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
The only problem with that is that you have to set up your proxy
Connector in Tomcat's server.xml with a hard-coded server name:
Connector port=8081 ...
I would maybe take a look at WicketTester. It does what you're
looking for (renders to a String) I believe.
On Thu, Mar 27, 2008 at 4:43 AM, greeklinux [EMAIL PROTECTED] wrote:
I found the method Component.render(MarkupStream markupStream).
I am thinking about to create this page and then
Server should be back up as of +-12:00.
Maurice
On Thu, Mar 27, 2008 at 10:00 AM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
Complementing Maurice on this:
it's also described on the wiki on the developer page
http://wicketstuff.org/confluence/display/STUFFWIKI/ ,
On Thu, Mar 27, 2008 at 8:49 AM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
I'll send my config once I get near my server later today:) It is
actually working without the connector setup in tomcat.
And I think you can even get it to work with connection pooling using
the
Okay, two issues... (1) combined call for size/data (2) multiple calls to
size() when paginating
I will avoid confusion by addressing only the multiple calls to size() for now.
If only the size was to be cached, as you suggested, how would the data
provider know when to clear it? The data
Hi,
I did some more research (since I am intrigued by the subject) with the
following results:
- If you have enhanced cglib classes in your session and they are serialized
and later deserialized by a different jvm (for instance after restart)
you'll get a ClassNotFoundException. Since it can't
no you as a developer KNOW that it can cache it
Cache it if you can dont if you cant
On Thu, Mar 27, 2008 at 2:28 PM, Hoover, William [EMAIL PROTECTED]
wrote:
Okay, two issues... (1) combined call for size/data (2) multiple calls to
size() when paginating
I will avoid confusion by addressing
Okay here follows my config, I've configured multiple domains:
Forexample you can see at some point I append something like /zeuz to
the context, thats because in my filtermapping I've specfied that wicket
should only bind to /zeuz also if you have images served by tomcat you
need to forward
argh it got truncated... heres one that looks prettier:
http://papernapkin.org/pastebin/view/213/
-regards Nino
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi everyone,
Can you post code for an example data provider that would KNOW how to cache the
size?
-Original Message-
From: Johan Compagner [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2008 10:47 AM
To: users@wicket.apache.org
Subject: Re: DataView size() iterator() call order issue
no you
Hi,
with newNodeComponent in the BaseTree class i can specify a different
component for my treenode, but this is the same for all node. Is it possible
setting different treenode component for added a different type of node in
my tree?
something like this:
protected Component
we have just released 1.2.7 which is the last 1.2.x release we will make.
there is a patch on how to make this work in jira assigned to 1.3, you
can take that and roll your own checkgroup/check variants.
-igor
On Thu, Mar 27, 2008 at 1:41 AM, Dreamltf [EMAIL PROTECTED] wrote:
Hi all,
I
you couldve just used maven and saved us all some time...
-igor
On Thu, Mar 27, 2008 at 2:04 AM, Fabien D. [EMAIL PROTECTED] wrote:
Thank you !! It was that. I had not joda-time :)
igor.vaynberg wrote:
do you have joda jars which wicket-datetime depends on???
-igor
I'm only interested in caching it for the current request so there isn't
multiple calls to size within the same request. The same way
AbstractPageableView is caching it and clearing it in onBeforeRender. The
only problem is that:
1) I do not have access to the cached size stored in
that is why we try to layer functionality in class hierarchy via
abstract classes, so you can find a good point to rewrite something
high level for your particular usecase.
-igor
On Thu, Mar 27, 2008 at 2:06 AM, Timo Rantalaiho [EMAIL PROTECTED] wrote:
On Wed, 26 Mar 2008, Charlie Dobbie
my suggestion is to make it work without ajax first, that way you know
everything is correctly setup. then add ajax into the mix.
-igor
On Thu, Mar 27, 2008 at 4:46 AM, bhitai [EMAIL PROTECTED] wrote:
Hi Igore
I have some code to share now. This is what I did:
in the constructor for the
i suppose you can try issuing a window.opener.wicket.ajax.get request
to trigger an ajax request, but i am not sure how and if
xmlhttprequest works across windows...
-igor
On Thu, Mar 27, 2008 at 7:56 AM, taygolf [EMAIL PROTECTED] wrote:
I would have thought there was another way to do this.
i dont see why not. model.getobject() will get you the treenode, which
you can cast down to your impl which will have a type property
-igor
On Thu, Mar 27, 2008 at 8:24 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
with newNodeComponent in the BaseTree class i can specify a
public class MySizeCachingDataProvider implements IDataProvider {
private Integer size = null;
private ListFoo resultset = null;
public int getSize() {
if(size == null ) {
performExpensiveQuery();
}
return size;
}
public Iterator iterator() {
forgot:
public class MYSizeCachingDataProvider ... {
public void detach() {
size = null;
resultset = null;
}
}
On 3/27/08, Martijn Dashorst [EMAIL PROTECTED] wrote:
public class MySizeCachingDataProvider implements IDataProvider {
private Integer size = null;
On Wed, 26 Mar 2008, Maurice Marrink wrote:
In wicket you have to assign a Label to an Item or a Link. The
corresponding markup would then be something like:
li wicket:id=itemspan wicket:id=label/span/li
However it is possible to remove the span for the label from the final
markup send to the
what happens if you use Examples?
i dont know jboss that well, but under the hood it is tomcat so it should
wrk fine
On Wed, Mar 26, 2008 at 11:15 PM, surya009
[EMAIL PROTECTED] wrote:
Yes all I did was took the quickstart sample application and added
jboss-web.xml as shown below
Hi all,
Does anybody know any good JavaScript navigation menu that works fine with
Wicket? Out Graphics Designer is trying to create a menu for me and has
problem finding a good one.
Thanks,
Zhubin
Zhubin Salehi
Senior Software Engineer
Route1, Inc.
Phone: (416) 848-8391 Ext. 2262
Thank you Lars, unfortunately we still haven't found any actual cglib
proxies in our session. So it goes.
- Scott
On Thu, Mar 27, 2008 at 7:41 AM, lars vonk [EMAIL PROTECTED] wrote:
Hi,
I did some more research (since I am intrigued by the subject) with the
following results:
- If you
We just discovered that if we use SecondLevelCacheSessionStore the
problem goes away. From there we determined that the setting
Application.get().getPageSettings().setAutomaticMultiWindowSupport(false);
is the lynch pin. We still don't know why this resolves the problem.
- Scott
On Tue, Mar
I've just realised that the database is getting filled with columns of empty
strings which then don't cause the 'not null' test to trip.
The culprit is the TextField returning an empty string rather than a null. I
can see there are some special considerations for returning a null and I
want to
Hi,
I've been experiencing issues when submitting forms using IE. I'm using
Wicket with Jetty under Windows.
Sometimes, when submitting a form the user sees a session expired page and
loses his data. When testing this I set the session-timeout to 60 minutes
and the problem appeared well before
Caused by: org.mortbay.jetty.EofException
that usually happens when someone presses the stop button in the
browser/network connection fails before the request is finished...
-igor
On Thu, Mar 27, 2008 at 10:32 AM, vico [EMAIL PROTECTED] wrote:
Hi,
I've been experiencing issues when
Hi,
I'm using Wicket 1.3.2, had a piece of code that read like this:
public MySession(final AuthenticatedWebApplication application,
final Request request) {
super(application, request);
}
and was getting the following warning:
warning: [deprecation]
Hello,
Yesterday I tried adding a new Link() to an img tag. I noticed that when
you hover over the image the cursor doesn't change and the status bar
doesn't say anything. I bet 9 times out of 10 you wouldn't want this
behavior. I already fixed the cursor problem with CSS, how do I make the
that's because Link only adds the onclick event handler for non anchor tags
and browser only do the cursor and status bar thing for anchor tags by
default.
you already fixed the cursor issue and you can write text to the status bar
via
window.status = foo, although this doesn't work in IE7 and
Ah, ok, thanks for that explanation.
BTW, only recently have I started seriously using wicket (as in, every day
for 4+ hours). Something that comes up time and time again is the need for
a LinkLabelPanel. I find it very time consuming to add() to this in the
code:
a wicket:id=linkspan
what else did you use if you didnt use SLCS?
Because if you use the HttpSessionStore then we dont do anything with
serialization..
Thats all tomcat or app container itself
johan
On Thu, Mar 27, 2008 at 6:01 PM, Scott Swank [EMAIL PROTECTED] wrote:
We just discovered that if we use
Can I change my popup window from a standard popup window to a modal window.
would that allow me to do what I am wanting to do.
All I want to do is have a main page. on that main page click a link. the
link will bring up a popup or a modal window, or a hidden div or what ever
that will allow me
yes, that way in modal window's close callback you have access to the
ajax request target
-igor
On Thu, Mar 27, 2008 at 1:39 PM, taygolf [EMAIL PROTECTED] wrote:
Can I change my popup window from a standard popup window to a modal window.
would that allow me to do what I am wanting to do.
Im sad to say this, but I cant change the plans now, it's just to close
to schedule:/
So see you next time Matej:)
And for the others, I do feel that we should hold a wug within the next
14. days or so...
Nino Saturnino Martinez Vazquez Wael wrote:
I am interested but I cant, I got the
Hi,
I'm wondering if there's a Wicket component that allows items in a single list
to be re-ordered. The extensions Palette component has what I'm looking for as
part of it. The selected list allows you to order the items, but I don't
want the available list and have to move items from it to
I guess I could just do something like this:
button.add(new AttributeModifier(onClick, return jsMethod();));
but I remember there's a standard way of doing that...
Michael
Hi,
when i go to my homepage for the first time, after clearing caching in the
browser, clicking on the login form I see
http://localhost:8080/;jsessionid=905AA4A0D7E4441514ED2588160A04E5?wicket:interface=:0:loginform::IFormSubmitListener::
After the first time and go back to home page again
OR, even simpler via a wicket:message: button wicket:id=fooButton
wicket:message=onclick:fooMethod
What I don't like about this is that the JS call would actually wind up
in my properties file.
-Original Message-
From: Michael Mehrle [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27,
That's a feature of the application server you're using. It has to
put that on there initially because it doesn't know if the browser
supports cookies or not. When a subsequent request comes in with the
jsessionid cookie, it no longer needs to append it to the URLs. Check
the docs for
On Thu, 2008-03-27 at 16:05 -0700, Penn wrote:
Hi,
when i go to my homepage for the first time, after clearing caching in the
browser, clicking on the login form I see
http://localhost:8080/;jsessionid=905AA4A0D7E4441514ED2588160A04E5?wicket:interface=:0:loginform::IFormSubmitListener::
override oncomponenttag and do it there
-igor
On Thu, Mar 27, 2008 at 4:10 PM, Michael Mehrle [EMAIL PROTECTED] wrote:
OR, even simpler via a wicket:message: button wicket:id=fooButton
wicket:message=onclick:fooMethod
What I don't like about this is that the JS call would actually wind up
I need to display a list of numbers of 1,2,3,4 ... to n, 'n' being some big
number. I want to display the number 20 number per page and have some
navigation bar to page through the numbers.
So that at least eliminates the possibility that cglib is somehow involved.
On Thu, Mar 27, 2008 at 5:33 PM, Scott Swank [EMAIL PROTECTED] wrote:
Here's a simple example that reproduces the problem on fail-over, also
for 1.2. All we really need is to have something in the session and
we get
Hello,
My Problem is very simple but it gives me headache. I use form.clearInput();
inside the IndicatingAjaxButton onSubmit but it did not clears the inputs
from the textfields.Any idea how to do this?im using wicket 1.3.1. Thanks a
lot.
Cheers
--
View this message in context:
Glad it works for you.
Tried what you said below, but doesn't solve my problem.
http://www.nabble.com/Finding-the-cause-of-an-Exception-td16088387.html#a16112402
On Thu, 2008-03-27 at 10:01 -0700, Scott Swank wrote:
We just discovered that if we use SecondLevelCacheSessionStore the
My e-mail with attached an attached test case jar didn't go through.
With the following simple application page we get the exception on
failover.
WicketTestApplication.java
---
package com.vegas.wicket_test;
import org.apache.wicket.protocol.http.HttpSessionStore;
import
Hi Igor,
Thank you for your answer although I'm afraid I have no idea on how to do
it... so I will just leave as it is.
I thought that it was easier!
Thanks,
Oskar
igor.vaynberg wrote:
you need to implement your own IResourceStreamLocator and register it
in resource settings
you know, i've kindof wanted this feature for quite a while. does anyone
else out there care? we could maybe add it to the wish list. i don't think
it would add anything to the API. the default markup location mechanism
would just search a subfolder named after the markup type. might be
you have to clear the model also
-igor
On Thu, Mar 27, 2008 at 6:06 PM, freak182 [EMAIL PROTECTED] wrote:
Hello,
My Problem is very simple but it gives me headache. I use form.clearInput();
inside the IndicatingAjaxButton onSubmit but it did not clears the inputs
from the
On Thu, Mar 27, 2008 at 6:16 PM, Toscano [EMAIL PROTECTED] wrote:
Hi Igor,
Thank you for your answer although I'm afraid I have no idea on how to do
it... so I will just leave as it is.
I thought that it was easier!
how much easier can it be? you implement a simple interface and
why would it change the api? write the iresourcestreamlocator and add
it to our compound one...
-igor
On Thu, Mar 27, 2008 at 6:45 PM, Jonathan Locke
[EMAIL PROTECTED] wrote:
you know, i've kindof wanted this feature for quite a while. does anyone
else out there care? we could maybe add
of course. i'm just saying this could be in core rather than having
end-users implement it. it seems like a very reasonable pattern to add in
wicket 1.5.
igor.vaynberg wrote:
why would it change the api? write the iresourcestreamlocator and add
it to our compound one...
-igor
On
thanks James,
what i am trying to do is, first time i go to home page it is fine, I have a
login form. If I enter a correct username/password i login, that's fine.
If user just clicks submit button on the login form without any data, it
remains on the same page. that is fine but the url i get it
You could use onchange events to attach ajax behavior that changes the
required fields?
**
Martin
2008/3/28, freak182 [EMAIL PROTECTED]:
Hello,
I have a problem about bypassing some textfields during form process.I know
how bypass form processing through adding a method to
Ofcourse this does not work if javascript is disabled.
I wonder if it is possible to switch the required fields in a
validator (one which can be configured to run before the required
checks).
**
Martin
2008/3/28, Martin Makundi [EMAIL PROTECTED]:
You could use onchange events to attach ajax
Nice idea, but i dont know how to implement it. Validator or Behavior? any
codes..thanks a lot..cheers
Martin Makundi wrote:
Ofcourse this does not work if javascript is disabled.
I wonder if it is possible to switch the required fields in a
validator (one which can be configured to run
add(new RadioGroup(...) { protected
wantOnSelectionChangedNotifications() { return true; }}
will make it invoke RadioGroup.onSelectionChanged anytime a selection changes
-igor
On Thu, Mar 27, 2008 at 10:48 PM, freak182 [EMAIL PROTECTED] wrote:
Nice idea, but i dont know how to implement it.
85 matches
Mail list logo