Re: WicketTester#startComponentInPage and tester#assertModelValue
https://issues.apache.org/jira/browse/WICKET-4112 I will provide a patch this evening. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketTester-startComponentInPage-and-tester-assertModelValue-tp3874269p3877347.html Sent from the Users forum 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: set a TextField Componet to readonly
The interesting part is not visible in your source, the Method: vehicleTypeModel(position) You could use some kind of readOnlyModel here - Please check ReadOnlyPropertyModel for example. regards Martin -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/set-a-TextField-Componet-to-readonly-tp3877659p3877723.html Sent from the Users forum 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: Upgrade 1.5 - PageParameters#toRequestParameters
Hi, sure I can, I just wanted to make sure, that I haven´t overseen an already implemented solution. Thank you Martin. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Upgrade-1-5-PageParameters-toRequestParameters-tp3871781p3874199.html Sent from the Users forum 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
WicketTester#startComponentInPage and tester#assertModelValue
Hi, I have a rather strange behavior, and I don´t know what I´m doing wrong. Before I open a Bug, I would like to hear some opinions, why this works this way. I try the following (in Pseudocode): tester = new WicketTester(); tester.startComponentInPage(new Label(test,hello); tester.assertModelValue(test,hello); -- throws java.lang.IllegalArgumentException: Component is not a container and so does not contain the path test. Funny as it is, to make this work, you have to do the following assertion: tester.assertModelValue(, hello); The error lies in public Component getComponentFromLastRenderedPage(String path, final boolean wantVisibleInHierarchy) in Line: path = startComponent.getId() + : + path; Here i think you would need to check whether startComponent is a WebMarkupContainer or not, I would file a Bug and provide a patch, or am I completely wrong? Regards Martin -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketTester-startComponentInPage-and-tester-assertModelValue-tp3874269p3874269.html Sent from the Users forum 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
Upgrade 1.5 - PageParameters#toRequestParameters
Hi, in 1.5 the Method toRequestParameters in class PageParameters, which returns all Parameters as Maplt;String,String[]gt; is gone, what to use instead? Thanks Marti -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Upgrade-1-5-PageParameters-toRequestParameters-tp3871781p3871781.html Sent from the Users forum 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
WicketTester#startPanel marked deprecated??
Hi, I´m just upgrading a quire large Application to Wicket 1.5. I just saw that the Method public final Panel startPanel(final ITestPanelSource testPanelSource) is marked deprecated with the hint: @deprecated since 1.5 use {@link #startComponentInPage(Class, IMarkupFragment)} instead But that does not make sense, since startComponentInPAge only allows the Single-Argument-String-Constructor. Or am I wrong? Regards Martin -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketTester-startPanel-marked-deprecated-tp3850565p3850565.html Sent from the Users forum 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: WicketTester#startPanel marked deprecated??
ah there you go, got it. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketTester-startPanel-marked-deprecated-tp3850565p3850659.html Sent from the Users forum 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: Apache Wicket releases Wicket 1.5
Congratulations, it's a Wicket! Great work! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-releases-Wicket-1-5-tp3797412p3799758.html Sent from the Users forum 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: When will my panels be released?
hi, well could it be that you keep some references to the panels somewhere? Maybe in the Session? References to Componentes are garbage collected as every other class as soon as no reference to them is available to the GC. Regards Martin -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/When-will-my-panels-be-released-tp3549632p3551688.html Sent from the Users forum 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: Ajaxifying existing application
It´s not as if I have a choice, whether this requirement should be implemented or not:(... I´m not a big ajax fan, i like the application the way it is today, but ajax is hype today, and every customer wants more of it... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajaxifying-existing-application-tp3486615p3489746.html Sent from the Users forum 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: Ajaxifying existing application
Hi James, yes, thats exaclty what I meant. The Problem is, we have an existing infrastructure, that depends on pages. The idea to change everything to a setResponsePanel-Method seems to be very good, I think we could realize that very cheaply, thanks for the hint! Would that be something that could be of interest for the framework itself? Would it be possible/reasonable to integrate that into an AbstractAjaxWebPage or something? I did not try this out, but it seems to be a good idea that could be of interest to many people? Regards Martin -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajaxifying-existing-application-tp3486615p3488304.html Sent from the Users forum 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
Ajaxifying existing application
Hi, i have a general question, we have an exisiting application, that now needs to be ajaxified (no page reloads etc..). This has never been a requirement, so the application is not prepared at all for this. The biggest problem we see is that we have many different pages, but how shall we do page switches using ajax? I look forward to any hints on this. Thank you very much.-- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajaxifying-existing-application-tp3486615p3486615.html Sent from the Users forum 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: Apache Wicket Cookbook Published!
I Got mine today, well done and thank you for all the great work! Regards Martin -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Cookbook-Published-tp3406012p3445604.html Sent from the Users forum 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: multiple markup files for on panel
Hi, why dont you just extend your Panel and just add another Markup? The extended Panel doesnt do anything, but can have another Markup. We have done this often. Regards Martin -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/multiple-markup-files-for-on-panel-tp3313413p3313427.html Sent from the Users forum 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: multiple markup files for on panel
hi, omg, thank you for the hint on variations, i did not know it could be so simple! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/multiple-markup-files-for-on-panel-tp3313413p3313461.html Sent from the Users forum 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: Mapping wicket:id to component without changing Java code
Hi, some days ago, I experimented with exactly the same usecase (letting webdesigners place components on a Wicket Page), i wrote a small BlogEntry (unfortunately in German, but maybe Google could translate). http://splitshade.wordpress.com/2011/01/27/wicket-markup-komponenten-braucht-man-das/ Bye Martin -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Mapping-wicket-id-to-component-without-changing-Java-code-tp3250381p3262231.html Sent from the Users forum 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: Validate after Submit?
well, attaching a validator to a specific id could possibly work, but this is not very usable, because thus i would need to know about the internal structure of a component. But i do not have any better idea either, so thanks for the hint! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validate-after-Submit-tp3070168p3072763.html Sent from the Users forum 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
Validate after Submit?
Hi, a general Question, and I am interested in how you would solve that? I have a couple of form elements, that I want to submit. I send some values to a backend and get an error code back - say an Enum with errorcode and Message Error, User-ID already registered. What I want to do now is, i want to assign this errormessage to the inputtextfield for userid. All Fields are hidden within Panels, so in the Page, I do not have access to the TextFIeld itself, and I do not want to make it accessible through some kind of getters or something. is there a way to assign an Error to a component from outside (with a FormVisitor or something)? Just looking for some directions. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validate-after-Submit-tp3070168p3070168.html Sent from the Users forum 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: DropDownChoice loses Selection in Disabled Panels
Hi, we just upgraded from 1.4.9 to 1.4.10 and the error seems fixed, although i cant find something in the release notes, but thank you for your help! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-loses-Selection-in-Disabled-Panels-tp2989677p2991641.html Sent from the Users forum 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
DropDownChoice loses Selection in Disabled Panels
Hi, i have spent some time researching this strange behaviour. I have a Page with some Panels, that contain DropDownChoices. These Panels are initially disabled on the Page. If a validationError occurs on this page, ALL dropdownchoices that are in disabled panels lose their values. Is this a known Bug? an Implementation Issue? Some hints are greatly appreciated, thanks in advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-loses-Selection-in-Disabled-Panels-tp2989677p2989677.html Sent from the Users forum 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: DropDownChoice loses Selection in Disabled Panels
Hi, yes exactly. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-loses-Selection-in-Disabled-Panels-tp2989677p2989706.html Sent from the Users forum 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
Enable FormFields on Error
Hi All!, we have a Problem here. We have a Page, where lots of Panels are added. These Panels should be individually enabled, as soon as a ValidationError is available for one of them. We have overridden isEnabled() for all Panels to return true, whenever an Errormessage is registered for a Panel or one of its subcomponents (using Visitor). Enablement works like a charm, Problem is, that isEnabled is called before FormValidation takes process, so in the first place, the panel and its subcomponents are not validated, and as last call, isEnabled is called again to check, if the panel should be displayed as Enabled. So, is this a bad design? would you solve it this way or is there even a better solution i did not think of? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Enable-FormFields-on-Error-tp2966341p2966341.html Sent from the Users forum 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: Enable FormFields on Error
hi, wow, this is great, thank you so much! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Enable-FormFields-on-Error-tp2966341p2967462.html Sent from the Users forum 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
Inter-Component Validation (or how to marry two strangers)
Hi, this seems a rather simple question on the first sight, but I can't seem to find a clean solution to this. Image you have a Panel A that allows the User to input his Passport-Data, further image you have another Panel B, that allows you to input the Personal Data (like Birthday), now image you need to validate Passport-Data. To Validate this, you need to know both Birthday (from Panel B) and the Data from Panel A. How to solve this Problem without Hacking around? It seems clear, that a FormValidator is needed here... is it? How should I validate two components, that do not know each other? Surely, I could expose the inner components from Panel B and Panel A to a FormValidator, OR .. Everything looks like a Hack, is there a really clean way how to solve this in Wicket? Thanks in advance for ANY hints and help -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Inter-Component-Validation-or-how-to-marry-two-strangers-tp2550675p2550675.html Sent from the Users forum 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: Inter-Component Validation (or how to marry two strangers)
Hi, thanks for the reply, well.. good question, this would propably be the validator, i need to check the validity of the personal data fields before the form gets submitted. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Inter-Component-Validation-or-how-to-marry-two-strangers-tp2550675p2550735.html Sent from the Users forum 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: Inter-Component Validation (or how to marry two strangers)
Hi again, well, i think the validator would be applied to the form, to which both panels are added, but you are right, there is nothing that is aware of both components (or more exactly on the inner components of the panels). Model-Validation sounds good, but the Model itself is updated after validation-phase, so propably i would need to implement further logic in updateModel().. or something. But I'm confused that there is no default way of handling such problems, this is a common use case, isn't it? Ok, not all too common, but possible. Thanks for your help! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Inter-Component-Validation-or-how-to-marry-two-strangers-tp2550675p2550781.html Sent from the Users forum 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: Inter-Component Validation (or how to marry two strangers)
Hi, ok, that sounds pretty good... If that is not uncommon to do, I'll try that. I'm really impressed, how fast you helped me here, thank you very much! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Inter-Component-Validation-or-how-to-marry-two-strangers-tp2550675p2550817.html Sent from the Users forum 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