Re: Dynamic Select and SelectOptions

2011-02-17 Thread rawe
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

Problem while passing TextField value as parameter to other page

2011-02-17 Thread Jehan
-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

Re: Problem while passing TextField value as parameter to other page

2011-02-17 Thread Bas Gooren
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*

Re: Problem while passing TextField value as parameter to other page

2011-02-17 Thread Ernesto Reinaldo Barreiro
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

tab index for PagingNavigator

2011-02-17 Thread Tejash Tarun
Hi, want to attach tab index to PagingNavigator but wondering how ?? Thanks and Regards, Tejash

Re: Problem while passing TextField value as parameter to other page

2011-02-17 Thread Jehan
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

Re: Problem while passing TextField value as parameter to other page

2011-02-17 Thread Bas Gooren
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 ).

Re: CheckBox and Repeater

2011-02-17 Thread Martin Grigorov
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

Re: tab index for PagingNavigator

2011-02-17 Thread Martin Grigorov
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

Re: Problem while passing TextField value as parameter to other page

2011-02-17 Thread Jehan
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

Re: Problem while passing TextField value as parameter to other page

2011-02-17 Thread Martin Grigorov
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

Re: Problem while passing TextField value as parameter to other page

2011-02-17 Thread Jehan
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,

Re: Problem while passing TextField value as parameter to other page

2011-02-17 Thread Jehan
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

Dropdown + Model

2011-02-17 Thread Christian Grobmeier
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

Re: Dynamic Select and SelectOptions

2011-02-17 Thread rawe
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 using dynamic select with optgroups and Firefox

2011-02-17 Thread rawe
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

Re: Problem using dynamic select with optgroups and Firefox

2011-02-17 Thread Martin Makundi
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:

Re: Problem using dynamic select with optgroups and Firefox

2011-02-17 Thread rawe
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:

Re: Just 100K per session? That would be my dream come true! (Anyone here who has tuned session size before?)

2011-02-17 Thread MZemeck
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.

Disable Individual Checkboxes in CheckBoxMultipleChoice

2011-02-17 Thread eugenebalt
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

Re: Disable Individual Checkboxes in CheckBoxMultipleChoice

2011-02-17 Thread Igor Vaynberg
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

Re: how to access component values within a dynamic table?

2011-02-17 Thread Hans Lesmeister 2
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

Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Daniel Stoch
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

dynamically create table row, and with each record create radio buttons

2011-02-17 Thread Jehan
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.

Dynamic Tag substitution

2011-02-17 Thread Arjun Dhar
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

Re: Adding pages in clean URLs

2011-02-17 Thread Suraj Chandran
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

Re: Dynamic Tag substitution

2011-02-17 Thread Arjun Dhar
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

Re: Disable Individual Checkboxes in CheckBoxMultipleChoice

2011-02-17 Thread eugenebalt
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:

Re: Disable Individual Checkboxes in CheckBoxMultipleChoice

2011-02-17 Thread eugenebalt
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.

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Pedro Santos
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

Re: Adding pages in clean URLs

2011-02-17 Thread Igor Vaynberg
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

Re: Dynamic Tag substitution

2011-02-17 Thread Igor Vaynberg
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

Re: Adding pages in clean URLs

2011-02-17 Thread Per Newgro
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:

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Daniel Stoch
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

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Pedro Santos
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

Wicket Job Opportunity in Belgium (Leuven)

2011-02-17 Thread Maarten Bosteels
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

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Daniel Stoch
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

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Igor Vaynberg
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

Erase Previous Error Messages in Feedback Panel after Download

2011-02-17 Thread eugenebalt
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

Re: Erase Previous Error Messages in Feedback Panel after Download

2011-02-17 Thread Igor Vaynberg
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

Re: Erase Previous Error Messages in Feedback Panel after Download

2011-02-17 Thread eugenebalt
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:

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Daniel Stoch
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

Re: Erase Previous Error Messages in Feedback Panel after Download

2011-02-17 Thread Igor Vaynberg
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

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Igor Vaynberg
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,

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Martin Makundi
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

FeedbackPanel Message issues

2011-02-17 Thread sheadley3228
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

Re: FeedbackPanel Message issues

2011-02-17 Thread Igor Vaynberg
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

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Daniel Stoch
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

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Igor Vaynberg
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

a common component for all my pages which takes lot of time to load

2011-02-17 Thread fachhoch
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

Re: a common component for all my pages which takes lot of time to load

2011-02-17 Thread Jeremy Thomerson
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

Re: a common component for all my pages which takes lot of time to load

2011-02-17 Thread fachhoch
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

Re: a common component for all my pages which takes lot of time to load

2011-02-17 Thread Jeremy Thomerson
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

dynamically create table row, and with each record create radio buttons

2011-02-17 Thread Jehan
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.

Re: dynamically create table row, and with each record create radio buttons

2011-02-17 Thread Jeremy Thomerson
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) .