[jira] Created: (WICKET-1089) Use properties file key to localize the content of NavigatorLabel
Use properties file key to localize the content of NavigatorLabel - Key: WICKET-1089 URL: https://issues.apache.org/jira/browse/WICKET-1089 Project: Wicket Issue Type: Improvement Components: wicket-extensions Affects Versions: 1.3.0-beta4, 1.3.0-beta3, 1.3.0-beta2, 1.3.0-beta1 Environment: WIndows 2000, jdk 5, Tomcat 5.5 Reporter: Jaime De La Jara Priority: Trivial The label used in NavigatorLabel could be parametrized with a key whose value is in the Application.properties file so it can be translated to other languages besides english. The String to replace is : Showing ${from} to ${to} of ${of}. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Created: (WICKET-1088) Update the toolbar APIs to use IPageable rather than DataTable directly
Update the toolbar APIs to use IPageable rather than DataTable directly --- Key: WICKET-1088 URL: https://issues.apache.org/jira/browse/WICKET-1088 Project: Wicket Issue Type: Improvement Components: wicket-extensions Affects Versions: 1.3.0-beta4 Reporter: Justin Lee This change makes it possible to use the toolbars with DataViews as well. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-1085) Input Text Mask
[ https://issues.apache.org/jira/browse/WICKET-1085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536203 ] Will Hoover commented on WICKET-1085: - Seeing that the only issue that exists is in relation to prefilled invalid values... IMHO, I think that it can/should be done generically on the TextField component. All that would be needed is to verify that a valid regexp validator exists that supports the mask (remove reserved characters: 9, L, l, A, and any characters that exist between the reserved regexp character X). Basically, this is how a type definition is declared on the TextField to begin with (minus the mask check)- is it not? Otherwise, a MaskTextField is fine, but I think it's just as easy to do it generically :o) Input Text Mask --- Key: WICKET-1085 URL: https://issues.apache.org/jira/browse/WICKET-1085 Project: Wicket Issue Type: New Feature Components: wicket-extensions Reporter: Will Hoover Assignee: Frank Bille Jensen Priority: Trivial Attachments: inputTextMask.js Allow developers to designate a keystroke input pattern for the input text component. The pattern would be used on the client to control valid keystrokes for the current cursor position within the input text field in relation to the specified pattern. For example, a pattern could be designated as (999)- causing only number values in each position where a 9 appears and using the (, ), and - as masking characters. When the cursor position reached one of these mask characters the cursor position would advance to the next 9 position. The resulting mask would appear as (___)___- within the input text value. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-1085) Input Text Mask
[ https://issues.apache.org/jira/browse/WICKET-1085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536193 ] Gerolf Seitz commented on WICKET-1085: -- 1) i used an integer model-object in my example, but as you said, the component would need a converter. 2) yes, it is the javascript i tried to implement it as a behavior that expects the bound component to implement ITextFormatProvider to get the input mask, but i haven't found a way to inject a converter into the component form inside the behavior. maybe it was just too late ;) Input Text Mask --- Key: WICKET-1085 URL: https://issues.apache.org/jira/browse/WICKET-1085 Project: Wicket Issue Type: New Feature Components: wicket-extensions Reporter: Will Hoover Assignee: Frank Bille Jensen Priority: Trivial Attachments: inputTextMask.js Allow developers to designate a keystroke input pattern for the input text component. The pattern would be used on the client to control valid keystrokes for the current cursor position within the input text field in relation to the specified pattern. For example, a pattern could be designated as (999)- causing only number values in each position where a 9 appears and using the (, ), and - as masking characters. When the cursor position reached one of these mask characters the cursor position would advance to the next 9 position. The resulting mask would appear as (___)___- within the input text value. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-1085) Input Text Mask
[ https://issues.apache.org/jira/browse/WICKET-1085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536192 ] Will Hoover commented on WICKET-1085: - 1) As Billie stated- that was the intention to have (999)999 evaluate as a string. Most masks should be evaluated a string seeing that most of the time a mask would contain special characters that define the mask (i.e. (, ), and - in the example). For special cases where a string needs to be converted (such as the case with a date) it would be just as easy to use a converter that converts a date based upon a regexp check on the server. If I am missing something let me know :o) 2) To clarify, this is only an issue when a invalid prefilled value is provided. In which case, IMHO, is an issue with the data provided. If the user does not have a valid value to begin with then it's an issue with their data. However, the script does handle valid prefilled values. The script assumes that the initial value (if any) originated from a valid source (i.e. DB or other source). If this is really an issue that needs to be addressed... A) I could add a page load listener that would validate the value and handle conversion accordingly, but what would we do if an invalid value is found? notify the user and leave it as is (really doesn't resolve the issue)? clear the value (may confusing to developers to see their data missing)? B) We could do the validation on the server side before rendering the page- seeing that we already have the mask pattern at that point. Not to mention, we need to do the conversion (and possibly validation) going back to the server anyways, but this will duplicate our efforts in that the code used to evaluate/convert the value would exist on the server as well as the client. Input Text Mask --- Key: WICKET-1085 URL: https://issues.apache.org/jira/browse/WICKET-1085 Project: Wicket Issue Type: New Feature Components: wicket-extensions Reporter: Will Hoover Assignee: Frank Bille Jensen Priority: Trivial Attachments: inputTextMask.js Allow developers to designate a keystroke input pattern for the input text component. The pattern would be used on the client to control valid keystrokes for the current cursor position within the input text field in relation to the specified pattern. For example, a pattern could be designated as (999)- causing only number values in each position where a 9 appears and using the (, ), and - as masking characters. When the cursor position reached one of these mask characters the cursor position would advance to the next 9 position. The resulting mask would appear as (___)___- within the input text value. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-1085) Input Text Mask
[ https://issues.apache.org/jira/browse/WICKET-1085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536155 ] Frank Bille Jensen commented on WICKET-1085: 1) I would say the component needs a converter to handle those values. Who says that (999) or -99-99 is an integer? IMO those could be both string, number and date. 2) I haven't tried it yet, but if it's the javascript that doesn't handle it, then it should be fixed. Input Text Mask --- Key: WICKET-1085 URL: https://issues.apache.org/jira/browse/WICKET-1085 Project: Wicket Issue Type: New Feature Components: wicket-extensions Reporter: Will Hoover Assignee: Frank Bille Jensen Priority: Trivial Attachments: inputTextMask.js Allow developers to designate a keystroke input pattern for the input text component. The pattern would be used on the client to control valid keystrokes for the current cursor position within the input text field in relation to the specified pattern. For example, a pattern could be designated as (999)- causing only number values in each position where a 9 appears and using the (, ), and - as masking characters. When the cursor position reached one of these mask characters the cursor position would advance to the next 9 position. The resulting mask would appear as (___)___- within the input text value. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-1085) Input Text Mask
[ https://issues.apache.org/jira/browse/WICKET-1085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536132 ] Frank Bille Jensen commented on WICKET-1085: It looks nice. I will convert it into a component and if no-one objects I will add it to extensions. Input Text Mask --- Key: WICKET-1085 URL: https://issues.apache.org/jira/browse/WICKET-1085 Project: Wicket Issue Type: New Feature Components: wicket-extensions Reporter: Will Hoover Assignee: Frank Bille Jensen Priority: Trivial Attachments: inputTextMask.js Allow developers to designate a keystroke input pattern for the input text component. The pattern would be used on the client to control valid keystrokes for the current cursor position within the input text field in relation to the specified pattern. For example, a pattern could be designated as (999)- causing only number values in each position where a 9 appears and using the (, ), and - as masking characters. When the cursor position reached one of these mask characters the cursor position would advance to the next 9 position. The resulting mask would appear as (___)___- within the input text value. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
svn commit: r586669 - /wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/resource/ComponentStringResourceLoaderTest.java
Author: ehillenius Date: Fri Oct 19 22:42:54 2007 New Revision: 586669 URL: http://svn.apache.org/viewvc?rev=586669view=rev Log: removed code rot Modified: wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/resource/ComponentStringResourceLoaderTest.java Modified: wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/resource/ComponentStringResourceLoaderTest.java URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/resource/ComponentStringResourceLoaderTest.java?rev=586669r1=586668r2=586669view=diff == --- wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/resource/ComponentStringResourceLoaderTest.java (original) +++ wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/resource/ComponentStringResourceLoaderTest.java Fri Oct 19 22:42:54 2007 @@ -81,39 +81,6 @@ /** * */ -// public void testNonPageComponent() -// { -// Component c = new DummyComponent(hello, application) -// { -// private static final long serialVersionUID = 1L; -// }; -// IStringResourceLoader loader = new ComponentStringResourceLoader(tester.getApplication()); -// try -// { -// loader.loadStringResource(c.getClass(), test.string, Locale.getDefault(), null); -// Assert.fail(IllegalStateException should be thrown); -// } -// catch (IllegalStateException e) -// { -// // Expected result since component is not attached to a Page -// } -// } -// /** -// * -// */ -// public void testPageEmbeddedComponentLoadFromPage() -// { -// DummyPage p = new DummyPage(); -// DummyComponent c = new DummyComponent(hello, application); -// p.add(c); -// IStringResourceLoader loader = new ComponentStringResourceLoader(tester.getApplication()); -// Assert.assertEquals(Valid resourse string should be found, Another string, -// loader.loadStringResource( -// c.getClass(), another.test.string, Locale.getDefault(), null)); -// } - /** -* -*/ public void testMultiLevelEmbeddedComponentLoadFromComponent() { DummyPage p = new DummyPage();
[jira] Issue Comment Edited: (WICKET-1085) Input Text Mask
[ https://issues.apache.org/jira/browse/WICKET-1085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536193 ] seitz edited comment on WICKET-1085 at 10/19/07 5:10 AM: 1) i used an integer model-object in my example, but as you said, the component would need a converter. 2) yes, it is the javascript i tried to implement it as a behavior that expects the bound component to implement ITextFormatProvider to get the input mask, but i haven't found a way to inject a converter into the component form inside the behavior. maybe it was just too late ;) update: william, these problems are probably easier to solve if there is a dedicated component (eg. MaskedTextField). as i said above, i tried the more lightweight approach to use the mask also for currently existing TextField subclasses (eg. DateTextField in wicket-datetime). in this case, you don't always have the luxury to say that the modelobject should be a string, since you can't alter the components internals from outside. maybe i'm just overlooking something and overcomplicating it, so i can be totally wrong. was (Author: seitz): 1) i used an integer model-object in my example, but as you said, the component would need a converter. 2) yes, it is the javascript i tried to implement it as a behavior that expects the bound component to implement ITextFormatProvider to get the input mask, but i haven't found a way to inject a converter into the component form inside the behavior. maybe it was just too late ;) Input Text Mask --- Key: WICKET-1085 URL: https://issues.apache.org/jira/browse/WICKET-1085 Project: Wicket Issue Type: New Feature Components: wicket-extensions Reporter: Will Hoover Assignee: Frank Bille Jensen Priority: Trivial Attachments: inputTextMask.js Allow developers to designate a keystroke input pattern for the input text component. The pattern would be used on the client to control valid keystrokes for the current cursor position within the input text field in relation to the specified pattern. For example, a pattern could be designated as (999)- causing only number values in each position where a 9 appears and using the (, ), and - as masking characters. When the cursor position reached one of these mask characters the cursor position would advance to the next 9 position. The resulting mask would appear as (___)___- within the input text value. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-1088) Update the toolbar APIs to use IPageable rather than DataTable directly
[ https://issues.apache.org/jira/browse/WICKET-1088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Justin Lee updated WICKET-1088: --- Attachment: IPageable_update.patch Update the toolbar APIs to use IPageable rather than DataTable directly --- Key: WICKET-1088 URL: https://issues.apache.org/jira/browse/WICKET-1088 Project: Wicket Issue Type: Improvement Components: wicket-extensions Affects Versions: 1.3.0-beta4 Reporter: Justin Lee This change makes it possible to use the toolbars with DataViews as well. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.