On Thu, Mar 6, 2008 at 3:16 PM, Juha Alatalo [EMAIL PROTECTED]
wrote:
Hi,
Russian language supports seems to be broken. Calling getString() causes
class cast exception (stack trace in the end of the mail).
Removing file org\apache\wicket\Application_ru.xml seems to be fixing
the provlem.
Please create a jira issue for it.
We are planning to redo the testing part of wicket to make it consistent and
up-to-date for 1.4/2.0.
Frank
On Thu, Mar 6, 2008 at 2:29 PM, Wojciech Biela [EMAIL PROTECTED] wrote:
Hey
It looks like a bug but it's so obvious I suspect it's a feature not a
In 1.3 WicketTester is the Junit implementation of BaseWicketTester.
Frank
On Fri, Mar 7, 2008 at 3:33 PM, reikje [EMAIL PROTECTED] wrote:
Do you have to have junit.jar in the classpath if you want to use
WicketTester? We are using TestNG here and in a regular TestNG test case
(where the
Override the getConverter() method. First call super and with that
result call the special one (camel casing?)
On 3/9/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello:
I wonder how to append a converter or java method to a component so that I
would affect what is already defined. For
This has to work yes, the only thing is do build up the new
Model(states) as States so the same type of object as vendor.state
returns.
On 3/7/08, Kai Mutz [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
It is nice to know I'm not the only one struggling with
DropDownChoices. I'm new to
No it works also good, exactly the same if you where using the swing
combobox. The problem that you have is that when you have an id
(integer) in your object model that needs to be set but thagt id is
the id of a Person then i think your object model is just plain wrong.
Its not an object model at
Thanks. I will give a try, although I wish there would be something like
component.add(IPostConverteToObject or IPostConverttoString) that would
not require subclass and also allow easy reuse of what is available.
A related question, after conversion is done, Can I do something like below
class
Such a method would waste memory space. The current way is fine to
chain converters you could do this globally if you want
SetModel is only called by you when you construct it. Not when the dat
is set from the browser the setModelObject is called or
getModel().setObject()
On 3/9/08, [EMAIL
On 3/9/08, Frank Bille [EMAIL PROTECTED] wrote:
In 1.3 WicketTester is the Junit implementation of BaseWicketTester.
I don't think that will pose any problems. TestNG (and Maven
Surefire) is supposed to be able to run JUnit-based tests (using JUnit
asserts) just fine. As long as your test
Below is a custom component with overrding the getConverter
for testing purpose. As you could see, it is plain simple one
with simple output debugging. But it is not working.
the getConverter is called (output here)
but the convertToObject never called (no there)
I basically cut and paste the
call setTYpe(String.class) on the textfield
or use that constructor with the type param
does that help?
On Sun, Mar 9, 2008 at 1:35 PM, [EMAIL PROTECTED] wrote:
Below is a custom component with overrding the getConverter
for testing purpose. As you could see, it is plain simple one
with
Is there a behavior (or some other way) for having a field receive the
focus when the page loads? For instance, in a login form, you'd want
the focus to go to the username field or perhaps the password field if
you've got remember me turned on.
WebMarkupContainer bodyTag = new WebMarkupContainer(bodyTag);
bodyTag.add(new SimpleAttributeModifier(onload,
form.username.focus();));
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of James Carman
Sent: Sunday, March 09, 2008 7:58 AM
To:
On 3/9/08, Warren [EMAIL PROTECTED] wrote:
WebMarkupContainer bodyTag = new WebMarkupContainer(bodyTag);
bodyTag.add(new SimpleAttributeModifier(onload,
form.username.focus();));
Ok, but wouldn't it be cooler/easier/more java-oriented to do:
TextField userName = new TextField(userName);
hi
I am using wicket 1.3 with latest dev build of
wicketstuff-scriptaculous. I am trying to use highlight effect on table
row when user clicks a link.
It doesn't work and ajax debug shows *ERROR: *Exception evaluating
javascript: TypeError: Effect has no properties.
And sometimes it starts
On 3/9/08, James Carman [EMAIL PROTECTED] wrote:
On 3/9/08, Warren [EMAIL PROTECTED] wrote:
WebMarkupContainer bodyTag = new WebMarkupContainer(bodyTag);
bodyTag.add(new SimpleAttributeModifier(onload,
form.username.focus();));
Ok, but wouldn't it be cooler/easier/more java-oriented
i thought we agreed converters were type converters...so they shouldnt
be invoked if you are doing string-string :|
-igor
On Sun, Mar 9, 2008 at 5:47 AM, Johan Compagner [EMAIL PROTECTED] wrote:
call setTYpe(String.class) on the textfield
or use that constructor with the type param
does
true..!
You could add it to wicket input events , if it fits..
regards Nino
James Carman wrote:
On 3/9/08, Warren [EMAIL PROTECTED] wrote:
WebMarkupContainer bodyTag = new WebMarkupContainer(bodyTag);
bodyTag.add(new SimpleAttributeModifier(onload,
form.username.focus();));
Ok,
What about a chaining component?
EG you enter something in form.field a, and when thats filled then it
jumps to form field b..? Etc...
regards Nino
James Carman wrote:
On 3/9/08, Warren [EMAIL PROTECTED] wrote:
WebMarkupContainer bodyTag = new WebMarkupContainer(bodyTag);
I extended WebMarkupContainer and called it BodyTag. I would then extend
TextField and mark it as needing focus. I would add my TextField to BodyTag
and have BodyTag look for a component that needed default focus and then add
SimpleAttributeModifier(onload, document.getElementById(' +
if you set the type yourself by hand then getConverter() will be called and
you can do what ever you want
We dont do that automatic yes (resolveType doesn't set it to the
String.class)
johan
On Sun, Mar 9, 2008 at 5:45 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:
i thought we agreed converters
jwcarman wrote:
How about something like:
public class DefaultFocusBehavior extends AbstractBehavior
{
private Component component;
public void bind( Component component )
{
this.component = component;
component.setOutputMarkupId(true);
}
-1 for letting components handle focus. There's only _one_ focus that
can set on a page at a time. What if several components demand focus?
Who will be the winner?
Also, not every WebComponent can receive focus (Label, Image, ...) but
only FormComponents (input, select, button, ...)
I
Hi Vitaly,
That is correct. For primitive model values you need something like a map.
I think the DropDownBox was more designed for complex data where the
data to display is embedded in the model value itself.
Anyway, how would the addition of an index argument to the display
method help?
An index is a kind of a link between a value and its displayable
representation. Having an index in getDisplayValue method we would do
something like:
ListInteger lang_choices = Arrays.asList (new Object [] { 1, 2, 4, 8 });
Object [] lang_labels = new Object [] { php, perl, java, c++ };
On 3/9/08, Peter Ertl [EMAIL PROTECTED] wrote:
-1 for letting components handle focus. There's only _one_ focus that
can set on a page at a time. What if several components demand focus?
Who will be the winner?
Well, the last one that requests it will win because it will be the
last
I don't think I understand what you mean here. Do you mean something
like setting the tab order like in Swing?
On 3/9/08, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote:
What about a chaining component?
EG you enter something in form.field a, and when thats filled then it
On 3/9/08, djo.mos [EMAIL PROTECTED] wrote:
This simply looks great ! I think this should make it into the core Wicket
behaviors as the componenet focus is quite useful.
Me too! That's why I submitted:
https://issues.apache.org/jira/browse/WICKET-1404
I was pretty surprised something
I think he means that, suppose you have a username and password field;
then if the username is already filled in (e.g. from a cookie), then
focus should go to the next field (password field).
It probably should be the same as the tab order (first empty field in
tab order gets focus) from a ui
On 3/9/08, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
I think he means that, suppose you have a username and password field;
then if the username is already filled in (e.g. from a cookie), then
focus should go to the next field (password field).
Well, since you set up the behavior in your
I need to write a function that involves many components. It would be nice
to add a behavior to a form, like you have with a TextField, that would
construct a function that included all of the relevant components of that
form. The function I need to write looks like this:
function keyPressed()
{
How can i write an ajax behaviour which does not have its own callback, but
just appends javascript to an existing AjaxRequestTarget.
I want this so that i can write a fading feed back panel, which will be
added to AjaxRequestTarget of an ajax form submission.
What I want is something like this::
Just to follow up on this...
You're right, it does still work. The thing is that during the algorithm
when the properties of the bean are being tested the entire exception
stack is being printed out.
This is a bit confusing because it can lead the developer to think that
an error occurred.
I
I used the trick it worked great. Thanks very much.
Should it be considered a bug?
What is interesting before using setType is that getConverter is actually
called (from my simple tracing), but after that its methods were
not called (I guess somewhere it learned the modelobject was a String so
34 matches
Mail list logo