, preferably with a quickstart.
-igor
On Wed, Jan 26, 2011 at 3:05 AM, Xavier López xavil...@gmail.com wrote:
Hi,
I've got a form with a required radiochoice to select among some options.
I've also got a yes/no radiochoice that selects a given option on rc1 and
disables it when 'yes
2011/2/3 Xavier López xavil...@gmail.com
Have to say maybe fooled by setModelObject()'s javadoc 'Sets the backing
model object; shorthand for getModel().setObject(object).'
My fault, didn't see this has already been addressed on
https://issues.apache.org/jira/browse/WICKET-2113
Hi,
I've got a form with some fields, backed by an entity with a cpm. I've got
one property on the entity which value is calculated in terms of one of the
input fields in the form. It's important to have this field calculated up to
date at form validation time.
I tipically approached this issue
Hi,
I've got a form with a required radiochoice to select among some options.
I've also got a yes/no radiochoice that selects a given option on rc1 and
disables it when 'yes' is selected. When 'no' is selected, rc1 is set to
enabled and its model object is cleared.
The enabling/disabling of rc1
I'd do it with a component validator. That would avoid the Form's onSubmit
being called and getting the model updated with incorrect user data. Or also
with a FormValidator. If I remember correctly, you can call
getConvertedInput to get the Checkgroup's list of selected values.
Cheers,
Xavi
, and the server-side ajax would be just doing dom
attribute manipulations. You'll be much better off doing it with JS, as Igor
stated.
Cheers,
Xavi
2010/9/7 nino martinez wael nino.martinez.w...@gmail.com
yup validator's more correct
2010/9/7 Xavier López xavil...@gmail.com
I'd do
() {
isUsed(); }
}.add(MinimumLengthValidator.minimumLength(3)) );
}
}
- Original Message -
From: Xavier López xavil...@gmail.com
To: users@wicket.apache.org
Sent: Thursday, 3 June, 2010 2:56:33 PM
Subject: Re: Show/hide form components best practice
I'm with you on this one
Hi Iain,
I would do it like this, with a FormValidator. I moved the minimum length
validation also to the formValidator, because doing it with a
MinimumLenghtValidator would trigger it before the formValidator executes,
and may raise errors when the input is not valid (i.e. not mandatory) :
on this).
Xavier López wrote:
Hi Iain,
I would do it like this, with a FormValidator. I moved the minimum length
validation also to the formValidator, because doing it with a
MinimumLenghtValidator would trigger it before the formValidator executes,
and may raise errors when the input is not valid (i.e
I'd say what's reccomended to do in that case is to use a FormValidator in
order to check the conditions that make the toggling component validatable
or not. Check those conditions on the other component's input (getInput(),
getConvertedInput()), because model objects won't be updated until
(
HttpServletResponse.SC_NOT_FOUND));
}
requestCycle.detach();
} finally {
requestCycle.getResponse().close();
}
return webResponse.toString();
}
Thank you,
Xavier
2010/5/27 Xavier López xavil...@gmail.com
Finally, I've managed to dig through
looking into the
resources reference but I don't know if I should use it, or which
implementation to use... The image resource is formed from a byte array.
Many thanks,
Xavier López
);
}
catch (Exception e){ }
}
};
2010/5/27 Xavier López xavil...@gmail.com
Hi,
I'm trying to use a xhtml to pdf renderer
(https://xhtmlrenderer.dev.http://goog_1283895835
java.net/) in order
();
renderer.createPDF(out);
}
catch (Exception e){ }
}
};
2010/5/27 Xavier López xavil...@gmail.com
Hi,
I'm trying to use a xhtml to pdf renderer
(https://xhtmlrenderer.dev.http
If you hava a single checkbox, and only want to know if it's selected, I'd
use a Checkbox component instead. You can put it a Boolean Model initialized
to whatever and it will come back with the boolean value that will tell you
if it's selected.
Cheers,
Xavier
2010/5/14 Michael O'Cleirigh
Hi,
I have a Form with some components that are required depending on some other
component's value. Let's put for example a RadioGroup with values City and
Country. There are two DropDownChoices with Cities and Countries, and only
the selected one in the RadioGroup is required. It's important
=childLabel/span/td/tr
/table
/body
/html
Cheers,
Xavier
2010/4/29 Xavier López xavil...@gmail.com
Yes, you are right, Wilhelmsen, and that's what Wicket is doing, I
understand that correctly. The problem is, when I have a wicket component
attached to that table tag. Wicket seems to treat
to the table tag?
-igor
On Wed, Apr 28, 2010 at 9:52 AM, Xavier López xavil...@gmail.com wrote:
Hi, I'd expect it to lie in the ContainerComponent's folder, assuming
ContainerComponent is the the Page or Panel associated with that
markup...
In other words, getString(myresource) from
Yes, you are right, Wilhelmsen, and that's what Wicket is doing, I
understand that correctly. The problem is, when I have a wicket component
attached to that table tag. Wicket seems to treat that table as a
component, with autogenerated wicket:id, and logically, expects the child
components (in
Hi,
I also bumped into this matter when starting with Wicket, make sure the
Collection returned by getNationalities() contains the value of the
'nationality' attribute of the CPM's backing object, or use a suitable
ChoiceRenderer, as Wilhelmsen suggests, in order to be able to put as
choices the
Igor Vaynberg igor.vaynb...@gmail.com
when you have markup like:
table wicket:message=summary:myresource
trtdspan wicket:id=myComponent/span/td/tr
/table
where do you expect your localized message to go?
-igor
On Wed, Apr 28, 2010 at 2:51 AM, Xavier López xavil...@gmail.com wrote:
Hi
). However, it is not. Obviously, if you do not
have
JS enabled, you can not submit a form with a link in the browser. You
could
only submit it with a submit button.
--
Jeremy Thomerson
http://www.wickettraining.com
On Thu, Apr 15, 2010 at 4:12 AM, Xavier López xavil...@gmail.com wrote
Hi there,
I'm trying to find an elegant way to detect the cases where a user tries to
access a nonbookmarkablepage with a bookmark. From the stack trace produced
in this case, I see this situation is handled in
DefaultPageFactory#newPage(Class pageClass), like this:
Hi,
I've been through a similar issue recently, also with a 'remove' button to
delete elements from the list. I ended up using RefreshingView (that's the
one I'd reccomend), and it worked nicely.
However I'll expose the various solutions I've gone through, hoping to
provide some background on
Hi Wolfgang,
If I had to refresh the entire page on language change, I would not do it
with an Ajax Request, but with a normal one instead. I do not know how will
setResponsePage behave in a serverside Ajax callback. However, if you need
to do it with ajax, you should add the language dependent
else.
although, if your users are bookmarking a non-bookmarkable url you
should get a page expired error. page factory is only used for
creating bookmarkable pages.
-igor
On Fri, Apr 16, 2010 at 1:37 AM, Xavier López xavil...@gmail.com wrote:
Hi there,
I'm trying to find an elegant
Hi,
I'm a liitle confused about AjaxSubmitLink's JavaDoc, and the code inside
it... I'm using Wicket 1.3.6:
If/when javascript is turned off in the browser, or it doesn't support
javascript, then the
browser will not respond to the onclick event, using the href directly.
Wicket will then use
Hi Sigmar,
I went fine just setting the component's Label with setLabel().
This method sets a Model which will be used instead of the wicket:id in the
built-in validator's error messages.
Cheers,
Xavier
2010/3/25 Sigmar Muuga meedi...@gmail.com
Hello,
how to customize error / feedback
I have a Form with a list of Checks in a CheckGroup. In the same Form, there
is a DropDownChoice with a dynamic choices model. The choices are the
selected checks plus some fixed options.
It has to be considered that some Checks can be preselected at construction
time, and that the choices have to
Found a similar issue not long ago. There is a class that does just what you
mentioned, appends a timestamp as a request parameter of the img tag's
url. I think the class was NonCachingImage.
Cheers,
Xavier
2010/3/19 Doug Leeper douglee...@yahoo.com
I am trying to create a barcode image from a
to.
-igor
On Tue, Mar 16, 2010 at 6:44 AM, Xavier López xavil...@gmail.com wrote:
Hi,
I have a ListView that build up a list of checks. These Checks have all
to
be enabled or disabled depending on a bean's property. That property is
binded to a general checkbox (outside the listview). When
should consider using wicket:head instead (see:
http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html)
cheers,
Jonas
On Mon, Mar 15, 2010 at 10:11 AM, Xavier López xavil...@gmail.com wrote:
I agree it's not a classloader issue, the classloader is being given a
cobbled class name, so it's
Here is another way I used when I was in need of this feature. This one
simulates a request cycle. I don't know if you could adapt this to fit your
needs (maybe doing the same, but with the real requestCycle instead) ?
();
}
}
Cheers,
Xavier
2010/3/16 Xavier López xavil...@gmail.com
Here is another way I used when I was in need of this feature. This one
simulates a request cycle. I don't know if you could adapt this to fit your
needs (maybe doing the same, but with the real requestCycle instead) ?
http
Hi,
I have a ListView that build up a list of checks. These Checks have all to
be enabled or disabled depending on a bean's property. That property is
binded to a general checkbox (outside the listview). When the user changes
the selection on the main checkbox, the ones in the listview
://download.oracle.com/docs/cd/E12840_01/wls/docs103/programming/classloading.html#wp1097288
François
Le 12 mars 2010 à 17:30, Igor Vaynberg a écrit :
ive seen this once before on the list. also with weblogic i think.
search the list.
-igor
On Fri, Mar 12, 2010 at 3:16 AM, Xavier
Hi,
From time to time I see the following error in my deployed application's
log. The application is running clustered on Weblogic 9.2 MP3.
It seems to be messing up with the classloading of class mypackage.MyClass
(this error comes up in many different classes). I can guess from the stack
trace
Hi,
I have a checkbox. The checkbox's Model is a PropertyModel, on a property
that can be either a Boolean or a String, with values {S, N}. And I want to
set the user and date in which the checkbox's model has changed, in order to
provide traceability. The checkbox is using an implementation of
at
org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:445)
On Tue, Mar 2, 2010 at 5:29 PM, Xavier López xavil...@gmail.com wrote:
I think the Model you are passing to the constructor refers to the
choices
Model. Try using EmployeeDropDownChoice(approvaloficer,new Model(), new
Model());
Cheers
I think the Model you are passing to the constructor refers to the choices
Model. Try using EmployeeDropDownChoice(approvaloficer,new Model(), new
Model());
Cheers,
Xavier
2010/3/2 chinedu efoagui chinedub...@gmail.com
hello,
i am added a dropdownchoice to a form. The form's model is set to
I've been facing a scenario where AJAX requests processing times were
abnormally elevated. That situation has already been fixed (problem of
AppServer configuration), but meanwhile, I was looking for some way to avoid
queueing all requests, in a way such that only the last request should be
, but if my memory
serves me right there are no other options.
// Daniel
jalbum.net
On 27 feb 2010, at 13:59, Xavier López wrote:
I've been facing a scenario where AJAX requests processing times were
abnormally elevated. That situation has already been fixed (problem of
AppServer
Hi,
I'm trying to use the InspectorBug in wicket 1.3.5. I extracted it from the
wicket-examples source code.
The problem is, every page is treated as stateless, soI can get no
information on component's models. I get info on Application and Session,
but about the Pages, debugging through the code
a lot of code.
On Mon, Dec 14, 2009 at 17:45, Martin Makundi
martin.maku...@koodaripalvelut.com wrote:
I wouldn't use CPM for anything serious anyways...
my 2cents
**
Martin
2009/12/14 Xavier López xavil...@gmail.com:
Hi,
In my application I have
Hi,
In my application I have a number of fields that allow validation, by means
of a validation CheckBox. In order to provide some flexibility for this kind
of validation fields, I'd like to have them implemented in a Component (i.e.
ValidationTickPanel), so that they provide their own markup and
Hi,
I'm trying to adapt the 'CachingPanel' strategy from JL's '26 Wicket Tricks'
to a Page, in order to cache an entire HomePage. It is a requirement that
this Page (it is a HomePage) should be rendered like it was static HTML
(actually the application generated that static html at some moment by
,
getModelObjectAsString() + mandatory);
}
}
2009/11/26 Martijn Dashorst martijn.dasho...@gmail.com
s/getDefaultModelObjectAsString/getModelObjectAsString/...
On Wed, Nov 25, 2009 at 5:29 PM, Xavier López xavil...@gmail.com wrote:
Thanks anyway Pedro, it's a good insight, and pretty original
Hi,
In a form, I have multiple fields each one with its corresponding
FormComponentLabel, with proper wicket:message content in the markup file.
Now, I'm facing the fact that I need to provide the same keys I provided in
wicket:message in a StringResourceModel in component's setLabel() method.
);
FormComponentLabel labelX = new FormComponentLabel(labelX, x);
form.add(labelX);
Label labelXText = new Label(labelXText, m);
But I'm looking for a less intrusive solution on pages already developed...
Thanks,
Xavier
-- Forwarded message --
From: Xavier López xavil...@gmail.com
Date
;
}
}
});
}
}
}
then you set:
input.add(new AdjustLabel());
On Wed, Nov 25, 2009 at 1:51 PM, Xavier López xavil...@gmail.com
wrote:
I forgot,
A possible solution would be using a shared StringResourceModel for both
the
setLabel() method
the panel and then falls back.
-igor
On Tue, Nov 17, 2009 at 2:58 AM, Xavier López xavil...@gmail.com wrote:
Hi,
I've set up a custom MyTabbedPanel by modifying class TabbedPanel. It
will
include a row of buttons, added on setSelectedTab which will be the same
for
all tabs.
Now, I'd
;this.key=key; }
public string getobject() { return c.getstring(key); }
}
-igor
On Thu, Nov 19, 2009 at 7:30 AM, Xavier López xavil...@gmail.com wrote:
I've been trying to retrieve the panel's resource, using getLocalizer and
ComponentStringResourceLoader in the following ways:
button1
+.default);
}
return ret;
}
MyTabbedPanel contains keys button1.label.default and panel's can define
button1.label if they need to.
Thanks anyway :-)
Xavier
2009/11/19 Xavier López xavil...@gmail.com
Awesome!
I didn't know about Component.getString(). I had it in front of me all the
time (you can
Hi,
I've set up a custom MyTabbedPanel by modifying class TabbedPanel. It will
include a row of buttons, added on setSelectedTab which will be the same for
all tabs.
Now, I'd like each tab (panel) to be able to override the text of each
button, like this:
public final void setSelectedTab(int
Hi,
I'm having a weird problem deploying my Wicket application in BEA. I only
manage to view the Application's HomePage and mounted BookMarkablePages.
Whenever I try to move from one of these pages (including a failed login
from the HomePage, which does not do 'setResponsePage', so it should load
Igor Vaynberg igor.vaynb...@gmail.com
try in tomcat. sounds like bea is not tracking your sessions.
-igor
On Fri, Nov 13, 2009 at 7:37 AM, Xavier López xavil...@gmail.com wrote:
Hi,
I'm having a weird problem deploying my Wicket application in BEA. I only
manage to view the Application's
to this problem's solution
(thanks Igor).
Cheers!
Xavier
2009/11/13 Igor Vaynberg igor.vaynb...@gmail.com
try in tomcat. sounds like bea is not tracking your sessions.
-igor
On Fri, Nov 13, 2009 at 7:37 AM, Xavier López xavil...@gmail.com
wrote:
Hi,
I'm having a weird problem
the listRenderer to the DDChoice (last param).
Seems a lot simpler than what you are doing.
-Original Message-
From: Xavier López [mailto:xavil...@gmail.com]
Sent: Monday, November 09, 2009 9:37 AM
To: users@wicket.apache.org
Subject: Re: Combination CompoundPropertyModel and ChoiceRenderer
Hi,
I'm wondering if I'm doing things straight regarding this subject.
I have an Entity A with PK properties a1, a2. There is another entity B with
PK properties b1, b2. Between them there is an association class AB (with PK
a1, a2, b1, b2). Let's suppose I have a Form for editing A objects, in
Hi,
Sorry, posted the previous one by error, this is what's missing in the code:
class APanel extends Panel(){
private ListB selectedBs;
public APanel(){
A a = getA();
ListB choices = getBChoices();
cbmc = new CheckBoxMultipleChoice(id, choices);
cbmc.setModel(new
Hi Ann,
I've also encountered this problem, but with RadioChoice instead of
DropDownChoice.
This is the thread I started about it:
http://mail-archives.apache.org/mod_mbox/wicket-users/200911.mbox/browser
After all this thread, I still don't know what should I do to model, for
instance, a
)
Thanks a lot!
Xavier
2009/11/9 Ernesto Reinaldo Barreiro reier...@gmail.com
Why not use IChoiceRenderer?
Ernesto
On Mon, Nov 9, 2009 at 2:27 PM, Xavier López xavil...@gmail.com wrote:
Hi Sven,
Absolutely awesome. So sweet how problems vanish away when you know the
right way
) {
return object.toString();
}
});
Thanks to everyone on this list not only for the heads up on this one but
for many more I did not need to ask ;)
2009/11/9 Xavier López xavil...@gmail.com
Hi Sven,
Absolutely awesome. So sweet how problems vanish away when you
Hi,
I have a question regarding the use of RadioChoice and ChoiceRenderer's in
conjunction with CompoundPropertyModel. I'm new to Wicket (but already a
convinced user ;) ), so maybe my approach on this one is not at all as it
should be... Any comments are welcome !
I'll get into details. Let's
{
return contextData.getDTOBasedOnDepid(object);
}
}
}
On Wed, Nov 4, 2009 at 1:29 PM, Xavier López xavil...@gmail.com wrote:
Hi,
I have a question regarding the use of RadioChoice and ChoiceRenderer's
in
conjunction with CompoundPropertyModel. I'm new to Wicket
(Object o){
p.setDeptId( ((DTO) o).getId());
}
};
On Wed, Nov 4, 2009 at 2:32 PM, Xavier López xavil...@gmail.com wrote:
Hi Sven, Pedro,
Thanks both for your quick reply.
Ideally you would just set a Department instance into your Person objects
the best way is you have
66 matches
Mail list logo