Re: Dynamic Generation of wicket Screen
Give me your Mail id. i will send screen shots. MartinM wrote: Show me a code snipplet of component that you want to hide or show conditionally. I will do the same for that component. ** Martin 2010/3/3 sravang sravangs...@gmail.com: Didn't understand. pls explain me. MartinM wrote: Hi! You can always use: field = new Field(...) { �...@override public boolean isVisible() { return showIfVisible; } } ** Martin 2010/3/3 sravang sravangs...@gmail.com: Thank u for your reply. I will explain my work. if have any idea pls let me know. My screen have one TextField name is like Customer. That customer's name come from DB through search option. Based on the customer screen will display field-wise(some fields display for some customer and some fields disable for some customer based on the fields stored in DB) Awaiting for your reply. Thanks, Sravang. MartinM wrote: Hi! You mean likea a table or like markup from db? Or maybe mashup approach? http://code.google.com/p/wicket-mashup/ ** Martin 2010/3/3 sravan g sravangs...@gmail.com: Hi, Any one have idea about Dynamic Generation of wicket Screen depends on value Stored on Database? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27764659.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765090.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765597.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Dynamic Generation of wicket Screen
If i tell like this we cant come to clear idea. that's y i asked your mail-id to send my screen. because my customer details are stored in DB. Depends upon customer selection in wicket, some fields will display and ordered way (it means if customer name have Sequence no is 3 which is stored id DB,it will show 3 place of our panel(Screen) if customer address have Sequence no is 1 which is stored id DB,it will show 1 place of our panel(Screen) if customer contact no name have Sequence no is 2 which is stored id DB,it will show 2 place of our panel(Screen)) Any way i attached code also. lblCustName = new Label(LblCustName, Customer Name*); journalPanel.add(lblCustName); custNameProp=new PropertyModel(customerDOM, customerName); txtCustName = new TextField(TxtCustName,custNameProp); journalPanel.add(txtCustName); Awaiting for your reply. MartinM wrote: No just show me code of one component you want to show/hide. It can be textfield, panel, label,... button... ** Martin 2010/3/3 sravang sravangs...@gmail.com: Give me your Mail id. i will send screen shots. MartinM wrote: Show me a code snipplet of component that you want to hide or show conditionally. I will do the same for that component. ** Martin 2010/3/3 sravang sravangs...@gmail.com: Didn't understand. pls explain me. MartinM wrote: Hi! You can always use: field = new Field(...) { �...@override public boolean isVisible() { return showIfVisible; } } ** Martin 2010/3/3 sravang sravangs...@gmail.com: Thank u for your reply. I will explain my work. if have any idea pls let me know. My screen have one TextField name is like Customer. That customer's name come from DB through search option. Based on the customer screen will display field-wise(some fields display for some customer and some fields disable for some customer based on the fields stored in DB) Awaiting for your reply. Thanks, Sravang. MartinM wrote: Hi! You mean likea a table or like markup from db? Or maybe mashup approach? http://code.google.com/p/wicket-mashup/ ** Martin 2010/3/3 sravan g sravangs...@gmail.com: Hi, Any one have idea about Dynamic Generation of wicket Screen depends on value Stored on Database? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27764659.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765090.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765597.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765829.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Dynamic Generation of wicket Screen
Thank u. But i want when i change the customer(textfield) through search option it automatically disable/enable some fields(have 42 fields) and positions also change depends on DB Sequence No. If u give id, i will send my screen also. MartinM wrote: Hi! lblCustName = new Label(LblCustName, Customer Name*); journalPanel.add(lblCustName); custNameProp=new PropertyModel(customerDOM, customerName); txtCustName = new TextField(TxtCustName,custNameProp); journalPanel.add(txtCustName); So if you want to hide/show label you can do like this: lblCustName = new Label(LblCustName, Customer Name*) { @Override public boolean isVisible() { return true if visible false if should be hidden for this customer; } }; txtCustName = new TextField(TxtCustName,custNameProp) { @Override public boolean isVisible() { return true if visible false if should be hidden for this customer; } }; Awaiting for your reply. MartinM wrote: No just show me code of one component you want to show/hide. It can be textfield, panel, label,... button... ** Martin 2010/3/3 sravang sravangs...@gmail.com: Give me your Mail id. i will send screen shots. MartinM wrote: Show me a code snipplet of component that you want to hide or show conditionally. I will do the same for that component. ** Martin 2010/3/3 sravang sravangs...@gmail.com: Didn't understand. pls explain me. MartinM wrote: Hi! You can always use: field = new Field(...) { �...@override public boolean isVisible() { return showIfVisible; } } ** Martin 2010/3/3 sravang sravangs...@gmail.com: Thank u for your reply. I will explain my work. if have any idea pls let me know. My screen have one TextField name is like Customer. That customer's name come from DB through search option. Based on the customer screen will display field-wise(some fields display for some customer and some fields disable for some customer based on the fields stored in DB) Awaiting for your reply. Thanks, Sravang. MartinM wrote: Hi! You mean likea a table or like markup from db? Or maybe mashup approach? http://code.google.com/p/wicket-mashup/ ** Martin 2010/3/3 sravan g sravangs...@gmail.com: Hi, Any one have idea about Dynamic Generation of wicket Screen depends on value Stored on Database? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27764659.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765090.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765597.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765829.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View
Re: Dynamic Generation of wicket Screen
i will try and ask u later. i have another one doubt, i want to remove default choose one for DropDownChoice If u have any code pls send me. MartinM wrote: There are many ways to accomplish this. You need to repaint the form or components on the screen. You can either reload the whole page or use ajax. ** Martin 2010/3/3 sravang sravangs...@gmail.com: Thank u. But i want when i change the customer(textfield) through search option it automatically disable/enable some fields(have 42 fields) and positions also change depends on DB Sequence No. If u give id, i will send my screen also. MartinM wrote: Hi! lblCustName = new Label(LblCustName, Customer Name*); journalPanel.add(lblCustName); custNameProp=new PropertyModel(customerDOM, customerName); txtCustName = new TextField(TxtCustName,custNameProp); journalPanel.add(txtCustName); So if you want to hide/show label you can do like this: lblCustName = new Label(LblCustName, Customer Name*) { �...@override public boolean isVisible() { return true if visible false if should be hidden for this customer; } }; txtCustName = new TextField(TxtCustName,custNameProp) { �...@override public boolean isVisible() { return true if visible false if should be hidden for this customer; } }; Awaiting for your reply. MartinM wrote: No just show me code of one component you want to show/hide. It can be textfield, panel, label,... button... ** Martin 2010/3/3 sravang sravangs...@gmail.com: Give me your Mail id. i will send screen shots. MartinM wrote: Show me a code snipplet of component that you want to hide or show conditionally. I will do the same for that component. ** Martin 2010/3/3 sravang sravangs...@gmail.com: Didn't understand. pls explain me. MartinM wrote: Hi! You can always use: field = new Field(...) { �...@override public boolean isVisible() { return showIfVisible; } } ** Martin 2010/3/3 sravang sravangs...@gmail.com: Thank u for your reply. I will explain my work. if have any idea pls let me know. My screen have one TextField name is like Customer. That customer's name come from DB through search option. Based on the customer screen will display field-wise(some fields display for some customer and some fields disable for some customer based on the fields stored in DB) Awaiting for your reply. Thanks, Sravang. MartinM wrote: Hi! You mean likea a table or like markup from db? Or maybe mashup approach? http://code.google.com/p/wicket-mashup/ ** Martin 2010/3/3 sravan g sravangs...@gmail.com: Hi, Any one have idea about Dynamic Generation of wicket Screen depends on value Stored on Database? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27764659.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765090.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765597.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765829.html Sent from the Wicket - User mailing list archive at Nabble.com
Re: Dynamic Generation of wicket Screen
Didn't understand. pls explain me. MartinM wrote: Hi! You can always use: field = new Field(...) { @Override public boolean isVisible() { return showIfVisible; } } ** Martin 2010/3/3 sravang sravangs...@gmail.com: Thank u for your reply. I will explain my work. if have any idea pls let me know. My screen have one TextField name is like Customer. That customer's name come from DB through search option. Based on the customer screen will display field-wise(some fields display for some customer and some fields disable for some customer based on the fields stored in DB) Awaiting for your reply. Thanks, Sravang. MartinM wrote: Hi! You mean likea a table or like markup from db? Or maybe mashup approach? http://code.google.com/p/wicket-mashup/ ** Martin 2010/3/3 sravan g sravangs...@gmail.com: Hi, Any one have idea about Dynamic Generation of wicket Screen depends on value Stored on Database? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27764659.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765090.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org