Should be the same thing..
2010/1/26 Douglas Ferguson
> I'm using modjk.
>
>
> On Jan 25, 2010, at 4:05 PM, Jeremy Thomerson wrote:
>
> > How are you frontending Tomcat with Apache? If it's by proxying, you may
> > just be able to configure it to do the gzip for you on anything in the
> > resou
Just figured out how to do UnitTesting with Spring 3 and Wicket.
Spring 3 introduced a check to see if a given context was a
WebApplicationContext. That means ApplicationContextMock is not suitable for
testing (giving the infamous " No WebApplicationContext found: no
ContextLoaderListener registere
Is there any way to make the AjaxSelfUpdatingTimerBehavior execute X
number of times and then stop until a page refresh/reload?
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users
You can override getPreconditionScript method to test an counter value on
document object. When you refresh the page, you got a new document.
On Tue, Jan 26, 2010 at 10:05 AM, Sam Barrow wrote:
> Is there any way to make the AjaxSelfUpdatingTimerBehavior execute X
> number of times and then stop
Please add this to http://cwiki.apache.org/WICKET/spring.html
On Tue, 2010-01-26 at 11:48 +0100, Jochen Mader wrote:
> Just figured out how to do UnitTesting with Spring 3 and Wicket.
> Spring 3 introduced a check to see if a given context was a
> WebApplicationContext. That means ApplicationConte
looks as it has been solved here:
http://stackoverflow.com/questions/2114351/dynamically-add-components-to-listview-in-wicket/
bert
On Sun, Jan 24, 2010 at 13:04, Sven Meier wrote:
> Hi,
>
> you'll have to tell the request target which components to redraw:
> Put your list inside a markupcontai
Yes, in this example when it comes to closing the second modal from the 'x'
button the callback returns false obviously. When it does not, everything gets
messed up and middle modal gets 'page expired'. How can I close the second
modal and get back to middle modal with no obstacles like these?
Here's the code:
first modal:
public class DisplayEventsPage extends WebPage implements RepeaterHoldingPage {
public DisplayEventsPage(final ModalWindow parent) {
ModalWindow dialog = new ModalWindow("modal");
AjaxLink entryRemovalLink = new
AjaxLink("event_removal
Hello,
My page displays a list of items, for each of them, an icon is available
to delete it. The action is managed in a Link.onClick() method.
When I click on the link, the page is refreshed but the item is always
in my list, I have to do refresh again manually the page to have a list
wihtout
You're probably not using models correctly - specifically for your list
view. You could post some code, but make sure that you're reloading the
data for the list view after the onClick is called and the item is deleted.
--
Jeremy Thomerson
http://www.wickettraining.com
On Tue, Jan 26, 2010 at
http://ananthakumaran.github.com/imagebundler-wicket
I was wondering why would wicket need Duration class as long as java
provides a similar TimeUnit. Maybe it would be a good idea to deprecate this
class & encourage usage of TimeUnit?
Alex Objelean
Please find my code just below :
public class NewsListPage {
protected static transient NewsDao myNewsDao;
public NewsListPage() {
PageableListView news =
new PageableListView("list", new NewsModel(), 15){
@Override
protected void populateItem(final
Please, can someone help me with this?
Thanks again!
Regards,
Martin
-Original Message-
From: Martin Asenov [mailto:mase...@velti.com]
Sent: Tuesday, January 26, 2010 4:17 PM
To: users@wicket.apache.org
Subject: RE: modal window contained and displayed by another modal window
Here's the
Hi all,
I tried to use the getValidatorKeyPrefix() feature to have a more suitable
translation key for a RequiredTextField and the < required > message.
But Wicket wasn't able to find my key : the debug log said that it couldn't
find my key whereas it is well-formed (getValidatorKeyPrefix() + ".
Just making the example more clear:
add(new WebMarkupContainer("bodyId") {
@Override
public boolean isTransparentResolver() {
return true;
}
@Override
protected void onComponentTag(final ComponentTag tag) {
super.onComponentTag(tag);
tag.pu
I have basically concentrated on the CometD Service
This should be a simple bug to fix.
On Fri, Jan 22, 2010 at 10:34 AM, Roland Vares wrote:
> Hello,
>
> I'm currently developing wicket based application, which displays alarms on
> map and allows their modification.
> New alarms are sent to
Very cool Anantha, do you have a site online that uses the bundler that we
could take a peek at as a running example?
On Tue, Jan 26, 2010 at 7:42 AM, Anantha Kumaran
wrote:
> http://ananthakumaran.github.com/imagebundler-wicket
>
Stephane,
I'll let someone smarter than me address the wicket issue of removing the
item from the ListView and seeing if that helps -- but is there a chance you
are using Hibernate and the Level 2 ehcache plugin or any 2nd-level caching
with your persistence code? I ask because I've seen code like
Hi,
I don't use Hibernate. My persistence layer uses JDBC.
What is strange when I click the delete link, it's the logs order :
Loading all news
News deleted
So it seems that the deletion is done after the data reload :(
Stéphane
Riyad Kalla a écrit :
Stephane,
I'll let someone smarter tha
java.util.concurrent.TimeUnit only covers units from nanos to seconds
(in java 1.5, that is)
So before wicket moves to java 1.6 we probably have a 'no go' here...
On Tue, Jan 26, 2010 at 3:42 PM, Objelean Alex wrote:
> I was wondering why would wicket need Duration class as long as java
> provide
Call news.getDefaultModel().detach(), and look for more info about
detachable models.
http://cwiki.apache.org/WICKET/detachable-models.html
On Tue, Jan 26, 2010 at 1:35 PM, Stéphane Jeanjean <
stephane.jeanj...@softeam.com> wrote:
> Hi,
>
> I don't use Hibernate. My persistence layer uses JDBC.
Hej,
2010/1/26 Objelean Alex :
> I was wondering why would wicket need Duration class as long as java
> provides a similar TimeUnit. Maybe it would be a good idea to deprecate this
> class & encourage usage of TimeUnit?
If I am correct TimeUnit doesn't store a duration, it is used for
informing a
missing line: call detach method just after delete your item.
On Tue, Jan 26, 2010 at 1:41 PM, Pedro Santos wrote:
> Call news.getDefaultModel().detach(), and look for more info about
> detachable models.
>
> http://cwiki.apache.org/WICKET/detachable-models.html
>
> On Tue, Jan 26, 2010 at 1:35
The behaviour is the same with the following code :(
public void onClick() {
// TODO : check the refresh issue
getNewsDao().delete(item.getModelObject());
ourLogger.debug("News deleted");
by calling getDefaultModel inside onClick, you get an reference to the link
component model. You need to detach the model on your list view. You has an
reference to it on your variable "news". So: news.getDefaultModel().detach()
If you need, you can change that variable modifiers or turn it an inst
Thanks Pedro, it's ok now ;-)
I use LoadableDetachableModel to avoid the call to detach() method. It
does not seem that is the right way. Somebody can explain me why ?
Stéphane
Pedro Santos a écrit :
by calling getDefaultModel inside onClick, you get an reference to the link
component mode
i will try to put it in the google appspot later. Here is the source code of
a sample http://github.com/ananthakumaran/imagebundler-wicket
On Tue, Jan 26, 2010 at 7:20 AM, Riyad Kalla wrote:
> Very cool Anantha, do you have a site online that uses the bundler that we
> could take a peek at as a
This is very very cool.
Congrats Anantha!
On Jan 26, 2010, at 9:07 AM, Anantha Kumaran wrote:
> i will try to put it in the google appspot later. Here is the source code of
> a sample http://github.com/ananthakumaran/imagebundler-wicket
>
> On Tue, Jan 26, 2010 at 7:20 AM, Riyad Kalla wrote:
I am trying to figure out how I could add a busy indicator to my wizard
so that when transitioning between steps the busy indicator appears.
The transition between steps in my wizard may take a long time.
1.How could this be done with just Wicket?
2. How could this be done using
Hi!
You do not need Wicket to make a busy indicator. It's plain HTML + JavaScript.
The only thing about wicket that is relevant is that you want to
remove the busy indicator after ajax-request has been processed.
Here is an example:
http://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-
Hello,
I have a modal window that is used to create a contact and needs to submit
data to the server once submit button is called.
The submit button is defined as follows:
SUBMIT
contact_form.add(new Button("contact_submitbutton").add(new
AjaxFormSubmitBehavior(contact_form, "onclick") {
Do you have an feedback panel on the model? If don't, add one and see if
your form don't pass in some validation like on required field.
On Tue, Jan 26, 2010 at 4:07 PM, Anna Simbirtsev wrote:
> Hello,
>
> I have a modal window that is used to create a contact and needs to submit
> data to the s
I have, but maybe its incorrect.
contact_form.add(new FeedbackPanel("popup_feedback", new
ContainerFeedbackMessageFilter(contact_form) ));
On Tue, Jan 26, 2010 at 1:32 PM, Pedro Santos wrote:
> Do you have an feedback panel on the model? If don't, add one and see if
> your form don't pass in
Take a look at the AjaxButton if you need an asynchronous submit, and
implement your onError handlers with:
target.addComponent( myFeedbackPanelThatMabyWillShowSomeMessageIfGetUpdated
);
On Tue, Jan 26, 2010 at 4:34 PM, Anna Simbirtsev wrote:
> I have, but maybe its incorrect.
>
>
>
> contact_f
Thanks, now in my feedback it displays errors that all required fields are
empty. But the problem is, that even if I put the values in those fields it
still does not see them and gives the same errors in the feedback panel.
On Tue, Jan 26, 2010 at 1:41 PM, Pedro Santos wrote:
> Take a look at th
Even using AjaxButton? Can you send the code?
On Tue, Jan 26, 2010 at 4:55 PM, Anna Simbirtsev wrote:
> Thanks, now in my feedback it displays errors that all required fields are
> empty. But the problem is, that even if I put the values in those fields it
> still does not see them and gives the
Martin,
Thanks. That should do it. I should be able to use Jquery instead using the
functions provided.
-Original Message-
From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com]
Sent: Tuesday, January 26, 2010 12:40 PM
To: users@wicket.apache.org
Subject: Re: Wizard busy ind
Seems weird to me as well that 'detach' has to be explicitly called. Also
still curious why Stephane was seeing the log ordering he did when the link
was clicked:
Loading all news
News deleted
I'd expect to see "news deleted" first, from his onClick handler then the
"loa
Doesn't it have to load the model so that it knows what item it's talking to?
On Tue, Jan 26, 2010 at 2:12 PM, Riyad Kalla wrote:
> Seems weird to me as well that 'detach' has to be explicitly called. Also
> still curious why Stephane was seeing the log ordering he did when the link
> was clicked
Ok, thanks for the quickstart.
I just submitted the fix to svn...
On Tue, Jan 19, 2010 at 2:38 AM, vineet semwal
wrote:
> thanks,
> i will take a look at them.
>
> On Mon, Jan 18, 2010 at 9:32 PM, Rodolfo Hansen wrote:
>
> > On Fri, Jan 15, 2010 at 5:24 AM, vineet semwal
> > wrote:
> >
> > >
>
Do the comments in the inspiration design document about localization
also apply to your Wicket ImageBundle implementation? If Wicket's
built in image handling functions as a "locale-specific factory" does
image localization work as expected with bundles?
Ed.
On Tue, Jan 26, 2010 at 12:23 PM, A
I changed it to use AjaxButton instead of AjaxFormSubmitBehavior and it
still does not see the values.
SUBMIT
FeedbackPanel contact_feedback = new FeedbackPanel("popup_feedback", new
ContainerFeedbackMessageFilter(contact_form));
contact_feedback.setOutputMarkupId(true);
contact_form.add(new Re
TimeUnit is icky and storing time values in primitive types is a bad idea.
Alexandru Objelean wrote:
>
> I was wondering why would wicket need Duration class as long as java
> provides a similar TimeUnit. Maybe it would be a good idea to deprecate
> this
> class & encourage usage of TimeUnit?
All data in Java is ultimately stored as some sort of primitive type.
On Tue, Jan 26, 2010 at 2:55 PM, Jonathan Locke
wrote:
>
>
> TimeUnit is icky and storing time values in primitive types is a bad idea.
>
>
> Alexandru Objelean wrote:
>>
>> I was wondering why would wicket need Duration class
I have to add that its all done inside a modal window.
Create Contact
On Tue, Jan 26, 2010 at 2:26 PM, Anna Simbirtsev wrote:
> I changed it to use AjaxButton instead of AjaxFormSubmitBehavior and it
> still does not see the values.
>
> wicket:id="contact_submitbutton" class="button"/>SUBMIT
Try now...
To me, the push service is overly complicated, and you could easily get away
with simply using Wicket's AjaxTimeoutBehavior as there are no technical
advantages over the later.
The comet version of push offers a couple of serious advantages for the
server, and client side. Why can't yo
Looks cool - but rather than generating a static string, why don't you
generate a string that includes a call to urlFor(Class, imageName) so that
you can allow for internationalization? (Wicket will generate the proper
internationalized URL for you this way)...
--
Jeremy Thomerson
http://www.wicke
i thought they were all stored as electrons
-igor
On Tue, Jan 26, 2010 at 12:00 PM, James Carman
wrote:
> All data in Java is ultimately stored as some sort of primitive type.
>
> On Tue, Jan 26, 2010 at 2:55 PM, Jonathan Locke
> wrote:
>>
>>
>> TimeUnit is icky and storing time values in p
Yes - James is right here - it's a loadable detachable model - so it needs
to load the data in order to repopulate the list before deleting the item.
My guess is either you need to call the detach so that on the re-render it
gets reloaded, or you need to make sure your delete is being committed to
... touche? :)
On Tue, Jan 26, 2010 at 2:00 PM, Igor Vaynberg wrote:
> i thought they were all stored as electrons
>
> -igor
>
> On Tue, Jan 26, 2010 at 12:00 PM, James Carman
> wrote:
> > All data in Java is ultimately stored as some sort of primitive type.
> >
> > On Tue, Jan 26, 2010 at 2
Yeah - and although I haven't confirmed it myself, I have been told that all
dates are actually stored as 0's and 1's - and that must be why there was
such a fuss in 2000 - too many zeroes and not enough ones - or something
like that.
:)
--
Jeremy Thomerson
http://www.wickettraining.com
On Tue
There is a difference between
MILLISECONDS.toSeconds(duration) and duration.toSeconds()
As for all data being stored as primitives, sometimes being able to
access it on higher level can be kinda nice...
-Matej
On Tue, Jan 26, 2010 at 9:00 PM, James Carman
wrote:
> All data in Java is ultimatel
I was misinformed. I stand corrected! :)
On Tue, Jan 26, 2010 at 4:00 PM, Igor Vaynberg wrote:
> i thought they were all stored as electrons
>
> -igor
>
> On Tue, Jan 26, 2010 at 12:00 PM, James Carman
> wrote:
>> All data in Java is ultimately stored as some sort of primitive type.
>>
>> O
Or, call detach(), then call modelChanged()?
On Tue, Jan 26, 2010 at 4:02 PM, Jeremy Thomerson
wrote:
> Yes - James is right here - it's a loadable detachable model - so it needs
> to load the data in order to repopulate the list before deleting the item.
>
> My guess is either you need to call t
Hello,
I have a page that I dynamically add components to using a repeating
view. At some point in the process, my components are rendered off the
visible browser page.
Is there a slick way in Wicket to ensure that a component dynamically
added to a repeating view is "in view" on the page?
Just ran across another base64-based method of spriting images that
Cappuccino is using:
http://cappuccino.org/discuss/2009/11/11/just-one-file-with-cappuccino-0-8
pretty interesting and supports back to IE6. Just wanted to share incase
anyone else reading on this subject was curious about other t
I am trying to retrieve wicketstuff-core from repository and am getting
the following "Missing artifact".
Missing artifact org.wicketstuff:wicketstuff-core:jar:1.4.2-SNAPSHOT:compile
my pom
...
wicket-snaps
http://wicketstuff.org/maven/repository
true
You could just have the ModalWindow's contents be set in the onClick of the
button that shows the window.
Then you know if the checkbox has been checked or not and you can add in the
appropriate panel, then just show the window.
In my app I have any number of modal windows that might show depend
What part of wicketstuff do you want to use in your project? The
"wicketstuff-core" artifact is not a JAR artifact. You have to specify the
actual JAR you need, like "annotation", for example:
org.wicketstuff
annotation
1.4.2-SNAPSHOT
Warren Bell-2 wrote:
>
> I am trying to retrieve wi
wicketstuff-minis
I found it:
org.wicketstuff
minis
1.4.1
Thanks
mbrictson wrote:
What part of wicketstuff do you want to use in your project? The
"wicketstuff-core" artifact is not a JAR artifact. You have to specify the
actual JAR you need, like "annotation", fo
Why not use Spring's StaticWebApplicationContext?
StaticWebApplicationContext ctx = new StaticWebApplicationContext();
ctx.getBeanFactory().registerSingleton("serviceOfDoom", mock);
http://static.springsource.org/spring/docs/3.0.x/api/org/springframework/web/context/support/StaticWebApplicationC
Thanks for the Reply. I will look into it.
On Tue, Jan 26, 2010 at 12:59 PM, Jeremy Thomerson <
jer...@wickettraining.com> wrote:
> Looks cool - but rather than generating a static string, why don't you
> generate a string that includes a call to urlFor(Class, imageName) so that
> you can allow f
For anybody who's interested, I got this to work by just
calling form.textField.setModelValue(new String[]{""});
I had to make the fields member vars of the form, though.
If there's another cleaner way of doing it, I'd appreciate seeing it.
Flavius wrote:
>
>
> I have a panel with a form on
You should only need access to the Model on the Form, which you would set to
empty, and then you have two options
1. Get access to the TextField so you can repaint it with AjaxRequestTarget
2. Use FormComponent's IVisitor pattern to visit everything in that form to
repaint
On Jan 26, 2010, at
> You could just have the ModalWindow's contents be set in the onClick
of
> the button that shows the window.
That's how I'm opening them but that's not the problem. The problem is
once I have a ModalWindow open I want to switch the contents without the
'flicker' of shutting down the ModalWindow
Hi!
> That's how I'm opening them but that's not the problem. The problem is
> once I have a ModalWindow open I want to switch the contents without the
> 'flicker' of shutting down the ModalWindow and opening up another one.
For us we have done it just by replacing the content panel:
modalWindow
Hi!
Actually no, we did not use setContent but we used
modalWindow.replace(newContent);
**
Martin
2010/1/27 Martin Makundi :
> Hi!
>
>> That's how I'm opening them but that's not the problem. The problem is
>> once I have a ModalWindow open I want to switch the contents without the
>> 'flicker'
1.4.5
In window with list, I call modal window
(org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow)
with my edit window (extends org.apache.wicket.markup.html.WebPage with
WebSession.get().createAutoPageMap()).
This edit window contains some link, wich also create modal window for
Ah I thought the 'create new account' check box was on the parent page and
checked before the Window was opened. But its in the window itself. Right so
you want to replace a panel in the page. In that case:
I do this as well as I have a form in my ModalWindow that allows a user to
confirm an ac
Agree with Huake Ingmar. The functionality doesn't overlap at all. My
main reason for wanting the plugin to work is to switch easily between
the html and the java code for the same component. In a maven project
this is particular a hassle because the java code is in packages under
/src/main/java an
I ended up creating an AjaxTabbedPanel inside the modal and let the
users switch between "Sign in" and "Create account" by choosing the
appropriate tab.
It actually a fairly reasonable solution.
I had tried the modalWindow.replace(newContent); idea but that didn't
work either for some reason.
>
I had not heard of wicket bench before reading this email thread. So, I
installed it and found that it doesn't play well with 'myeclipse'; not sure
where the fault lies. So I just don't use it as a default editor. I do
like some of the features. If you just want to switch between java and html
On Tue, Jan 26, 2010 at 10:00 PM, Igor Vaynberg wrote:
> i thought they were all stored as electrons
My vote goes to Umpalumpa's shifting miniature pumpkins on scales
Martijn
--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety f
74 matches
Mail list logo