Re: Internationalizing a DDC

2010-07-07 Thread always_rick
very cool, but the options' values are force to 0, 1, 2, 3, 4 ... option value=0Day/option option value=1Week /option option value=2Fortnight/option option value=3Month/option option value=4Year/option I've tried the whole night, any help is appreciated. Sven Meier wrote: You can do

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. option value=1day/option option value=7week/option option value=30month/option option value=365year/option to option value=1天/option option

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 of

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

DataView sort .properties file

2010-07-20 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

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.

Link onclick setMarkupId doesn't work.

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

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

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:

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

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

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

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

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

ListView remove a row by SubmitLink always move the last one

2013-06-26 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

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

2013-06-26 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.

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

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

2013-06-28 Thread always_rick
ListPage.html http://apache-wicket.1842946.n4.nabble.com/file/n4659905/ListPage.html ListPage.java http://apache-wicket.1842946.n4.nabble.com/file/n4659905/ListPage.java User.java http://apache-wicket.1842946.n4.nabble.com/file/n4659905/User.java Hi Sven, it is odd. When I was building the

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: