Hi, iam new to wicket, am going through the available examples, i dont
understand how can i capture the selected option in a drop down choice in
the wicket? I checked the example tutorial given in the ensode.net but
still i dont understand how to capture the selected value of the drop down
and
First of all, let me tell you that, I am also fairly new to Wicket. However here are my two cents.
Wicket experts - Please correct me if I am wrong.
How are you sending the data to the page? Are you using any model? If you are, you can retrieve the data using the model object. If not, I think
About the dropdown:
Use a model, maybe a property model to hold the selected dropdown object.
Property models require that there are a get and setter method for the supplied
property. You could also use the abstractmodel and implement your own thing, if
per say you needed to update something
As well as what the others have said, take a look at the wiki,
specifically
http://www.wicket-wiki.org.uk/wiki/index.php/DropDownChoice_Examples,
which might help.
/Gwyn
On 18/08/06, sathya81 [EMAIL PROTECTED] wrote:
Hi, iam new to wicket, am going through the available examples, i dont
Select/Combo is just as another input field. The model behind the Combobox will hold the selected value.Hidden field: See HiddenField componentBut the question is why do you need it? Normally in wicket there is no need for a hidden field to store data.
johanOn 8/18/06, sathya81 [EMAIL PROTECTED]
Thanq Nino,
well, iam using a model to store the data , actually i was going through the
example given in the http://ensode.net/wicket_first_look.html , where in the
author creates two models , the first model to store the normal form values
and the second model explicitly to store the dropdown
Hi Sathya
Yes you should use one model for each of your dropdowns.
Lets say you are creating a site where you can search for books.
Then you might have a drop down for author and maybe category.
I guess(without knowing anything about searching and or books:)) that I would
create a class that
Hi All,
I havethe following hierarchy
Page
Panel
Form
And in side the form i havethe form
components , and i have attached
AjaxFormComponentUpdatingBehavior to one of thedropdowns to populate
another.
And all that works fine, but when ido the
submit, thefirst time the ajax
Hmm - should isn't really correct - could, yes, but not should.
Personally, I'd suggest a single CompondPropertyModel, set for the
form, if not the page, as that can really cut down on the code you
need to write.
That also solves where to put any associated data, as the ModelObject
that the CPM
Not 100% sure but don't you need to explicitly update the 2nd dropdown
on the onUpdate - Compare with
http://www.wicket-wiki.org.uk/wiki/index.php/DropDownChoice_Examples#Using_Ajax
/Gwyn
On 18/08/06, Dipu [EMAIL PROTECTED] wrote:
Hi All,
I have the following hierarchy
Page
Panel
true, I was meerly trying to explain that you really dont have to grab the
selected object, as this is what wicket does for you:)
I havent yet worked with compoundProperty models...
-regards Nino
-Original Message-
From: [EMAIL PROTECTED] on behalf of Gwyn Evans
Sent: Fri
Hi all,
the resulting HTML of extension's DataTable (with toolbars) renders
invalid according to the HTML specs:
Java:
IColumn[] columns = new IColumn[2];
columns[0] = new PropertyColumn(new Model(foo), foo);
columns[1] = new PropertyColumn(new Model(bar), bar);
IDataProvider provider =
I really don't understand how it should works, I have a ListView and some
model attached to it with two elements , some how every self updating cycle
I got one element added to the list on the screen, any ideas ?
--
View this message in context:
I don't think so, because its not done in the
examples.
And the samples files i sent was worked out from
the example.
Thanks
Dipu
- Original Message -
From: "Gwyn Evans" [EMAIL PROTECTED]
To: wicket-user@lists.sourceforge.net
Sent: Friday, August 18, 2006 12:58 PM
Subject: Re:
fixed calling setrenderbodyonly on the repeaters has no effect because repeaters themselves render no markup.if you look at the markup:thead span wicket:id=topToolbars
span wicket:id=toolbar/span /span/theadthe first span was already supressed by calling item.setRenderBodyOnly(true); on the
how about some code of that page?-IgorOn 8/18/06, Roman Mandeleil [EMAIL PROTECTED]
wrote:I really don't understand how it should works, I have a ListView and some
model attached to it with two elements , some how every self updating cycleI got one element added to the list on the screen, any
Hi everyone,
I have the following problem:
I supply the DropDownChoiceElement with a List containing HashMap's. So
every Listelement is a HashMap. The HashMap contains a association
between ID's and Names (the ID's are primary key whereas the Names are
not). Don't bother about the problem that
I succesfully manage to create the html-code right, thru suppling an
IChoiceRenderer. However: how do I get the selecte Value-ID from the
DropDownChoice-Element. All I manage to get is a String containing the
Name and the ID.
Typically, you should do that via your model. The drop down
argh! wtf!after an ajax update the browser doesnt POST the second select box. very very weird. works in IE - sad when IE works better then firefox.matej can you look into this a bit further? :))-Igor
On 8/18/06, Dipu [EMAIL PROTECTED] wrote:
I don't think so, because its not done in the
It doesn't work in firefox because you placed the form directly to table.
This is not valid and firefox freaks out. You have to put it in table cell
(wrap the form in trtd and /td/tr)
-Matej
Dipu wrote:
Hi All,
I have the following hierarchy
Page
Panel
Form
And in
Hi,How do I embed a custom session expiry page into wicket application?Thanks,Michael-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make
MyApplication.init() { getApplicationSettings().setPageExpiredErrorPage(MyErrorPage.class);}-IgorOn 8/18/06, Michael K
[EMAIL PROTECTED] wrote:
Hi,How do I embed a custom session expiry page into wicket application?Thanks,Michael
I guess I do not have the latest version. I am trying to use the trunk
version and almost all my code broke due to Component's constructor
signature change. thanks Anyway.
igor.vaynberg wrote:
RequestCycle.java:
/**
* Returns a URL that references the given page. It also
*
For 1.2 you have to use the wicket_1_2 branch.
Eelco
On 8/18/06, samyem [EMAIL PROTECTED] wrote:
I guess I do not have the latest version. I am trying to use the trunk
version and almost all my code broke due to Component's constructor
signature change. thanks Anyway.
igor.vaynberg
Okay that's fine. We were using the 1.2.1 release jars and not from SVN. So
is it okay if i check out from wicket_1_2_1 branch instead of wicket_1_2
branch?
igor.vaynberg wrote:
let me restate with some highlighting :)
if you update to latest code from svn *wicket_1_2 branch*
no, wicket_1_2_1 branch was a mistake - it is supposed to be a label that marks the code that went into 1.2.1 release not a branch - but maven made a booboo.frank i thought you were gonna move it to tags?
if you want the latest you should check out from wicket_1_2 branch.-IgorOn 8/18/06, samyem
Okay that explains all my confusions. thanks.
igor.vaynberg wrote:
no, wicket_1_2_1 branch was a mistake - it is supposed to be a label that
marks the code that went into 1.2.1 release not a branch - but maven made
a
booboo.
frank i thought you were gonna move it to tags?
if you
I have two questions. First one is what is the difference between
getValue and getInput? Second one is how can I retrieve the value
entered to the form component if defaultFormProcessing is set to
false?
These questions have arisen when I was trying to implement an editable
multi-page table that
28 matches
Mail list logo