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 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) . > > When clicked

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: 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 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 and put > in h

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 will

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 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 component in all

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 f

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Igor Vaynberg
On Thu, Feb 17, 2011 at 2:32 PM, Daniel Stoch wrote: > On Thu, Feb 17, 2011 at 10:37 PM, Igor Vaynberg > 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 en

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Daniel Stoch
On Thu, Feb 17, 2011 at 10:37 PM, Igor Vaynberg 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 not a user can push

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 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 message. When I perform a Retr

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 firs

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 : > 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

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, don

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 wrote: > > Does this code go in the SubmitButton's onClick Ajax behavior? > > What if I don't have a URL? I'm not saving the f

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Daniel Stoch
On Thu, Feb 17, 2011 at 10:01 PM, Igor Vaynberg 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 way. There is a wro

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: http://apache-wicket.1842946.n4.nabble.com/Erase-Previo

Re: Erase Previous Error Messages in Feedback Panel after Download

2011-02-17 Thread Igor Vaynberg
target.addcomponent(feedbackpanel); target.appendjavascript('window.location='); -igor On Thu, Feb 17, 2011 at 1:09 PM, eugenebalt wrote: > > I have a FeedbackPanel which may contain previous error messages. > > Once the form is successfully submitted, it's not refreshed, and the > previous erro

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 through

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 wrote: > There is a situation when the AjaxFormCompone

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Daniel Stoch
On Thu, Feb 17, 2011 at 9:02 PM, Pedro Santos 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 Submit. And Feedback

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 as

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 wrote: > On Thu, Feb 17, 2011 at 6:50 PM, Pedro Santos wrote:

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Daniel Stoch
On Thu, Feb 17, 2011 at 6:50 PM, Pedro Santos 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 have an > requir

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: users-h...@wicket.apach

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 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 tags. > > .

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 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 guys? > >

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 AjaxEventBehavior

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: 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: http://apache-wicket.1842946.n4.nabble.com/Disable-Indi

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: 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 wrote: > Is WebApplication.mount(final String path,

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: DELETE EDIT

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. ---

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 AjaxForm

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

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 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 still have to show >

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 ArrayList. So each checkbox in the list is just coming

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.

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: htt

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 : > > > 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.1842

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 http://apache-wicket.1842946.

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 Audi Opel Thank's for hints! ralph -- View this message in context: http://apache-wicket.1

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 CompoundPropertyModel(new ValueMap())); List options = new ArrayLis

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 wrote: > I am begginer please lettle explain > > > On Thu, Feb 17, 2011 at 3:56 PM, Martin Grigorov wrote: > >> public void onEvent() { >> >>Object obj = service.getObject(); >>OtherPage otherPage = new OtherPage(obj); >>setRes

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 wrote: > public void onEvent() { > >Object obj = service.getObject(); >OtherPage otherPage = new OtherPage(obj); >setResponsePage(otherPage); > } > > On Thu, Feb 17, 2011 at 12:51 PM, Jehan wrote: >

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 wrote: > I want to pass Object of a class to other page. > > On Thu, Feb 17, 2011 at 3:37 PM, Bas Gooren wrote:

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 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 pass in par

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 wrote: > Hi, > > want to attach tab index to PagingNavigator but wondering how ?? > > Thanks and Regards, > Tejash >

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 wrote: >

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( ). Bas Op 17-2-2011 11:32,

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 back

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 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 wrote: > -HelloWorld.Html > > > > > > > --

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 TextField("atext", Model.of("")); Kind regards, Bas Op 17-2-2011 10:56, Jehan schreef: -HelloWorld.Html --

Problem while passing TextField value as parameter to other page

2011-02-17 Thread Jehan
-HelloWorld.Html ---HelloWorld.java Following is code in constructor--- HelloWorld( PageParameters pars) *Form* frm = *new* *Form("myform") * { *protected* *void* onSubmit() { info("Form submitted"

Re: Dynamic Select and SelectOptions

2011-02-17 Thread rawe
The solution is to nest the ListViews: Markup: Code: Select select = new Select(selectId); select.add(new ListView("optGroups", transList) { @Override protected