You should use AjaxFormComponentUpdatingBehavior for this. Then you
can just get your model object. Your model object has to be something
that is update-able though. Currently you use a string, which is read
only. Do e.g. something like this:
public class SampleTextArea extends TextArea {
Then you probably don't have done the steps to setup ant... ant
requires you to install the junit jar into the ant/lib folder iirc.
It's been a while since I've setup ant to work like this...
Martijn
On 7/7/06, V. Jenks [EMAIL PROTECTED] wrote:
I did steps 1-5...it immediately fails because
Hi,I'm not sure if this problem I'm dealing with have something to do with Wicket or Cayenne.A bit of a background, I'm using Wicket and Cayenne ORM to build a simple CRUD application.I want to be able to select and delete a record from the list (using ListView component) and then redirect back to
If you did listView.setReuseItems(true), which is a good choice when
you embed a ListView in a form, you should manually 'update' the list
view by calling listView.removeAll, which will trigger the list view
to get all the fresh results again and build the list items from
scratch.
If you use
AbstractConverter checks the ParsePosition to ensure that the complete value is
parsed:
if (position.getIndex() != stringValue.length())
{
throw newConversionException(Cannot parse ' + value + ' using format +
format,
value, null).setFormat(format);
}
Thus trailing whitespace will
Ok, Wicket probably wants to prevent that a bogus value '07.07.2006trail' is
parsed.
But shouldn't is be possible to convert '07.07.2006 '? How about adding a
trim()?
Sven
AbstractConverter checks the ParsePosition to ensure that the complete value
is parsed:
if (position.getIndex() !=
Thank you for suggestion, I never think about it. -- PaoloOn 7/6/06, Martijn Dashorst [EMAIL PROTECTED]
wrote:This should give you a headstart...add(new ListView(items) {
protected void populateItem(Item item) {item.add(new TextField(description));}protected IModel getListItemModel(IModel
Is there a way in Wicket to display something like a Loading ... Google red label on Ajax call? Thank you.Paolo
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 easier
Download IBM WebSphere
Yes, try taking a look at IAjaxIndicatorAware API and the example
implementation in Wicket extensions.
Regards
Frank
On Fri, 2006-07-07 at 14:21 +0200, Paolo Di Tommaso wrote:
Is there a way in Wicket to display something like a Loading ...
Google red label on Ajax call?
Thank you.
Hi there,
I read somewhere about some plans to make Wicket play nicely with the Swing
APIs, being able to even convert Swing apps to Wicket. Just wanted to check if
there is any progress in that matter, since we have quite a good usecase for
it, regarding the conversion of a legacy Swing based
I haven't heard of any plans to do an automatic (magic?) conversion
from Swing to wicket. In my opinion, Swing applications don't work
well in a direct translation to the web. That is why WingS, WebOnSwing
and related frameworks never got as large userbase as other web
specific frameworks.
That
I search old mailing list and found that setRenderBodyOnly(true) on ListView can turning off produced repeat wrapper tag. But after trying, it doesn't work.Is this intended ? or I just miss something ?
Thanks in advance.-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia
Ah... A coworker mentioned the Sprockets addition made by Jonathan Locke...
This is an extension that allows you to generate applets
automatically, where the sprocket will send all necessary classes to
the client. The idea is to make this Java code work with your wicket
code seamlessly.
The last
item.setRenderBodyOnly(true)
A listview doesn't have markup of its own.
Martijn
On 7/7/06, Ingram Chen [EMAIL PROTECTED] wrote:
I search old mailing list and found that setRenderBodyOnly(true) on
ListView can turning off produced repeat wrapper tag. But after trying, it
doesn't work.
This is the link to the sprocket announcement:
http://weblogs.java.net/blog/timboudreau/archive/2006/02/wicket_swing_hm.html
On 7/7/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
Ah... A coworker mentioned the Sprockets addition made by Jonathan Locke...
This is an extension that allows you
Dear Eelco and all other users
Thanks for your reply. That would solve my problem partially but create
another problem that is it would go to the server for every letter, and
I want to send it on a click without submitting the form (forgot to
mention it in the previous mail). However I solved
If so, I should add an WicketAjaxIndicatorAppender instance to every components for each I want an Ajax notification message. Is it possible to add AjaxIndicatorAppend to page and get notifications for every ajax call on that page?
Thanks.PaoloOn 7/7/06, Frank Bille Jensen [EMAIL PROTECTED]
Ouch! My bad... I think this had become a FAQ... may be let ListView.setRenderBodyOnly() throw UnsupportedOperationException(Please use ListItem instead) forbetter clarity ?
On 7/7/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
item.setRenderBodyOnly(true)A listview doesn't have markup of its
Hi,
I'm looking into the possiblities of creating a sort of stateful
AjaxTabbedPane in which each tab-panel contains FormComponents.
The behaviour I want to achieve is to keep all changed form-values
upon switching tabs. How would I achieve this?
TiA,
--
Jan Willem Janssen, M.Sc.
software
i wrote a patch that defines wicketGlobalPreCallHandler/wicketGlobalPostCallHandler and you should be able to do what you want. it is being tested right now so stay tuned...-Igor
On 7/7/06, Paolo Di Tommaso [EMAIL PROTECTED] wrote:
If so, I should add an WicketAjaxIndicatorAppender instance to
look at the source code for AjaxTabbedPanel, what you will have to do is override newLink just like it does, but instead of returning AjaxFallbackLink return a AjaxSubmitLink, and then switch the tab or not based on presense of form errors
-IgorOn 7/7/06, Jan Willem Janssen [EMAIL PROTECTED]
Hi,
look at the source code for AjaxTabbedPanel, what you will
have to do is override newLink just like it does, but instead
of returning AjaxFallbackLink return a AjaxSubmitLink, and
then switch the tab or not based on presense of form errors
That works! Great!
Thanks a lot,
--
Jan
Thanks for your reply. That would solve my problem partially but create
another problem that is it would go to the server for every letter, and I
want to send it on a click without submitting the form (forgot to mention it
in the previous mail).
It doesn't go back for every change, but only
A similar discussion came up shortly about the Tree component. What I
said there was that it was a nice extra that the tree model can be
used in both Swing and Wicket. If there are other concrete cases we
can do that, it's something to consider. Remains a fact that desktop
widgets and web widgets
Yeah, that sounds like something we should like.
Eelco
On 7/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Ok, Wicket probably wants to prevent that a bogus value '07.07.2006trail' is
parsed.
But shouldn't is be possible to convert '07.07.2006 '? How about adding a
trim()?
Sven
Thanks for your reply. That would solve my problem partially but create
another problem that is it would go to the server for every letter, and I
want to send it on a click without submitting the form (forgot to mention it
in the previous mail).
It doesn't go back for every change, but only
I nabbed the wicket 1.2 quickstart for a quick prototype at work and
noticed that it was missing the jetty jar. I then copied the
following jars from the 1.1.1 quickstart into the 1.2 quickstart lib
directory and everything is up and running.
jasper-compiler-4.1.30.jar
jasper-runtime-4.1.30.jar
we are working on a fix, the problem was screwed up maven's dist
plugin, should be fixed in 1.2.1 and subsequent releases.
-Igor
On 7/7/06, Scott Swank [EMAIL PROTECTED] wrote:
I nabbed the wicket 1.2 quickstart for a quick prototype at work and
noticed that it was missing the jetty jar. I
Thanks. I thought I remembered something about OGNL no longer being
needed -- but it seemed far easier to just throw it in the lib
directory.
Why not manually add the jars to the zip? It seems like a nicer
introduction to Wicket that way.
None the less, thanks for everything.
On 7/7/06, Eelco
And where is the *.ipr file for IntelliJ developers? It was in 1.1.1.On 7/7/06, Scott Swank [EMAIL PROTECTED]
wrote:Thanks.I thought I remembered something about OGNL no longer being
needed -- but it seemed far easier to just throw it in the libdirectory.Why not manually add the jars to the
We need someone to maintain that. Anyone volunteering? Same goes for
netbeans of course.
Eelco
On 7/7/06, James Cook [EMAIL PROTECTED] wrote:
And where is the *.ipr file for IntelliJ developers? It was in 1.1.1.
On 7/7/06, Scott Swank [EMAIL PROTECTED] wrote:
Thanks. I thought I
Actually, mvn idea:idea did pretty well, the last time I tried.
/Gwyn
On 07/07/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
We need someone to maintain that. Anyone volunteering? Same goes for
netbeans of course.
Eelco
On 7/7/06, James Cook [EMAIL PROTECTED] wrote:
And where is the
I use info()
On 7/7/06, Jerry Smith [EMAIL PROTECTED] wrote:
Using a typical situation like:
IModel myListModel = new LoadableDetachableModel() {
protected Object load() {
Object result = null;
try {
result = someServiceOrDao.findSomeListOfObjects();
}
Feedback panel typically should display any messages. You added a
feedback panel to your page, and you are rendering the same page?
Personally, I wouldn't catch exceptions in my models though. If a
service fails and it is not designed to fail quietly, I would rather
display some error page. But
I've added the FeedbackPanel, but still no message. I know it's throwing
an error. I'll try a test project and see if it still happens.
-Original Message-
From: [EMAIL PROTECTED] [mailto:wicket-user-
[EMAIL PROTECTED] On Behalf Of Eelco Hillenius
Sent: Friday, July 07, 2006 1:54 PM
Still the same thing, no message displayed:
TestPage.java
public class TestPage extends WebPage {
public TestPage() {
add(new FeedbackPanel(feedback));
add(new MyForm(myForm));
}
class MyForm extends Form {
MyForm(String id) {
super(id);
I'm using Wicket 1.2, and I've included on my page a
subclass of Panel. In response to an event, I called
"myPanel.setVisible(false)" but the panel remains visible. Is this a known
bug, or do I need to do something to implement "void setVisible(boolean)" in my
subclass?
Using Tomcat but
Are you sure it not a caching issue? Your browser caching the page?
Did you modify the response header to disable client caching?
Juergen
On 7/7/06, Frank Silbermann [EMAIL PROTECTED] wrote:
I'm using Wicket 1.2, and I've included on my page a subclass of Panel. In
response to an event, I
supposedly that doesnt work for idea 5+
-Igor
On 7/7/06, Gwyn Evans [EMAIL PROTECTED] wrote:
Actually, mvn idea:idea did pretty well, the last time I tried.
/Gwyn
On 07/07/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
We need someone to maintain that. Anyone volunteering? Same goes for
I'm about to leave for the weekend. If you could attach this to a bug
report please, someone can take a look at why it doesn't work. Just
curious... did you try MyForm.this.error(blah) yet?
Eelco
On 7/7/06, Jerry Smith [EMAIL PROTECTED] wrote:
Still the same thing, no message displayed:
I did not modify the client header, but I don't think it's a caching
issue, because other widgets are changing as expected on postback.
I modified my program in a way that should not have made a difference,
and it seems to work now. Perhaps I had some sort of programming error
that's now gone.
ok the patch is in so feel free to play around with it if you checkout from svn or wait until 1.2.1what you can now do is define one or both of the following functionsfunction wicketGlobalPreCallHandler() {...}
and function wicketGlobalPostCallHandler() {...}-IgorOn 7/7/06, Igor Vaynberg [EMAIL
42 matches
Mail list logo