The solution is to nest the ListViews:
Markup:
select wicket:id=selectId
wicket:container wicket:id=optGroups
optgroup wicket:id=optGroup
wicket:container wicket:id=options
option wicket:id=option/option
-HelloWorld.Html
form wicket:id=*myform*
input type=*text* wicket:id=*atext* value=*Default value* /
input type=*submit* wicket:id=*okbutton* value=*OK* /
/form
---HelloWorld.java
Following is code in
Hi Jehan,
You'll need to provide your TextField with a model where it can
load/store it's value.
This is easy to do:
new TextFieldString(atext, Model.of());
Kind regards,
Bas
Op 17-2-2011 10:56, Jehan schreef:
-HelloWorld.Html
form wicket:id=*myform*
I think the problem is there is no model backing your text field.
Maybe you might want to read [1]
Ernesto
1-https://cwiki.apache.org/WICKET/working-with-wicket-models.html
On Thu, Feb 17, 2011 at 10:56 AM, Jehan jeeha...@gmail.com wrote:
-HelloWorld.Html
Hi,
want to attach tab index to PagingNavigator but wondering how ??
Thanks and Regards,
Tejash
Thanks Bas Gooren,
Passing values other pages using PageParameter is like Query String.
What are other ways in wicket of passing values from one page to other.
On Thu, Feb 17, 2011 at 3:08 PM, Ernesto Reinaldo Barreiro
reier...@gmail.com wrote:
I think the problem is there is no model
Jehan,
It depends on the URL you want to show to the user. If you want a
bookmarkable url, you'll need to use page parameters. If the url doesn't
matter to you, you can simply pass in parameters to the constructor of
the other page, and then call setResponsePage( page instance variable ).
Either use inmethod-grid component or at least see its implementation for
CheckBoxColumn.
https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/inmethod-grid-parent
http://wicketstuff.org/grid-examples/data-grid/item-selection
On Thu, Feb 17, 2011 at 9:47 AM, Alexander Monakhov
override the factory methods for pagination links creation and use
AttributeAppender to assign the attribute
On Thu, Feb 17, 2011 at 12:25 PM, Tejash Tarun ttej...@educator.eu wrote:
Hi,
want to attach tab index to PagingNavigator but wondering how ??
Thanks and Regards,
Tejash
I want to pass Object of a class to other page.
On Thu, Feb 17, 2011 at 3:37 PM, Bas Gooren b...@iswd.nl wrote:
Jehan,
It depends on the URL you want to show to the user. If you want a
bookmarkable url, you'll need to use page parameters. If the url doesn't
matter to you, you can simply
public void onEvent() {
Object obj = service.getObject();
OtherPage otherPage = new OtherPage(obj);
setResponsePage(otherPage);
}
On Thu, Feb 17, 2011 at 12:51 PM, Jehan jeeha...@gmail.com wrote:
I want to pass Object of a class to other page.
On Thu, Feb 17, 2011 at 3:37 PM, Bas
I am begginer please lettle explain
On Thu, Feb 17, 2011 at 3:56 PM, Martin Grigorov mgrigo...@apache.orgwrote:
public void onEvent() {
Object obj = service.getObject();
OtherPage otherPage = new OtherPage(obj);
setResponsePage(otherPage);
}
On Thu, Feb 17, 2011 at 12:51 PM,
Thanks it is done
On Thu, Feb 17, 2011 at 4:02 PM, Jehan jeeha...@gmail.com wrote:
I am begginer please lettle explain
On Thu, Feb 17, 2011 at 3:56 PM, Martin Grigorov mgrigo...@apache.orgwrote:
public void onEvent() {
Object obj = service.getObject();
OtherPage otherPage = new
Hi folks,
coming from the struts world, i need to get used to Wicket models. I
am still unsure if I use them correct, so i would like to ask about
the correctness of my code and hopefully learn more about models.
super(id, new CompoundPropertyModelValueMap(new ValueMap()));
ListSelectOption
It's working fine with IE, safari, Chrome, Opera but not with Firefox (FF)
The optgroup closing tag is set wrong.
The options are not enclosed in the optgroup tags.
Firebug shows following rendering
optgroup label=German Cars wicket:id=optGroup/optgroup
option
Problem or bug in Firefox when using a dynamic wicket select component.
Firefox can't handle ListView and right placing of optgroup tags!
Please See following thread:
http://apache-wicket.1842946.n4.nabble.com/Dynamic-Select-and-SelectOptions-tc1872483.html#a3310381
Might be easier to make normal drowdownchoice with dynamic choicces model?
2011/2/17 rawe ralph.wey...@dachser.com:
Problem or bug in Firefox when using a dynamic wicket select component.
Firefox can't handle ListView and right placing of optgroup tags!
Please See following thread:
Yes, when just using a list of options a dropdownchoice ist the best way!
But in my case I need a dynamic select with optgoups and dynamic options.
My problem is solved now. I found a css error in my code.
The solution works fine now also with firfox!
ralph
--
View this message in context:
How are you storing/retrieving your photos? I recently did some session
size testing and I found the sessions were surprisingly small. Once I
removed the detachable model wrapped around an object holding a photo
(byte array) retrieved from the database my session size shot up
considerably.
I have a CheckBoxMultipleChoice in my form, and I need to disable individual
checkboxes (not all), say the 1st and 3rd one. (But I still have to show
them, as disabled.) Does someone have an example of how to do that?
My field is based on an ArrayListString. So each checkbox in the list is
just
override protected boolean isDisabled(final E object, int index,
String selected)
-igor
On Thu, Feb 17, 2011 at 8:15 AM, eugenebalt eugeneb...@yahoo.com wrote:
I have a CheckBoxMultipleChoice in my form, and I need to disable individual
checkboxes (not all), say the 1st and 3rd one. (But I
String htmlCodeInputfield = erzeugeEingabefeld( q );
Label label = new Label( Input, htmlCodeInputfield );
label.setEscapeModelStrings( false );
item.add( label );
Use a textfield instead of plain html. Bind it to a dynamic
There is a situation when the AjaxFormComponentUpdatingBehavior
deafult functionality fails. When we want to attach this behavior (or
OnChangeAjaxBehavior) to reflect changes inside a Model of
FormComponent which is marked as REQUIRED event if user clears
component input. In such situation
Dear all
I want to read records(userid and username) from database table,
display it in table structure , and with each record display 3 radio
buttons(A,B,C) .
When clicked on button then database table update using userid and
selected radio button value.
Hi,
Im creating a Decorator/Wrapper Panel that will show EDIT/DELETE options on
the content if the user is authorized to do so.
The markup simply put, is like this:
?xml version=1.0 encoding=utf-8?
html
body
wicket:panel
table
I tried this:
this.mount(/home, PackageName.forPackage(Main.class.getPackage()));
But it doesn't work.
I tried hitting both /home/Main and /home/Main.html.
Any idea guys?
Thanks,
Suraj.
On Thu, Feb 17, 2011 at 12:45 PM, Mike Mander wicket-m...@gmx.de wrote:
Is WebApplication.mount(final
One correction I'd make to my own code is instead of allowing to add a
Component; I'd enforce WebComponent. That would make the case stronger for
using and enforcing HTML tags.
..the issue remains, hwow do I make the markup here dynamic to suit the
WebComponent being wrapped! :(
-
Don't
There's no isDisabled in Component, did you mean isEnabled?
How would I have control over individual elements there in that override?
Frankly, slightly longer answers would be very much appreciated. Thanks
--
View this message in context:
Actually, thanks a lot, I found isDisabled(). Thank you.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Disable-Individual-Checkboxes-in-CheckBoxMultipleChoice-tp3311071p3311227.html
Sent from the Users forum mailing list archive at Nabble.com.
I Daniel, how alwaysUpdateModel differs from updateModel? If you have an
required form component that support some clean up logic, it can be coded
inside AjaxFormComponentUpdatingBehavior#onError, and if you need an AJAX
behavior that don't validate the form component, you can
use
debug it and see why its not matched.
-igor
On Thu, Feb 17, 2011 at 9:12 AM, Suraj Chandran chandransu...@gmail.com wrote:
I tried this:
this.mount(/home, PackageName.forPackage(Main.class.getPackage()));
But it doesn't work.
I tried hitting both /home/Main and /home/Main.html.
Any idea
override oncomponenttag and call tag.setname()
-igor
On Thu, Feb 17, 2011 at 9:14 AM, Arjun Dhar dhar...@yahoo.com wrote:
One correction I'd make to my own code is instead of allowing to add a
Component; I'd enforce WebComponent. That would make the case stronger for
using and enforcing HTML
Can u please specify what u mean by it doesn't work?
Is url broken, is nothing displayed or ...?
Cheers
Per
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail:
On Thu, Feb 17, 2011 at 6:50 PM, Pedro Santos pedros...@gmail.com wrote:
I Daniel, how alwaysUpdateModel differs from updateModel?
You mean from getUpdateModel()? isAlwaysUpdateModel() is called only
when component is invalid, but getUpdateModel() in both cases (for
valid and invalid).
If you
Override onError still makes sense for me, if the form component is
required, why to hide the message? If there is some special message
reporting rule, it can be coded inside onError also.
On Thu, Feb 17, 2011 at 5:26 PM, Daniel Stoch daniel.st...@gmail.comwrote:
On Thu, Feb 17, 2011 at 6:50
Hi everyone,
We are looking for a senior Java Developer, preferably with good knowledge
of Wicket.
You will join a team of 5 enthusiastic developers and are responsible for
the implementation of
new, challenging projects within our existing registration system.
You support best practices such
On Thu, Feb 17, 2011 at 9:02 PM, Pedro Santos pedros...@gmail.com wrote:
Override onError still makes sense for me, if the form component is
required, why to hide the message?
Because I don't want to show such error message when user clears
(update) this required field but only when he press
if you want to push a null value into a component you marked required
then dont mark it as required. if you have inter-dependent validation
use a formvalidator or override form's onsubmit.
-igor
On Thu, Feb 17, 2011 at 8:51 AM, Daniel Stoch daniel.st...@gmail.com wrote:
There is a situation
I have a FeedbackPanel which may contain previous error messages.
Once the form is successfully submitted, it's not refreshed, and the
previous errors remain on the screen. A browser Download is initiated on
submit, so I lose control of the form.
Is there a way to reach the FeedbackPanel
target.addcomponent(feedbackpanel);
target.appendjavascript('window.location=url to download');
-igor
On Thu, Feb 17, 2011 at 1:09 PM, eugenebalt eugeneb...@yahoo.com wrote:
I have a FeedbackPanel which may contain previous error messages.
Once the form is successfully submitted, it's not
Does this code go in the SubmitButton's onClick Ajax behavior?
What if I don't have a URL? I'm not saving the file anywhere, I'm
immediately exporting it to the browser so the user can do a Save As.
Thanks
--
View this message in context:
On Thu, Feb 17, 2011 at 10:01 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
if you want to push a null value into a component you marked required
then dont mark it as required.
No, because then I must have my own customrequired flags instead of
using the core mechanism. I think this is wrong
yes, it would go to button's ajax onsubmit.
you are sending the file somehow by redirecting the browser to some url...
-igor
On Thu, Feb 17, 2011 at 1:27 PM, eugenebalt eugeneb...@yahoo.com wrote:
Does this code go in the SubmitButton's onClick Ajax behavior?
What if I don't have a URL? I'm
validation is there to make sure the user of the webapp cannot push an
illegal value into a model. it doesnt matter if its just the component
that is being submitted or the entire form. components decide whether
or not a user can push null in by using their required flag. you want
to push null,
Also conditional validation might do it:
https://cwiki.apache.org/WICKET/conditional-validation.html
2011/2/17 Igor Vaynberg igor.vaynb...@gmail.com:
validation is there to make sure the user of the webapp cannot push an
illegal value into a model. it doesnt matter if its just the component
In my current project, I am using the feedbackpanel to display both
informational and error messages. When I move to my webpage, i display an
informational message. When I perform a Retrieve using PageableListView if
no Items are retrieved, I get back a second message. How can I removed the
try also detaching feedbackpanel's model.
-igor
On Thu, Feb 17, 2011 at 2:10 PM, sheadley3228
steven.head...@cats.usdoj.gov wrote:
In my current project, I am using the feedbackpanel to display both
informational and error messages. When I move to my webpage, i display an
informational
On Thu, Feb 17, 2011 at 10:37 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
validation is there to make sure the user of the webapp cannot push an
illegal value into a model. it doesnt matter if its just the component
that is being submitted or the entire form. components decide whether
or
On Thu, Feb 17, 2011 at 2:32 PM, Daniel Stoch daniel.st...@gmail.com wrote:
On Thu, Feb 17, 2011 at 10:37 PM, Igor Vaynberg igor.vaynb...@gmail.com
wrote:
validation is there to make sure the user of the webapp cannot push an
illegal value into a model. it doesnt matter if its just the
I need acomponent which I want to show in all my pages , this component
takes time for loading so
I don't want to contruct this everytime but create it once when user logs
in put in his session and show the same component in all my pages and also
this componenet should update itself at
On Thu, Feb 17, 2011 at 9:34 PM, fachhoch fachh...@gmail.com wrote:
I need acomponent which I want to show in all my pages , this component
takes time for loading so
I don't want to contruct this everytime but create it once when user
logs
in put in his session and show the same
thanks for the reply , yes it is the model which takes time to load, I did
not start the coding yet to show you the code I am looking for
suggestions.,
write now my idea is to create this model object when user logs in and put
in his session, this panel gets the data from session and it
On Thu, Feb 17, 2011 at 10:36 PM, fachhoch fachh...@gmail.com wrote:
thanks for the reply , yes it is the model which takes time to load, I did
not start the coding yet to show you the code I am looking for
suggestions.,
write now my idea is to create this model object when user logs in
Dear all
I want to read records(userid and username) from database table,
display it in table structure , and with each record display 3 radio
buttons(A,B,C) .
When clicked on button then database table update using userid and
selected radio button value.
See DataTable, Form, and related examples in wicket-examples
On Thu, Feb 17, 2011 at 11:58 AM, Jehan jeeha...@gmail.com wrote:
Dear all
I want to read records(userid and username) from database table,
display it in table structure , and with each record display 3 radio
buttons(A,B,C) .
55 matches
Mail list logo