add youre own type converter to the Converter of wicket for timestamp.classpublic ITypeConverter set(final Class c, final ITypeConverter converter)johanOn 3/23/06,
Frank Silbermann <[EMAIL PROTECTED]> wrote:
I have an application that displays an
arbitrary java.sql.ResultSet in a
yes this is wrong.I don't know why that worked in 1.1 because i also believe it shouldn't have worked there also but maybe this behaviour was onlyintroduced in 1.2If you give the component its onw model. Then that component is the Root model object
And if that is the case a getModelObject() call t
great explanation on how CompoundPropertyModel works...
-- Forwarded message --
From: Igor Vaynberg <[EMAIL PROTECTED]>
Date: Jan 19, 2006 6:36 AM
Subject: Re: [Wicket-user] IModel
To: wicket-user@lists.sourceforge.net
the CompoundPropertyModel is one of the trickest to understan
just out of curioisity, is anyone out there using feedback methods other then info/error ?-Igor
first pass is doneyou have Session.info/error that work the same as Component.info/errorthe messages in session are cleared out at the end of request /if/ they have been marked rendered (which is done when they are displayed using a feedbackpanel)
we can add more features as we explore the usecase.
i just made add() final again.-IgorOn 3/23/06, Juergen Donnerstag <[EMAIL PROTECTED]
> wrote:When you override you MUST override remove, replace and especially
autoAdd as well. Because this is far to error prone, they are all madefinal in head (I hope they still are). If something doesn't work asex
When you override you MUST override remove, replace and especially
autoAdd as well. Because this is far to error prone, they are all made
final in head (I hope they still are). If something doesn't work as
expected, please prepare a unit test (see src/test) and I'll look
after it.
Juergen
On 3/24
I have experienced the same error.
It is because the border is not being added correctly. But it WILL happen
when you added it as described in the wiki
http://www.wicket-wiki.org.uk/wiki/index.php/Migrate-1.2
The page renders correctly however when an ajax request is send the markup
id does not
I have experienced the same error.
It is because the border is not being added correctly. But it WILL happen
when you added it as described in the wiki
http://www.wicket-wiki.org.uk/wiki/index.php/Migrate-1.2
The page renders correctly however when an ajax request is send the markup
id does not
Dear all, My yet another question about error handling. Is it possible to force session invalidate after render global error page ? My reasonfor this is if something happened unusally , I want to clear all
corrupted objects in session, and force the user login again to restart.I try to implement
Dear all, I want to catch a specific RuntimeException and then redirect to a special error page (not global one), I try to do this: @Override protected IRequestCycleFactory getDefaultRequestCycleFactory() {
return new IRequestCycleFactory() { private static final long ser
Also, the databinder 0.4 package has been uploaded.-- Forwarded message --From: Carlos Sanchez (JIRA) <
[EMAIL PROTECTED]>Date: Mar 23, 2006 10:39 AMSubject: [jira] Closed: (MAVENUPLOAD-786) Wicket 1.2 beta2 upload requestTo: issues@maven.apache.org
[ http://jira.codehaus.org/b
I'm merely guessing here, but I think the default Wicket converters have java.util.Date already converted to a date format. IIRC java.sql.Timestamp is a subclass of Date.Martijn
On 3/23/06, Frank Silbermann <[EMAIL PROTECTED]> wrote:
Well, no, I wish to keep numeric columns as numbers, as I will so
Well, no, I wish to keep numeric columns as numbers, as I will sometimes
be calculating with them. So for now I am following your suggestion
only for type java.sql.Timestamp. Right now it's just an aesthetic
thing -- checking for that type breaks the symmetry of the code.
-Original Message--
This is what I did...
public static void setResponseToAccountPageWithMessage(TemplatePage
page,
String messageKey) {
Page memberPage = page.newPage(page.getSecuritySession()
.getMemberPerspectiveAccountPage());
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160
If you just want to use the toString() of each element, just add them
like: "" + myResultSet.getObject()
Frank Silbermann wrote:
> I have an application that displays an arbitrary java.sql.ResultSet in a
> DataTable. To read each column value I
I have an application that displays an
arbitrary java.sql.ResultSet in a DataTable. To read each column value I simply call “ResultSet.getObject(index)”
varying index over the number of columns as given in the
java.sql.ResultSetMetadata. I rely
on the DataTable to create sensible display
this is the exact usecase i am working on, should be done by tonight at some point.
-Igor
On 3/23/06, John Patterson <[EMAIL PROTECTED]> wrote:
Hi,I have added a FeedbackMessages instance to my session class so that I can addmessages that will be displayed on the next page shown to the user. Afte
Before I upgraded to Wicket 1.2, I was doing something like this:CompoundPropertyModel model = new CompoundPropertyModel(summary);add(new Label("surfaceCount", model));add(new Label("unknownCount", model));
And Wicket would properly bind the properties of my model to the labels. However, after upg
Igor is refactoring feedbackmessages currently. You might want to wait
for the result and/ or file a feature request.
Eelco
On 3/23/06, John Patterson <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have added a FeedbackMessages instance to my session class so that I can add
> messages that will be displ
Hi,
I have added a FeedbackMessages instance to my session class so that I can add
messages that will be displayed on the next page shown to the user. After
being displayed they will be cleared.
It looks to me as if the I should be able to override the
newFeedbackMessageModel() method to retu
This is your last chance to vote in the SourceForge.net 2006 Community Choice Awards!Cast your vote for Wicket in the Development category (multiple browsers can be used :-)
http://www.wilsonresearch.com/2006/ostgawards06/ostgawards4.php
Don't postpone your vote: vote now!Martijn-- Cast your fi
IConverter is a generic interface which is called for the ingoing and
outgoing values. Last week, I added a convenience base class, and it's
usage looks like this (from FormInput):
add(new TextField("urlProperty", URL.class)
{
public IConverter getConverter()
{
return new SimpleConverterAd
getMarkupAttributes() is transient, it doesnt live across requests thats why it doesnt show up.your solution is correct, but what i would do is add that as a separate behavior instead of merging it into the ajax behavior.
-IgorOn 3/23/06, Siddharth Agarwal <[EMAIL PROTECTED]> wrote:
I add/modify th
Hi, thanks for the answer, but I don't understand why the convert method is called twice. On the other hand, is there any simpler way to work with a different date format? Just a comment I can't see my post in the mailing list, does it take too long? or I'm missing something?Thanks,Jaime
you have to test to which class the converter wants to go to: public Object convert(Object o, Class c) { try {
if(c == String.class)
Hi, I've been trying to develop an application with wicket, but I don't know how to customize the date format for a textfield. I'm using the DatePickercomponent but I use a different format : dd-MM-, when I submit the form an exception is thrown because the format is not recognized, I tried
I add/modify the class attribute through AjaxFormComponentUpdatingBehavior. Is it too late by then? i ask this since it doesn't show up in the ajax response.
textField.add(new AjaxFormComponentUpdatingBehavior("onblur") {
@Override
protected void onUpdate(AjaxRequestTarget
We solved it with a resource and passed an interface IDataSource to
the resource in the constructor and on getResourceState we made a call
for the datasource. It feels like better solution. Thanks for the
input.
On 3/22/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> Yeah. Having many options is
you have to implement:protected String newValue(final String currentValue, final String replacementValue) { return replacementValue; }from the attribute modifier and concat the currentValue with the old
On 3/23/06, Dorel Vaida <[EMAIL PROTECTED]> wrote:
Can anyone check if this is a bu
30 matches
Mail list logo