Re: ListView remove a row by SubmitLink always move the last one

2013-06-28 Thread always_rick
Hi Sven, I review my code and api. I misunderstood the setDefaultFormProcessing( false ). Simply removing that method, then it works. Now I am thinking of a way to skip validation, and process form updating. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ListView-

Re: ListView remove a row by SubmitLink always move the last one

2013-06-28 Thread always_rick
ListPage.html ListPage.java User.java Hi Sven, it is odd. When I was building

Re: ListView remove a row by SubmitLink always move the last one

2013-06-28 Thread always_rick
Thank you for quick response. I tried what you suggested, no luck. What I think is clicking "remove" link (SubmitLink), form memorizes input data, then remove row. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ListView-remove-a-row-by-SubmitLink-always-delete-t

Re: ListView remove a row by SubmitLink always move the last one

2013-06-28 Thread always_rick
Sven, I forgot. code: - ListView listView = new ListView( "users", users ) { @Override protected void populateItem( final ListItem item ) { item.setDefaultModel(

Re: user interface design: if any error, textbox channge to red ... ...

2013-06-25 Thread always_rick
It works. Thank you very much -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/user-interface-design-if-any-error-textbox-channge-to-red-tp4659495p4659797.html Sent from the Users forum mailing list archive at Nabble.com. -

ListView remove a row by SubmitLink always move the last one

2013-06-25 Thread always_rick
Hi all, I have a form of inputs (ListView). I firstly tried the removeLink, it was working. Because it is a normal link, it simply don't keep the other rows inputs. Obviously, it does not meet the requirement. I thought SubmitLink was good, but it always removed the last row. I clearly see the i

Re: user interface design: if any error, textbox channge to red ... ...

2013-06-15 Thread always_rick
Thanks a lot. I will try it on weekend. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/user-interface-design-if-any-error-textbox-channge-to-red-tp4659495p4659522.html Sent from the Users forum mailing list archive at Nabble.com.

user interface design: if any error, textbox channge to red ... ...

2013-06-14 Thread always_rick
I am able to do it with AttributeModifier.append( "class", "error" ). However, if I press "F5", the feedback message disappears, the textbox remains red. It seems that "error" stays there forever. Did I missing something? How does the feedback message work? -- View this message in context:

Re: reuse Form Panel code for WizardStep?

2013-06-14 Thread always_rick
I will try. thank you -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/reuse-Form-Panel-code-for-WizardStep-tp4659295p4659493.html Sent from the Users forum mailing list archive at Nabble.com. - To u

Re: reuse Form Panel code for WizardStep?

2013-06-08 Thread always_rick
The problem is wicket:idfor example: Formjavanew RequiredTextField( "companyName" );WizardStepjavanew RequiredTextField( "company.companyName" ); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/reuse-Form-Panel-code-for-WizardStep-tp4659295p4659302.html Sent from the

reuse Form Panel code for WizardStep?

2013-06-08 Thread always_rick
Hi, How can I reuse a form panel code for WizardStep, in both html and java class? My current project, required a lot to create new stuff by wizard, and create/edit them by normal form as well. Since the logic/code is basically same, I think it is doable. So, I tried, but no luck. Any advice wil

Re: wicket 6.x add additional folder

2013-02-09 Thread always_rick
Thanks a lot. Sorry for my careless reading... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-6-x-add-additional-folder-tp4656212p4656215.html Sent from the Users forum mailing list archive at Nabble.com. ---

wicket 6.x add additional folder

2013-02-09 Thread always_rick
Hi, I stick to wicket 1.5.4 for quite a long while. I used to getResourceSettings().addResourceFolder( folderName ) in app init() to achieve adding additional folder. However, I don't see API 6.x has such as a method in ResourceSettings. Do I miss something? -- View this message in context:

Re: Link onclick setMarkupId doesn't work.

2010-10-17 Thread always_rick
Igor Vaynberg-2 wrote: > > listview.setreuseitems(true) > > for what its worth it is better to pull then to push values. > > -igor > > thanks a lot. it still doesn't work. I am using wicket 1.4.12. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Link-onclick-s

Re: Link onclick setMarkupId doesn't work.

2010-10-17 Thread always_rick
James Carman wrote: > > Why not just use pure JavaScript for this? All you're trying to do is > change a class or id (I'd do class) when something is clicked. Is > there any reason why you need to go server-side for this? > my javascript skill is limited. could you please show how to do it?

Link onclick setMarkupId doesn't work.

2010-10-16 Thread always_rick
What I am trying to do is: if menu item is selected (onClick), change the markup id or class. However, it doesn't seem to work. Am I missing something? html # wicket ListView listView = new ListView( "menuitem", menuItemList ) { @Override protected void populat

Re: Lambdas in Java Preview - Part 5: Apache Wicket

2010-07-25 Thread always_rick
the url is not working -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Lambdas-in-Java-Preview-Part-5-Apache-Wicket-tp2297512p2301552.html Sent from the Wicket - User mailing list archive at Nabble.com.

DataView & sort & .properties file

2010-07-19 Thread always_rick
Hello all, i'm using DataView to display html table with sorting feature. Thanks to wicket example, "Sorting DataView Example - builds on previous to demonstrate sorting" http://www.wicket-library.com/wicket-examples/repeater/?wicket:bookmarkablePage=:org.apache.wicket.examples.repeater.SortingPa

Re: Sorting and ListView

2010-07-18 Thread always_rick
lenzenc wrote: > > > This issue isn't about how to sort, this issue is at what point do you > grab > the translated name. > > Did you solve this problem? I am having same problem. I totally agree with, "it isn't about how to sort, ...". I am new in wicket. Any sample code will be appreciat

Re: ListView in a Form -- issue with properties

2010-07-08 Thread always_rick
hi, just add the form wicket id in property file. e.g. wicket:id="xxxForm" -wicket:id="valueListView" -wicket:id="value" xxxForm.valueListView.value.Required=please enter the value Trevor Baker-2 wrote: > > Hi, > > I have a form that has an ListView (wicket:id=”valueListView”) of a bunch

localize options DropDownChoice

2010-07-07 Thread always_rick
I am trying to localize select's option. Do I have to load several lists, which represent a different language? That's too complicated. e.g. day week month year to 天 周 月 年 I read Sven Meier's post, which is helpful, but didn't solve the problem completely. http://apache-wicket.1842946.n4.

Re: Internationalizing a DDC

2010-07-07 Thread always_rick
very cool, but the options' values are force to 0, 1, 2, 3, 4 ... Day Week Fortnight Month Year I've tried the whole night, any help is appreciated. Sven Meier wrote: > > You can do without the ChoiceRenderer if you put your terms in a > property file next to your panel/page: > > A.