Disabling and enabling components using AjaxCheckBox
Hi, I have AjaxCheckBox. I want to be able to set other components to be disable or enable when the use check or unckeck the AjaxCheckBox. In my javacode: Several text fields in the next format: TextField externalXapUrlField = new TextField(externalXapUrl); add(externalXapUrlField, new PropertyModel(this, externalXapUrl)); The check box: CheckBox externalUploadCheckBox = new AjaxCheckBox(external,new PropertyModel(this, externalUpload)){ @Override protected void onUpdate(AjaxRequestTarget arg0) { //TODO - I am not sure what to do here } }; add(externalUploadCheckBox); I want to set the text box fields to be editable or disable according the check box, Any Idea? Thanks in advance -- View this message in context: http://www.nabble.com/Disabling-and-enabling-components-using-AjaxCheckBox-tp20911338p20911338.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Add a feedBackPanel in form
Hi, I have a problem with a form, I want to add a feedBackPanel for each fields added in my form. Is it possible??? In the normal case the feedback message appear in the same panel for all fields, for my new form I want a separate feedback which appear near to input fields... Thanks -- View this message in context: http://www.nabble.com/Add-a-feedBackPanel-in-form-tp20911421p20911421.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disabling and enabling components using AjaxCheckBox
CheckBox externalUploadCheckBox = new AjaxCheckBox(external,new PropertyModel(this, externalUpload)){ @Override protected void onUpdate(AjaxRequestTarget arg0) { } }; On Tue, Dec 9, 2008 at 10:31 AM, itayh [EMAIL PROTECTED] wrote: Hi, I have AjaxCheckBox. I want to be able to set other components to be disable or enable when the use check or unckeck the AjaxCheckBox. In my javacode: Several text fields in the next format: TextField externalXapUrlField = new TextField(externalXapUrl); add(externalXapUrlField, new PropertyModel(this, externalXapUrl)); The check box: CheckBox externalUploadCheckBox = new AjaxCheckBox(external,new PropertyModel(this, externalUpload)){ @Override protected void onUpdate(AjaxRequestTarget arg0) { if() } }; add(externalUploadCheckBox); I want to set the text box fields to be editable or disable according the check box, Any Idea? Thanks in advance -- View this message in context: http://www.nabble.com/Disabling-and-enabling-components-using-AjaxCheckBox-tp20911338p20911338.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disabling and enabling components using AjaxCheckBox
Sorry, sent to early... Maybe something like? CheckBox externalUploadCheckBox = new AjaxCheckBox(external,new PropertyModel(this, externalUpload)){ @Override protected void onUpdate(AjaxRequestTarget arg0) { externalXapUrlField.setEnabled(true/false); if(arg0 != null) { arg0.addComponent(externalXapUrlField); } } }; For this to work externalXapUrlField will have be a variable (so that you can refer back to it) and have externalXapUrlField.setOutputMarkupId(true)... Ernesto On Tue, Dec 9, 2008 at 10:31 AM, itayh [EMAIL PROTECTED] wrote: Hi, I have AjaxCheckBox. I want to be able to set other components to be disable or enable when the use check or unckeck the AjaxCheckBox. In my javacode: Several text fields in the next format: TextField externalXapUrlField = new TextField(externalXapUrl); add(externalXapUrlField, new PropertyModel(this, externalXapUrl)); The check box: CheckBox externalUploadCheckBox = new AjaxCheckBox(external,new PropertyModel(this, externalUpload)){ @Override protected void onUpdate(AjaxRequestTarget arg0) { } }; add(externalUploadCheckBox); I want to set the text box fields to be editable or disable according the check box, Any Idea? Thanks in advance -- View this message in context: http://www.nabble.com/Disabling-and-enabling-components-using-AjaxCheckBox-tp20911338p20911338.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Announce] wicketstuff-push ported to use wicket 1.4 jetty 6.1.14
Hi, a new version of wicketstuff-push was moved to the wicketstuff-core group of projects, as push-parent (as was specified in the wiki) A couple of new things were done: It is no longer compatible with java 1.4, is built for wicket 1.4 and requires jetty 6.1.14. The dependencies on dojo have been reduced even further, so this package is basically just a cometd client/server project for wicket. The RemoveListener is now working and is extended with a new type of WicketRemoveListener that allows access to the Wicket Application Singleton and the session that registered the singleton (i thought of a couple of ways to register them, and decided to choose the one present in the code for it) Please let me know of any suggestions, ideas for the proj.
Re: Wicket integration with good charts api
I think it's small enough for minis.. But it's Igors baby, try to ask him? Maarten Bosteels wrote: Hello Ryan, I have just added some more code to the wiki page, and a working quickstart project. http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html My OpenFlashChart implementation is almost exactly the same as yours. Only differences I found: * You use an *ofc4j.model.Chart* as model, and I use a plain String. Using the Chart itself as model is cool, because then you could change the chart on-the-fly. Unfortunately Chart is not serializable and I get WicketNotSerializableException's. I will update my code and the quickstart as soon as I get rid of these exceptions. * Your constructor takes width and height but they're not used :-) * I don't call swf.setParam( allowScriptAccess, sameDomain ); It doesn't seem to be necessary ? It's only two classes, so I am not sure it's 'big' enough to add to wicket-stuff ? Perhaps it could be added to minis ? Maarten On Fri, Dec 5, 2008 at 6:38 PM, Maarten Bosteels [EMAIL PROTECTED]wrote: Oops, just started working on it :-) Will see if I can add somet more info to the wiki page. Maarten On Fri, Dec 5, 2008 at 5:57 PM, Ryan McKinley [EMAIL PROTECTED] wrote: I just started one with the implementation I have we can make it better, or perhaps add it to wicketstuff... http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html On Nov 5, 2008, at 3:59 PM, Thies Edeling wrote: Maarten Bosteels wrote: I have a similar requirement and played a bit with Open Flash Charts. [1] It took little effort to integrate wicket + ofc4j [2] + swfobject [3] [1] http://teethgrinder.co.uk/open-flash-chart-2/glass-bar-chart.php [2] http://code.google.com/p/ofcj/ [3] http://code.google.com/p/swfobject/ Another requirement was that the user could drag and drop charts around on the page (à la iGoogle) so I tried something like http://interface.eyecon.ro/demos/sort.html but that failed miserably: half the time the charts wouldn't show up correctly after dragging them around. I still have to find out if I can solve this somehow. All pointers are welcome. Anyway, if you're interested, I can create a wiki page showing the wicket + ofc4j + swfobject integration. Wiki page would be nice, those open flash charts look a lot better than the jfreechart images. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Announce] new stuff in wicketstuff openlayers..
Hi Guys I've updated the wicketstuff openlayers and put in a few new things. You can read more about it in my blog : http://ninomartinez.wordpress.com/2008/12/09/new-stuff-in-wicketstuff-openlayers-integration/ And btw, please say if theres some feature you'd like in it. I might be able to put it in. -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Add a feedBackPanel in form
Hi, This is possible, I recently wrote an article about it. It does not add a FeedbackPanel for every form component, but instead you can use the (custom) FeedbackLabel See http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket Regards, Daan Op 9 dec 2008, om 10:35 heeft miata het volgende geschreven: Hi, I have a problem with a form, I want to add a feedBackPanel for each fields added in my form. Is it possible??? In the normal case the feedback message appear in the same panel for all fields, for my new form I want a separate feedback which appear near to input fields... Thanks -- View this message in context: http://www.nabble.com/Add-a-feedBackPanel-in-form-tp20911421p20911421.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disabling and enabling components using AjaxCheckBox
You are welcome... On Tue, Dec 9, 2008 at 1:35 PM, itayh [EMAIL PROTECTED] wrote: Thanks a lot Ernesto, It works reiern70 wrote: Sorry, sent to early... Maybe something like? CheckBox externalUploadCheckBox = new AjaxCheckBox(external,new PropertyModel(this, externalUpload)){ @Override protected void onUpdate(AjaxRequestTarget arg0) { externalXapUrlField.setEnabled(true/false); if(arg0 != null) { arg0.addComponent(externalXapUrlField); } } }; For this to work externalXapUrlField will have be a variable (so that you can refer back to it) and have externalXapUrlField.setOutputMarkupId(true)... Ernesto On Tue, Dec 9, 2008 at 10:31 AM, itayh [EMAIL PROTECTED] wrote: Hi, I have AjaxCheckBox. I want to be able to set other components to be disable or enable when the use check or unckeck the AjaxCheckBox. In my javacode: Several text fields in the next format: TextField externalXapUrlField = new TextField(externalXapUrl); add(externalXapUrlField, new PropertyModel(this, externalXapUrl)); The check box: CheckBox externalUploadCheckBox = new AjaxCheckBox(external,new PropertyModel(this, externalUpload)){ @Override protected void onUpdate(AjaxRequestTarget arg0) { } }; add(externalUploadCheckBox); I want to set the text box fields to be editable or disable according the check box, Any Idea? Thanks in advance -- View this message in context: http://www.nabble.com/Disabling-and-enabling-components-using-AjaxCheckBox-tp20911338p20911338.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Disabling-and-enabling-components-using-AjaxCheckBox-tp20911338p20913865.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disabling and enabling components using AjaxCheckBox
Thanks a lot Ernesto, It works reiern70 wrote: Sorry, sent to early... Maybe something like? CheckBox externalUploadCheckBox = new AjaxCheckBox(external,new PropertyModel(this, externalUpload)){ @Override protected void onUpdate(AjaxRequestTarget arg0) { externalXapUrlField.setEnabled(true/false); if(arg0 != null) { arg0.addComponent(externalXapUrlField); } } }; For this to work externalXapUrlField will have be a variable (so that you can refer back to it) and have externalXapUrlField.setOutputMarkupId(true)... Ernesto On Tue, Dec 9, 2008 at 10:31 AM, itayh [EMAIL PROTECTED] wrote: Hi, I have AjaxCheckBox. I want to be able to set other components to be disable or enable when the use check or unckeck the AjaxCheckBox. In my javacode: Several text fields in the next format: TextField externalXapUrlField = new TextField(externalXapUrl); add(externalXapUrlField, new PropertyModel(this, externalXapUrl)); The check box: CheckBox externalUploadCheckBox = new AjaxCheckBox(external,new PropertyModel(this, externalUpload)){ @Override protected void onUpdate(AjaxRequestTarget arg0) { } }; add(externalUploadCheckBox); I want to set the text box fields to be editable or disable according the check box, Any Idea? Thanks in advance -- View this message in context: http://www.nabble.com/Disabling-and-enabling-components-using-AjaxCheckBox-tp20911338p20911338.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Disabling-and-enabling-components-using-AjaxCheckBox-tp20911338p20913865.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hi!
Hi All! I would like to know if the multiple wicket child is implemented. Thanks in advance, Regards, Wadi
Re: [Announce] wicketstuff-push ported to use wicket 1.4 jetty 6.1.14
Rodolfo, so you finally decided to stick with your initial idea ;-) did you at least have a look at the cometd stuff in the new wicketstuff-dojo-1.1. project? I'm still against the idea to split up wicketstuff-push completely from the dojo project, but we had the discussion before without result ... regards, Michael Rodolfo Hansen-2 wrote: Hi, a new version of wicketstuff-push was moved to the wicketstuff-core group of projects, as push-parent (as was specified in the wiki) A couple of new things were done: It is no longer compatible with java 1.4, is built for wicket 1.4 and requires jetty 6.1.14. The dependencies on dojo have been reduced even further, so this package is basically just a cometd client/server project for wicket. The RemoveListener is now working and is extended with a new type of WicketRemoveListener that allows access to the Wicket Application Singleton and the session that registered the singleton (i thought of a couple of ways to register them, and decided to choose the one present in the code for it) Please let me know of any suggestions, ideas for the proj. - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/-Announce--wicketstuff-push-ported-to-use-wicket-1.4-jetty-6.1.14-tp20914051p20914877.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IFrame in Panel?
Hi, i want to display a nother web-application (plain jsp) included in my webpage. actually i use iframes. but i have two problems with iframes: 1. how can i pass parameters to the subpages? RequestCycle.get().setResponsePage(new IFramePage(params)); 2. how can i display an iframe in a panel? exists an other possibility to display a non-wicket page included in a wicketpanel, which i can control with urls? getRequestCycle().setRequestTarget(new RedirectRequestTarget( http://localhost:8080/appl?p1=12ps=13;)); thanks a lot alex -- View this message in context: http://www.nabble.com/IFrame-in-Panel--tp20911915p20911915.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hi!
Hi Wadi, Sorry, but I do not understand your question... What do you mean by multiple wicket child is implemented? Regards Ernesto On Tue, Dec 9, 2008 at 2:51 PM, Wadi Jalil Maluf [EMAIL PROTECTED]wrote: Hi All! I would like to know if the multiple wicket child is implemented. Thanks in advance, Regards, Wadi
Re: Hi!
no thats on the todo for 1.5 On Tue, Dec 9, 2008 at 14:51, Wadi Jalil Maluf [EMAIL PROTECTED] wrote: Hi All! I would like to know if the multiple wicket child is implemented. Thanks in advance, Regards, Wadi
Re: Hi!
do you mean? wicket:panel .. wicket:child1/ .. wicket:child2/ /wicket:panel On Tue, Dec 9, 2008 at 3:04 PM, Ernesto Reinaldo Barreiro [EMAIL PROTECTED] wrote: Hi Wadi, Sorry, but I do not understand your question... What do you mean by multiple wicket child is implemented? Regards Ernesto On Tue, Dec 9, 2008 at 2:51 PM, Wadi Jalil Maluf [EMAIL PROTECTED]wrote: Hi All! I would like to know if the multiple wicket child is implemented. Thanks in advance, Regards, Wadi
Re: Hi!
yes something like that more: wicket:child name=child1/ dsfadsfsadf wicket:child name=child2/ On Tue, Dec 9, 2008 at 15:07, Ernesto Reinaldo Barreiro [EMAIL PROTECTED]wrote: do you mean? wicket:panel .. wicket:child1/ .. wicket:child2/ /wicket:panel On Tue, Dec 9, 2008 at 3:04 PM, Ernesto Reinaldo Barreiro [EMAIL PROTECTED] wrote: Hi Wadi, Sorry, but I do not understand your question... What do you mean by multiple wicket child is implemented? Regards Ernesto On Tue, Dec 9, 2008 at 2:51 PM, Wadi Jalil Maluf [EMAIL PROTECTED] wrote: Hi All! I would like to know if the multiple wicket child is implemented. Thanks in advance, Regards, Wadi
Re: IMG SRC URL in iframe - part 2.
Ernesto - similar to what you did? Graeme Knight wrote: Hi. I recently had a question which I put to the forum here: http://www.nabble.com/IMG-SRC-URL-in-iframe.-td20805408.html Generating IMG SRC to replace CIDs. I believe I have found the answer (thanks to Ernesto's help) which I would like some verification of if possible (not sure if it needs a wiki page): Here's the solution: 1) In my application I create a new shared resource: @Override protected void init() { getSharedResources().add( cidImageResource, new CIDImageResource() ); mountSharedResource( /imageStuff, cidImageResource ); } 2) My CIDImageResource class is a subclass of DynamicImageResource. It has a single important implementation of a method in it: byte[] getImageData(). This method will be passed a filename as a parameter. This filename is the image file we wish to render and is known by its attachment on url-to-cid-image-resource?filename=image.png . Note that 'image.png' is the name of a file that has previously been serialized onto the file system and replaces the CID in the HTML email that we are rendering. 3) There is a magic class that I have that loads the HTML email data from the filesystem and parses out the CIDs, replacing the SRC=CID:sdkfhsakhfskdfh13213123 with the correct URL to the correct file. This URL is gotten in the following way: First we get the following: ResourceReference ref = new ResourceReference( cidImageResource ); RequestCycle requestCycle = getRequestCycle(); We then loop around all our known CID references in the HTML email and call the following: String contentFileName = UserDefaults.resolveUserHomePath( userName ) + uploadData.getUploadFileName(); ValueMap parameters = new ValueMap(); parameters.put( filename, contentFileName ); String link = requestCycle.urlFor( resourceReference, parameters ).toString(); Once we have the link to the file, we replace the correct CID:. We do this numerous times for the entire HTML email. 4) The HTML email is rendered in an iframe. See my previous post, which I got working, and sets the innerHTML on the iframe: http://www.nabble.com/Populate-IFRAME-innerHTML-on-AJAX-load-of-panel.-td20887803.html iframe innerHTML post. The shared resource (cidImageResource) that I created in the application is then called repeatedly during rendering of the iframe, and the image byte data is returned to the browser and rendered correctly in place of the CIDs. Does this sound about right? I hope this may be useful to someone else if it is! All the best, Graeme. -- View this message in context: http://www.nabble.com/IMG-SRC-URL-in-iframe---part-2.-tp20907919p20915492.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IMG SRC URL in iframe - part 2.
Hi Graeme, Yes more or less... As I said I do no longer have access to the code I wrote (it was for a project on my previous Job) but as far as I remember all I did was: 1-mount a resource for servicing files (I suppose I did the same way you are doing it;-) 2-generate HTML code asking for those files. Maybe part 1) can also be solved by: 1- having on the same page containing your HTML a wicket component, maybe the same iframe you are using, implementing IResourceListener and, instead of having a global resource use, that component to stream back your images. 2- or using a servlet. I really don't know which of these would be the best solution in terms of efficiency and use of resources... Best, Ernesto On Tue, Dec 9, 2008 at 3:20 PM, Graeme Knight [EMAIL PROTECTED] wrote: Ernesto - similar to what you did? Graeme Knight wrote: Hi. I recently had a question which I put to the forum here: http://www.nabble.com/IMG-SRC-URL-in-iframe.-td20805408.html Generating IMG SRC to replace CIDs. I believe I have found the answer (thanks to Ernesto's help) which I would like some verification of if possible (not sure if it needs a wiki page): Here's the solution: 1) In my application I create a new shared resource: @Override protected void init() { getSharedResources().add( cidImageResource, new CIDImageResource() ); mountSharedResource( /imageStuff, cidImageResource ); } 2) My CIDImageResource class is a subclass of DynamicImageResource. It has a single important implementation of a method in it: byte[] getImageData(). This method will be passed a filename as a parameter. This filename is the image file we wish to render and is known by its attachment on url-to-cid-image-resource?filename=image.png . Note that 'image.png' is the name of a file that has previously been serialized onto the file system and replaces the CID in the HTML email that we are rendering. 3) There is a magic class that I have that loads the HTML email data from the filesystem and parses out the CIDs, replacing the SRC=CID:sdkfhsakhfskdfh13213123 with the correct URL to the correct file. This URL is gotten in the following way: First we get the following: ResourceReference ref = new ResourceReference( cidImageResource ); RequestCycle requestCycle = getRequestCycle(); We then loop around all our known CID references in the HTML email and call the following: String contentFileName = UserDefaults.resolveUserHomePath( userName ) + uploadData.getUploadFileName(); ValueMap parameters = new ValueMap(); parameters.put( filename, contentFileName ); String link = requestCycle.urlFor( resourceReference, parameters ).toString(); Once we have the link to the file, we replace the correct CID:. We do this numerous times for the entire HTML email. 4) The HTML email is rendered in an iframe. See my previous post, which I got working, and sets the innerHTML on the iframe: http://www.nabble.com/Populate-IFRAME-innerHTML-on-AJAX-load-of-panel.-td20887803.html iframe innerHTML post. The shared resource (cidImageResource) that I created in the application is then called repeatedly during rendering of the iframe, and the image byte data is returned to the browser and rendered correctly in place of the CIDs. Does this sound about right? I hope this may be useful to someone else if it is! All the best, Graeme. -- View this message in context: http://www.nabble.com/IMG-SRC-URL-in-iframe---part-2.-tp20907919p20915492.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
BUG on wicket-ajax.js on Ajax behaviour in IE7 ??
Hi, I have detected problems with my UTF-8 encoded application , Wicket 1.3.2 ( also 1.4rc1) when trying to add AjaxBehaviours to an AutoCompleteTextField (from wicket.extensions) . These problems regards on Ajax Submitting of Strings with non-english chars ( 'España' , receiving 'España') . The application works fine on Firefox, but fails on IE7 . When receiving getChoices event on AutoCompleteTextField everything goes right, but when receiving onUpdate event for a AjaxFormComponentUpdatingBehavior(onchange), the ModelObject from the AutoCompleteTextField is bad encoded. Using the search on the mailing list I found http://www.nabble.com/Re%3A-Weird-Ajax-non-English-characters-encoding-problem.-tt16636043.html#a16636043 Weird-Ajax-non-English-characters-encoding-problem , that is pretty much like my problem. But setting URIEncoding=UTF-8 seems to have no effect ( even seems to have no sense ) . Using a HTTP Sniffer found that Firefox automatically completes request header 'Content-Type' from application/x-www-form-urlencoded to application/x-www-form-urlencoded; charset=UTF-8 . IE7 doesn't do this, so no charset is set, and ISO-8859-1 is used. When the request enters Tomcat, it is read as an UTF-8 String . Also checked that patching wicket-ajax.js forcing doPost function from t.setRequestHeader(Content-Type, application/x-www-form-urlencoded); to t.setRequestHeader(Content-Type, application/x-www-form-urlencoded; charset=UTF-8); makes application works fine. What am I doing wrong? Pedro Boado. -- View this message in context: http://www.nabble.com/BUG-on-wicket-ajax.js-on-Ajax-behaviour-in-IE7tp20915921p20915921.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TextArea.onComponentTagBody not called
Hi, I am developing components similar to the EditableLable and noticed that when I replace in the code TextField with a TextArea but the markup remains input type=text no exception was thrown. TextArea has: @Override protected final void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { checkComponentTag(openTag, textarea); replaceComponentTagBody(markupStream, openTag, getValue()); } but it is never called... at least when I put a breakpoint in it it is not hit whereas in TextField it is. This is not causing me a problem but I thought perhaps it could indicate a problem. I am using 1.4-RC1 John -- View this message in context: http://www.nabble.com/TextArea.onComponentTagBody-not-called-tp20916141p20916141.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TextArea.onComponentTagBody not called
The check is not made because the tag was an OpenClose tag. When I change the type of the tag to Open it is called. -- View this message in context: http://www.nabble.com/TextArea.onComponentTagBody-not-called-tp20916141p20916420.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hi!
Thanks for the explanation! Ernesto On Tue, Dec 9, 2008 at 3:10 PM, Johan Compagner [EMAIL PROTECTED]wrote: yes something like that more: wicket:child name=child1/ dsfadsfsadf wicket:child name=child2/ On Tue, Dec 9, 2008 at 15:07, Ernesto Reinaldo Barreiro [EMAIL PROTECTED]wrote: do you mean? wicket:panel .. wicket:child1/ .. wicket:child2/ /wicket:panel On Tue, Dec 9, 2008 at 3:04 PM, Ernesto Reinaldo Barreiro [EMAIL PROTECTED] wrote: Hi Wadi, Sorry, but I do not understand your question... What do you mean by multiple wicket child is implemented? Regards Ernesto On Tue, Dec 9, 2008 at 2:51 PM, Wadi Jalil Maluf [EMAIL PROTECTED] wrote: Hi All! I would like to know if the multiple wicket child is implemented. Thanks in advance, Regards, Wadi
RE: Hi!
Thanks! -Mensaje original- De: Johan Compagner [mailto:[EMAIL PROTECTED] Enviado el: martes, 09 de diciembre de 2008 11:11 Para: users@wicket.apache.org Asunto: Re: Hi! yes something like that more: wicket:child name=child1/ dsfadsfsadf wicket:child name=child2/ On Tue, Dec 9, 2008 at 15:07, Ernesto Reinaldo Barreiro [EMAIL PROTECTED]wrote: do you mean? wicket:panel .. wicket:child1/ .. wicket:child2/ /wicket:panel On Tue, Dec 9, 2008 at 3:04 PM, Ernesto Reinaldo Barreiro [EMAIL PROTECTED] wrote: Hi Wadi, Sorry, but I do not understand your question... What do you mean by multiple wicket child is implemented? Regards Ernesto On Tue, Dec 9, 2008 at 2:51 PM, Wadi Jalil Maluf [EMAIL PROTECTED] wrote: Hi All! I would like to know if the multiple wicket child is implemented. Thanks in advance, Regards, Wadi __ Information from ESET NOD32 Antivirus, version of virus signature database 3674 (20081209) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Information from ESET NOD32 Antivirus, version of virus signature database 3674 (20081209) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IMG SRC URL in iframe - part 2.
Hi Ernesto, Certainly the way you suggested makes a lot of sense to me. It is a nice resource that can just receive the requests and process based resolution of the SRC attribute - given that the content if the iframe is populated after the body has been rendered and really Wicket is not doing any processing from a component point of view. Thanks again, Graeme. reiern70 wrote: Hi Graeme, Yes more or less... As I said I do no longer have access to the code I wrote (it was for a project on my previous Job) but as far as I remember all I did was: 1-mount a resource for servicing files (I suppose I did the same way you are doing it;-) 2-generate HTML code asking for those files. Maybe part 1) can also be solved by: 1- having on the same page containing your HTML a wicket component, maybe the same iframe you are using, implementing IResourceListener and, instead of having a global resource use, that component to stream back your images. 2- or using a servlet. I really don't know which of these would be the best solution in terms of efficiency and use of resources... Best, Ernesto On Tue, Dec 9, 2008 at 3:20 PM, Graeme Knight [EMAIL PROTECTED] wrote: Ernesto - similar to what you did? Graeme Knight wrote: Hi. I recently had a question which I put to the forum here: http://www.nabble.com/IMG-SRC-URL-in-iframe.-td20805408.html Generating IMG SRC to replace CIDs. I believe I have found the answer (thanks to Ernesto's help) which I would like some verification of if possible (not sure if it needs a wiki page): Here's the solution: 1) In my application I create a new shared resource: @Override protected void init() { getSharedResources().add( cidImageResource, new CIDImageResource() ); mountSharedResource( /imageStuff, cidImageResource ); } 2) My CIDImageResource class is a subclass of DynamicImageResource. It has a single important implementation of a method in it: byte[] getImageData(). This method will be passed a filename as a parameter. This filename is the image file we wish to render and is known by its attachment on url-to-cid-image-resource?filename=image.png . Note that 'image.png' is the name of a file that has previously been serialized onto the file system and replaces the CID in the HTML email that we are rendering. 3) There is a magic class that I have that loads the HTML email data from the filesystem and parses out the CIDs, replacing the SRC=CID:sdkfhsakhfskdfh13213123 with the correct URL to the correct file. This URL is gotten in the following way: First we get the following: ResourceReference ref = new ResourceReference( cidImageResource ); RequestCycle requestCycle = getRequestCycle(); We then loop around all our known CID references in the HTML email and call the following: String contentFileName = UserDefaults.resolveUserHomePath( userName ) + uploadData.getUploadFileName(); ValueMap parameters = new ValueMap(); parameters.put( filename, contentFileName ); String link = requestCycle.urlFor( resourceReference, parameters ).toString(); Once we have the link to the file, we replace the correct CID:. We do this numerous times for the entire HTML email. 4) The HTML email is rendered in an iframe. See my previous post, which I got working, and sets the innerHTML on the iframe: http://www.nabble.com/Populate-IFRAME-innerHTML-on-AJAX-load-of-panel.-td20887803.html iframe innerHTML post. The shared resource (cidImageResource) that I created in the application is then called repeatedly during rendering of the iframe, and the image byte data is returned to the browser and rendered correctly in place of the CIDs. Does this sound about right? I hope this may be useful to someone else if it is! All the best, Graeme. -- View this message in context: http://www.nabble.com/IMG-SRC-URL-in-iframe---part-2.-tp20907919p20915492.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/IMG-SRC-URL-in-iframe---part-2.-tp20907919p20920083.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Page access/security - forwarding in constructor
Greetings, I'm building an multiple-page wicket application. My Session class holds permission values dictating which pages the current user of the session can access. (These permission values are set when a user logs in) My question is: If the user tries to access a page to which they do not have access, we discover this in the page's constructor, but how can you forward this request to another page in the constructor (to block access to the page)? Perhaps there is a better way to do this? Thanks! -Sean -- View this message in context: http://www.nabble.com/Page-access-security---forwarding-in-constructor-tp20920192p20920192.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket integration with good charts api
Maarten, Getting the following exception when running your sample with Wicket 1.3.5. Any ideas? Steve java.lang.UnsupportedClassVersionError: (ofc4j/model/elements/BarChart) bad major version at offset=6 at java.lang.ClassLoader.defineClassImpl(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:228) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:148) at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:555) at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:506) at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:380) at java.lang.ClassLoader.loadClass(ClassLoader.java:573) at com.mycompany.HomePage.init(HomePage.java:27) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:521) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:149) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:58) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:262) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:283) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:210) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:124) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1095) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:569) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748) at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1461) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:118) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136) at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195) at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473) -- View this message in context: http://www.nabble.com/Wicket-integration-with-good-charts-api-tp20322515p20920291.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket integration with good charts api
Looks like a difference between the version of your JVM and the compiler used to compile ofc4j. java.lang.UnsupportedClassVersionError: (ofc4j/model/elements/BarChart) bad major version at offset=6 Ed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket integration with good charts api
I agree -- I'm using 5.0 but I guess ofc4j was compiled with 6 but not sure. -- View this message in context: http://www.nabble.com/Wicket-integration-with-good-charts-api-tp20322515p20921216.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Page access/security - forwarding in constructor
See wicket-auth-roles for inspiration (or if you have wicket in action available, skip to chapter 11. Martijn On Tue, Dec 9, 2008 at 7:07 PM, Sean W [EMAIL PROTECTED] wrote: Greetings, I'm building an multiple-page wicket application. My Session class holds permission values dictating which pages the current user of the session can access. (These permission values are set when a user logs in) My question is: If the user tries to access a page to which they do not have access, we discover this in the page's constructor, but how can you forward this request to another page in the constructor (to block access to the page)? Perhaps there is a better way to do this? Thanks! -Sean -- View this message in context: http://www.nabble.com/Page-access-security---forwarding-in-constructor-tp20920192p20920192.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getting page expired
Hi, I'm creating a demo app where someone can select a prepacked identity from a drop down box and be logged in as that user. The login process checks to see if someone is already logged in, then logs them off and logs in as the new user before redirecting back to the logged in page. Problem is I keep getting page expired after being redirected and I have no idea how to turn this behavior off or where in the wicket stack it occurs. Stepping thru with the debugger it does in face go thru the HomePage before ultimately resulting in page expired. Here is the code below, it is using Swarm. Form f = new Form(userform) { protected void onSubmit() { if (AuthenticatedSession.get().isAuthenticated()) { AuthenticatedSession.get().logout(); } try { AuthenticatedSession.get().login(new LoginContext(new UsernamePasswordAuthenticationToken(userMap.get(username), null))); } catch (LoginException e) { throw new RuntimeException(e); } setResponsePage(new HomePage()); setRedirect(true); } }; Thanks, Jason -- View this message in context: http://www.nabble.com/getting-page-expired-tp20921513p20921513.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
authorization and wicket:link
I am using wicket:link ,can I tell wicket to authorize the user if he has permissions to that page in wicket:link tag ? -- View this message in context: http://www.nabble.com/authorization-and-wicket%3Alink-tp20921748p20921748.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: authorization and wicket:link
No.. I had the same question some weeks ago.. Just create some markup containers for it instead.. miro wrote: I am using wicket:link ,can I tell wicket to authorize the user if he has permissions to that page in wicket:link tag ? -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie question
Hello all, I'm following the wicket in action book. I'm trying the cheese store in chapter 3. I was following along the code by reading a bit and coding a bit on my own. The code defining the ListView for the cheese cart is originally: add(new ListView(cart, new PropertyModel(this, cart.cheeses)) { ... } The way I ended up coding it was: add(new ListView(cart, getCart().getCheeses())) { ... } Which seems to be working fine, but If I click repeatedly fast on the 'add to cart' link, the ArrayList in session gets its size changed correctly when adding elements, but the ListView element size doesnt change accordingly. Basically, the list size keeps growing on each click, but the number of items in the ListView doesnt grow anymore. Any ideas whats wrong? Thanks.
Re: Newbie question
Hi, Basically, getCart().getCheeses().size() != cartListView.size() On Wed, Dec 10, 2008 at 12:31 AM, Bruno Cesar Borges [EMAIL PROTECTED] wrote: I think you are talking about the 'viewSize' property of ListView. This indicates how many viewable items will be displayed within a ListView. -Original Message- From: Mark Daniel [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2008 6:23 PM To: users@wicket.apache.org Subject: Newbie question Hello all, I'm following the wicket in action book. I'm trying the cheese store in chapter 3. I was following along the code by reading a bit and coding a bit on my own. The code defining the ListView for the cheese cart is originally: add(new ListView(cart, new PropertyModel(this, cart.cheeses)) { ... } The way I ended up coding it was: add(new ListView(cart, getCart().getCheeses())) { ... } Which seems to be working fine, but If I click repeatedly fast on the 'add to cart' link, the ArrayList in session gets its size changed correctly when adding elements, but the ListView element size doesnt change accordingly. Basically, the list size keeps growing on each click, but the number of items in the ListView doesnt grow anymore. Any ideas whats wrong? Thanks. *** Atenção: Esta mensagem foi enviada para uso exclusivo do(s) destinatários(s) acima identificado(s), podendo conter informações e/ou documentos confidencias/privilegiados e seu sigilo é protegido por lei. Caso você tenha recebido por engano, por favor, informe o remetente e apague-a de seu sistema. Notificamos que é proibido por lei a sua retenção, disseminação, distribuição, cópia ou uso sem expressa autorização do remetente. Opiniões pessoais do remetente não refletem, necessariamente, o ponto de vista da CETIP, o qual é divulgado somente por pessoas autorizadas. Warning: This message was sent for exclusive use of the addressees above identified, possibly containing information and or privileged/confidential documents whose content is protected by law. In case you have mistakenly received it, please notify the sender and delete it from your system. Be noticed that the law forbids the retention, dissemination, distribution, copy or use without express authorization from the sender. Personal opinions of the sender do not necessarily reflect CETIP's point of view, which is only divulged by authorized personnel. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question
Oh, yeah... size() is a method from MarkupContainer. /** * Get the number of children in this container. * * @return Number of children in this container */ public final int size() { return children_size(); } I don't know if for Repeaters would make sense to return how many items they contain. Probably not. -Original Message- From: Mark Daniel [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2008 6:35 PM To: users@wicket.apache.org Subject: Re: Newbie question Hi, Basically, getCart().getCheeses().size() != cartListView.size() On Wed, Dec 10, 2008 at 12:31 AM, Bruno Cesar Borges [EMAIL PROTECTED] wrote: I think you are talking about the 'viewSize' property of ListView. This indicates how many viewable items will be displayed within a ListView. -Original Message- From: Mark Daniel [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2008 6:23 PM To: users@wicket.apache.org Subject: Newbie question Hello all, I'm following the wicket in action book. I'm trying the cheese store in chapter 3. I was following along the code by reading a bit and coding a bit on my own. The code defining the ListView for the cheese cart is originally: add(new ListView(cart, new PropertyModel(this, cart.cheeses)) { ... } The way I ended up coding it was: add(new ListView(cart, getCart().getCheeses())) { ... } Which seems to be working fine, but If I click repeatedly fast on the 'add to cart' link, the ArrayList in session gets its size changed correctly when adding elements, but the ListView element size doesnt change accordingly. Basically, the list size keeps growing on each click, but the number of items in the ListView doesnt grow anymore. Any ideas whats wrong? Thanks. *** Atenção: Esta mensagem foi enviada para uso exclusivo do(s) destinatários(s) acima identificado(s), podendo conter informações e/ou documentos confidencias/privilegiados e seu sigilo é protegido por lei. Caso você tenha recebido por engano, por favor, informe o remetente e apague-a de seu sistema. Notificamos que é proibido por lei a sua retenção, disseminação, distribuição, cópia ou uso sem expressa autorização do remetente. Opiniões pessoais do remetente não refletem, necessariamente, o ponto de vista da CETIP, o qual é divulgado somente por pessoas autorizadas. Warning: This message was sent for exclusive use of the addressees above identified, possibly containing information and or privileged/confidential documents whose content is protected by law. In case you have mistakenly received it, please notify the sender and delete it from your system. Be noticed that the law forbids the retention, dissemination, distribution, copy or use without express authorization from the sender. Personal opinions of the sender do not necessarily reflect CETIP's point of view, which is only divulged by authorized personnel. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** Atenção: Esta mensagem foi enviada para uso exclusivo do(s) destinatários(s) acima identificado(s), podendo conter informações e/ou documentos confidencias/privilegiados e seu sigilo é protegido por lei. Caso você tenha recebido por engano, por favor, informe o remetente e apague-a de seu sistema. Notificamos que é proibido por lei a sua retenção, disseminação, distribuição, cópia ou uso sem expressa autorização do remetente. Opiniões pessoais do remetente não refletem, necessariamente, o ponto de vista da CETIP, o qual é divulgado somente por pessoas autorizadas. Warning: This message was sent for exclusive use of the addressees above identified, possibly containing information and or privileged/confidential documents whose content is protected by law. In case you have mistakenly received it, please notify the sender and delete it from your system. Be noticed that the law forbids the retention, dissemination, distribution, copy or use without express authorization from the sender. Personal opinions of the sender do not necessarily reflect CETIP's point of view, which is only divulged by authorized personnel. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getting page expired
What does userMap( userName ) returns? Make sure it is an object that implements serializable. -- View this message in context: http://www.nabble.com/getting-page-expired-tp20921513p20923466.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getting page expired
userMap is just a normal HashMap private final MapString, String userMap = new HashMapString, String(); I wonder if his problem is caused by WASP security somehow? Mathias P.W Nilsson wrote: What does userMap( userName ) returns? Make sure it is an object that implements serializable. -- View this message in context: http://www.nabble.com/getting-page-expired-tp20921513p20923527.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getting page expired
Are there any loggers in the class? When using private Logger logger = Logger.getLogger(this.getClass()); this might cause pag expired. If it is contained in a wicket web page. At least I know some of my collegues has got this a while ago. I'm not familiar with WASP so there might be someone else that can help you. -- View this message in context: http://www.nabble.com/getting-page-expired-tp20921513p20923599.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket integration with good charts api
Hi Steve, I only tried the code with wicket 1.4-x and java 6.x Have you tried building ofc4j yourself ? I did, because I wanted to install its javdoc and sources into my local maven repo. I downloaded the source and created this pom.xml to build it (I should ask the ofc4j devs if they would consider using maven) project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdofc4j/groupId artifactIdofc4j/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameofc4j/name descriptionOpen Flash Chart 2.x Library for Java/description licenses license nameGNU Lesser General Public License/name urlhttp://www.gnu.org/licenses/lgpl.html/url distributionrepo/distribution /license /licenses dependencies dependency groupIdcom.thoughtworks.xstream/groupId artifactIdxstream/artifactId version1.3/version /dependency /dependencies build resources resource filteringfalse/filtering directorysrc/main/resources/directory /resource resource filteringfalse/filtering directorysrc/main/java/directory includes include**/include /includes excludes exclude**/*.java/exclude /excludes /resource /resources testResources testResource filteringfalse/filtering directorysrc/test/java/directory includes include**/include /includes excludes exclude**/*.java/exclude /excludes /testResource /testResources plugins plugin inheritedtrue/inherited groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target debugtrue/debug optimizetrue/optimize /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration downloadSourcestrue/downloadSources /configuration /plugin !-- Upload sources for IDEs -- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-source-plugin/artifactId executions execution goals goaljar/goal /goals /execution /executions /plugin !-- Upload JavaDocs -- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId executions execution idattach-javadocs/id goals goaljar/goal /goals /execution /executions /plugin /plugins /build /project regards, Maarten On Tue, Dec 9, 2008 at 8:00 PM, shetc [EMAIL PROTECTED] wrote: I agree -- I'm using 5.0 but I guess ofc4j was compiled with 6 but not sure. -- View this message in context: http://www.nabble.com/Wicket-integration-with-good-charts-api-tp20322515p20921216.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question
you gave listview a list instance, but its probably not the same instance of list you are adding items to. that is why the original code uses a model to give listview the list. read the models chapter... -igor On Tue, Dec 9, 2008 at 12:23 PM, Mark Daniel [EMAIL PROTECTED] wrote: Hello all, I'm following the wicket in action book. I'm trying the cheese store in chapter 3. I was following along the code by reading a bit and coding a bit on my own. The code defining the ListView for the cheese cart is originally: add(new ListView(cart, new PropertyModel(this, cart.cheeses)) { ... } The way I ended up coding it was: add(new ListView(cart, getCart().getCheeses())) { ... } Which seems to be working fine, but If I click repeatedly fast on the 'add to cart' link, the ArrayList in session gets its size changed correctly when adding elements, but the ListView element size doesnt change accordingly. Basically, the list size keeps growing on each click, but the number of items in the ListView doesnt grow anymore. Any ideas whats wrong? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question
Hi Igor, I just changed one line the original source (in my original post), and built a war and deployed on tomcat, and got the behavior I mentioning. I think they both point to the same list. On Wed, Dec 10, 2008 at 1:12 AM, Igor Vaynberg [EMAIL PROTECTED]wrote: you gave listview a list instance, but its probably not the same instance of list you are adding items to. that is why the original code uses a model to give listview the list. read the models chapter... -igor On Tue, Dec 9, 2008 at 12:23 PM, Mark Daniel [EMAIL PROTECTED] wrote: Hello all, I'm following the wicket in action book. I'm trying the cheese store in chapter 3. I was following along the code by reading a bit and coding a bit on my own. The code defining the ListView for the cheese cart is originally: add(new ListView(cart, new PropertyModel(this, cart.cheeses)) { ... } The way I ended up coding it was: add(new ListView(cart, getCart().getCheeses())) { ... } Which seems to be working fine, but If I click repeatedly fast on the 'add to cart' link, the ArrayList in session gets its size changed correctly when adding elements, but the ListView element size doesnt change accordingly. Basically, the list size keeps growing on each click, but the number of items in the ListView doesnt grow anymore. Any ideas whats wrong? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question
By original source, I meant I just tried it on the book source code download. On Wed, Dec 10, 2008 at 1:20 AM, Mark Daniel [EMAIL PROTECTED] wrote: Hi Igor, I just changed one line the original source (in my original post), and built a war and deployed on tomcat, and got the behavior I mentioning. I think they both point to the same list. On Wed, Dec 10, 2008 at 1:12 AM, Igor Vaynberg [EMAIL PROTECTED]wrote: you gave listview a list instance, but its probably not the same instance of list you are adding items to. that is why the original code uses a model to give listview the list. read the models chapter... -igor On Tue, Dec 9, 2008 at 12:23 PM, Mark Daniel [EMAIL PROTECTED] wrote: Hello all, I'm following the wicket in action book. I'm trying the cheese store in chapter 3. I was following along the code by reading a bit and coding a bit on my own. The code defining the ListView for the cheese cart is originally: add(new ListView(cart, new PropertyModel(this, cart.cheeses)) { ... } The way I ended up coding it was: add(new ListView(cart, getCart().getCheeses())) { ... } Which seems to be working fine, but If I click repeatedly fast on the 'add to cart' link, the ArrayList in session gets its size changed correctly when adding elements, but the ListView element size doesnt change accordingly. Basically, the list size keeps growing on each click, but the number of items in the ListView doesnt grow anymore. Any ideas whats wrong? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getting page expired
I checked and everything is serializable, I tried stepping thru the code but I don't see where in wicket is the behavior to choose the page expiration page Mathias P.W Nilsson wrote: Are there any loggers in the class? When using private Logger logger = Logger.getLogger(this.getClass()); this might cause pag expired. If it is contained in a wicket web page. At least I know some of my collegues has got this a while ago. I'm not familiar with WASP so there might be someone else that can help you. -- View this message in context: http://www.nabble.com/getting-page-expired-tp20921513p20924363.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TinyMCE init method rendering twice
I downloaded the latest snapshot from the wicket-stuff repository and did the setStatusbarLocation(null) and that fixed that problem. However, now I have three toolbars in the top instead of one. All of my buttons are on the top toolbar but underneath it is two others that only have separators in them so it looks pretty weird. Here is my custom settings class: public class MyTinyMceSettings extends TinyMCESettings { private static final long serialVersionUID = 1L; public MyTinyMceSettings () { super(TinyMCESettings.Theme.advanced); add(TinyMCESettings.bullist, TinyMCESettings.Toolbar.first, TinyMCESettings.Position.after); add(TinyMCESettings.numlist, TinyMCESettings.Toolbar.first, TinyMCESettings.Position.after); disableButton(TinyMCESettings.styleselect); disableButton(TinyMCESettings.sub); disableButton(TinyMCESettings.sup); disableButton(TinyMCESettings.charmap); disableButton(TinyMCESettings.image); disableButton(TinyMCESettings.anchor); disableButton(TinyMCESettings.help); disableButton(TinyMCESettings.code); disableButton(TinyMCESettings.link); disableButton(TinyMCESettings.unlink); disableButton(TinyMCESettings.formatselect); disableButton(TinyMCESettings.indent); disableButton(TinyMCESettings.outdent); disableButton(TinyMCESettings.undo); disableButton(TinyMCESettings.redo); disableButton(TinyMCESettings.cleanup); disableButton(TinyMCESettings.hr); disableButton(TinyMCESettings.visualaid); disableButton(TinyMCESettings.separator); disableButton(TinyMCESettings.formatselect); disableButton(TinyMCESettings.removeformat); setToolbarAlign(TinyMCESettings.Align.left); setToolbarLocation(TinyMCESettings.Location.top); setStatusbarLocation(null); setVerticalResizing(true); setHorizontalResizing(true); } } Any idea of how to remove those toolbars? Thanks, Josh pointbreak+wicketstuff wrote: You seem to be using an old version of tinymce. AFAIK, the latest version does not use mode: specific_textareas, but mode: exact in the tinyMCE.init call. Update to the latest version, and you should be fine I guess. You can remove the statusbar via TinyMceSettings.setStatusbarLocation(null) (which by the way is the default). See http://wiki.moxiecode.com/index.php/TinyMCE:Configuration#Layout for a comprehensive list and documentation on all available options. On Mon, 8 Dec 2008 10:45:40 -0800 (PST), jchappelle [EMAIL PROTECTED] wrote: I have a TinyMCE component in one of my pages and I am trying to remove the Path: toolbar at the bottom. I have noticed that the init method renders on my page twice. I only have one textarea on my page and I am adding a custom TinyMceBehavior to it. I am trying to disable the visualaid button(i assume that is how you remove the Path: at the bottom). On one of the init methods rendered it has that button disabled and on the other one it doesn't. I wonder if that could be causing it. Here is part of the html rendered: tinyMCE.init({ mode : specific_textareas, editor_selector : 70fa4bd0-497a-4eb3-8de5-a3fbc13bedf3, theme : advanced, language : en, plugins : contextmenu, save, paste, searchreplace, insertdatetime, preview, zoom, table, emotions, iespell, flash, print, directionality, fullscreen, theme_advanced_buttons1_add_before : save, newdocument, separator, theme_advanced_buttons1_add : fontselect, fontsizeselect, theme_advanced_buttons2_add_before: cut, copy, paste, pastetext, pasteword, separator, search, replace, separator, theme_advanced_buttons2_add : separator, inserttime, insertdate, separator, preview, zoom, separator, forecolor, backcolor, theme_advanced_buttons3_add_before : tablecontrols, theme_advanced_buttons3_add : emotions, iespell, flash, separator, print, separator, ltr, rtl, separator, fullscreen, theme_advanced_toolbar_location : top, theme_advanced_statusbar_location : bottom, theme_advanced_toolbar_align : left, theme_advanced_resizing : true, theme_advanced_resize_horizontal : false, plugin_insertdate_timeFormat : Time: %H:%M, plugin_insertdate_dateFormat : Date: %m-%d-%Y, fullpage_default_xml_pi : false }); /*--]]*//script script type=text/javascript id=init!--/*--![CDATA[/*!--*/ tinyMCE.init({ mode : specific_textareas, editor_selector : 679c2b60-3c42-47e0-986e-3d653f7a28d6, theme : advanced, language : en, theme_advanced_disable : styleselect, sub, sup, charmap, image, anchor, help, code, link, unlink, formatselect, bullist, numlist, indent, outdent, undo, redo, cleanup, hr, visualaid, separator, removeformat, theme_advanced_buttons1_add : bullist,
Re: LoadableDetachableModel in Listview
jwcarman wrote: I like shadow much better. He was an awesome hedgehog hey ;) -- View this message in context: http://www.nabble.com/LoadableDetachableModel-in-Listview-tp20894115p20926225.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: LoadableDetachableModel in Listview
Well... as far as validators are concerned - there is some murky water. Depending on your design, the services/domain layer should include object validation - this allows you to expose services. The trick is getting these validators to be shared by the view layer AND the service layer. I'm not sure if a technology exists to bridge this gap. Spring validators are close, but do not go into the realm of per field validation - only object validation. I've written some code to bridge this in a usable fashion - but it's not perfect. I like wickets handling of field validation - but am not sure its appropriate at a domain/service layer level. Handling of the validation decision really boils down to: 1/ is my app based on wicket - all interfacing with the app is via wicket. -- this makes it easy. 2/ or is wicket just _A_ view - and there are other means to access/write the data. -- this makes it harder. Rgds Ned Martijn Dashorst wrote: Why? The model is nothing more than a locator, a bridge if you like between your data stuff and the view layer. There is no reason why it shouldn't be able to work with the view component. There is absolutely no reason why one should get all anal about separating classes that live in the user interface layer. It is not like wicket components are bleading into your domain layer... Martijn On Mon, Dec 8, 2008 at 10:38 PM, James Carman [EMAIL PROTECTED] wrote: Does anyone use a custom validator to implement this type of stuff? I'm not crazy about a model implementing this functionality, especially during a get operation. Also, your model has to be aware of your view (the call to the form's clearInput() method). I don't know. Something about it just doesn't seem right to me -- View this message in context: http://www.nabble.com/LoadableDetachableModel-in-Listview-tp20894115p20926367.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TinyMCE init method rendering twice
Yes, it looks like TinyMceSettings does not have methods to remove the toolbars. I'll add those as soon as TeamCity deploys jars again... But you could work around that by adding a method overload for toJavaScript() to your custom MyTinyMceSettings, something like: public String toJavaScript(Mode mode, CollectionComponent components) { StringBuffer buffer = new StringBuffer(super.toJavaScript(mode, components)); buffer.append(,\n\ttheme_advanced_buttons2: \\); buffer.append(,\n\ttheme_advanced_buttons3: \\); return buffer.toString(); } Then you can also remove most of your disableButton calls. Or use the simple theme instead. On Tue, 9 Dec 2008 14:06:54 -0800 (PST), jchappelle [EMAIL PROTECTED] wrote: I downloaded the latest snapshot from the wicket-stuff repository and did the setStatusbarLocation(null) and that fixed that problem. However, now I have three toolbars in the top instead of one. All of my buttons are on the top toolbar but underneath it is two others that only have separators in them so it looks pretty weird. Here is my custom settings class: public class MyTinyMceSettings extends TinyMCESettings { private static final long serialVersionUID = 1L; public MyTinyMceSettings () { super(TinyMCESettings.Theme.advanced); add(TinyMCESettings.bullist, TinyMCESettings.Toolbar.first, TinyMCESettings.Position.after); add(TinyMCESettings.numlist, TinyMCESettings.Toolbar.first, TinyMCESettings.Position.after); disableButton(TinyMCESettings.styleselect); disableButton(TinyMCESettings.sub); disableButton(TinyMCESettings.sup); disableButton(TinyMCESettings.charmap); disableButton(TinyMCESettings.image); disableButton(TinyMCESettings.anchor); disableButton(TinyMCESettings.help); disableButton(TinyMCESettings.code); disableButton(TinyMCESettings.link); disableButton(TinyMCESettings.unlink); disableButton(TinyMCESettings.formatselect); disableButton(TinyMCESettings.indent); disableButton(TinyMCESettings.outdent); disableButton(TinyMCESettings.undo); disableButton(TinyMCESettings.redo); disableButton(TinyMCESettings.cleanup); disableButton(TinyMCESettings.hr); disableButton(TinyMCESettings.visualaid); disableButton(TinyMCESettings.separator); disableButton(TinyMCESettings.formatselect); disableButton(TinyMCESettings.removeformat); setToolbarAlign(TinyMCESettings.Align.left); setToolbarLocation(TinyMCESettings.Location.top); setStatusbarLocation(null); setVerticalResizing(true); setHorizontalResizing(true); } } Any idea of how to remove those toolbars? Thanks, Josh pointbreak+wicketstuff wrote: You seem to be using an old version of tinymce. AFAIK, the latest version does not use mode: specific_textareas, but mode: exact in the tinyMCE.init call. Update to the latest version, and you should be fine I guess. You can remove the statusbar via TinyMceSettings.setStatusbarLocation(null) (which by the way is the default). See http://wiki.moxiecode.com/index.php/TinyMCE:Configuration#Layout for a comprehensive list and documentation on all available options. On Mon, 8 Dec 2008 10:45:40 -0800 (PST), jchappelle [EMAIL PROTECTED] wrote: I have a TinyMCE component in one of my pages and I am trying to remove the Path: toolbar at the bottom. I have noticed that the init method renders on my page twice. I only have one textarea on my page and I am adding a custom TinyMceBehavior to it. I am trying to disable the visualaid button(i assume that is how you remove the Path: at the bottom). On one of the init methods rendered it has that button disabled and on the other one it doesn't. I wonder if that could be causing it. Here is part of the html rendered: tinyMCE.init({ mode : specific_textareas, editor_selector : 70fa4bd0-497a-4eb3-8de5-a3fbc13bedf3, theme : advanced, language : en, plugins : contextmenu, save, paste, searchreplace, insertdatetime, preview, zoom, table, emotions, iespell, flash, print, directionality, fullscreen, theme_advanced_buttons1_add_before : save, newdocument, separator, theme_advanced_buttons1_add : fontselect, fontsizeselect, theme_advanced_buttons2_add_before: cut, copy, paste, pastetext, pasteword, separator, search, replace, separator, theme_advanced_buttons2_add : separator, inserttime, insertdate, separator, preview, zoom, separator, forecolor, backcolor, theme_advanced_buttons3_add_before : tablecontrols, theme_advanced_buttons3_add : emotions, iespell, flash, separator, print, separator, ltr, rtl, separator, fullscreen,
Re: Wicket integration with good charts api
Hi Maarten, The pom.xml worked great! Thanks very much. Had to grab some of my colleagues to show them your Open Flash Charts / Wicket implementation. As usual, they were all mumbling Here comes the Wicket fanatic again :-) Anyway, they were very impressed. Steve -- View this message in context: http://www.nabble.com/Wicket-integration-with-good-charts-api-tp20322515p20927556.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using Wicket Pages for an Internal Request
Hi, very new to Wicket and this list... so I'm wondering if anyone can tell me if the following is possible and approx. how-to? Overview: we have a wicket page that generates some html+javascript etc. We want to render this page from within the application (into a String) and send it to some other web service (such as Facebook). We currently use httpclient to make a http request back to our server and take the response and munge it. The overhead of the extra request is an unsatisfactory load on our servers. Is there a way to make to mimic an 'internal' servlet/web request and take that response (or at least the rendering of the Page) but do not affect the state of the current (external) http request? We tried using MockServlet with the WicketFilter but when the intenral request was finished it seemed to alter the state of the original request (such that the session went away and the response was invalid - I think the original response had been generated from the contents of the mock request/response). Even if this could be fixed...theres more: An additional constraint is to call this 'internal request' from anywhere in the code and not necessarily within a http request (i.e., from a Quartz thread). So, we may not have any WicketApplication ...If it is the case that we can only gert our hands on the WicketApplication from a thread that is part of a http request, then the quartz thread willnot have acces to WicketApplication (I am unsure about this). Looking around in the docs, I came across the RequestCycle and wondering if thats how I can do this? Any pointer for this would be appreciated - it would be a shame not to be able to use Wicket for this internal rendering. Mike
Re: LoadableDetachableModel in Listview
Indeed. He is a mean competitor on Mario Sonic at the Olympic Games! :) On Tue, Dec 9, 2008 at 6:41 PM, Ned Collyer [EMAIL PROTECTED] wrote: jwcarman wrote: I like shadow much better. He was an awesome hedgehog hey ;) -- View this message in context: http://www.nabble.com/LoadableDetachableModel-in-Listview-tp20894115p20926225.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Creating a table from a bean collection
Hi all! I have a bean collection and I would like to show some of it propertys on a table. How can I do that?All examples with repeaters use a ISortDataProvider and such stuff, is there a simple way?Can't I just use the java swing DefaultTableModel for that? Thanks in advance, Wadi
Re: Using Wicket Pages for an Internal Request
Search around in the mail archives - the typical solution involves using WicketTester. On Tue, Dec 9, 2008 at 8:06 PM, Mike Papper [EMAIL PROTECTED] wrote: Hi, very new to Wicket and this list... so I'm wondering if anyone can tell me if the following is possible and approx. how-to? Overview: we have a wicket page that generates some html+javascript etc. We want to render this page from within the application (into a String) and send it to some other web service (such as Facebook). We currently use httpclient to make a http request back to our server and take the response and munge it. The overhead of the extra request is an unsatisfactory load on our servers. Is there a way to make to mimic an 'internal' servlet/web request and take that response (or at least the rendering of the Page) but do not affect the state of the current (external) http request? We tried using MockServlet with the WicketFilter but when the intenral request was finished it seemed to alter the state of the original request (such that the session went away and the response was invalid - I think the original response had been generated from the contents of the mock request/response). Even if this could be fixed...theres more: An additional constraint is to call this 'internal request' from anywhere in the code and not necessarily within a http request (i.e., from a Quartz thread). So, we may not have any WicketApplication ...If it is the case that we can only gert our hands on the WicketApplication from a thread that is part of a http request, then the quartz thread willnot have acces to WicketApplication (I am unsure about this). Looking around in the docs, I came across the RequestCycle and wondering if thats how I can do this? Any pointer for this would be appreciated - it would be a shame not to be able to use Wicket for this internal rendering. Mike -- Jeremy Thomerson http://www.wickettraining.com
Re: Using Wicket Pages for an Internal Request
Hi, thanks for that - I did search the archives and found nothing...is there a name for this that you know of - such that I could use it in the search? I think I was calling it internal redirect. Mike On Dec 9, 2008, at 10:16 PM, Jeremy Thomerson wrote: Search around in the mail archives - the typical solution involves using WicketTester. On Tue, Dec 9, 2008 at 8:06 PM, Mike Papper [EMAIL PROTECTED] wrote: Hi, very new to Wicket and this list... so I'm wondering if anyone can tell me if the following is possible and approx. how-to? Overview: we have a wicket page that generates some html +javascript etc. We want to render this page from within the application (into a String) and send it to some other web service (such as Facebook). We currently use httpclient to make a http request back to our server and take the response and munge it. The overhead of the extra request is an unsatisfactory load on our servers. Is there a way to make to mimic an 'internal' servlet/web request and take that response (or at least the rendering of the Page) but do not affect the state of the current (external) http request? We tried using MockServlet with the WicketFilter but when the intenral request was finished it seemed to alter the state of the original request (such that the session went away and the response was invalid - I think the original response had been generated from the contents of the mock request/response). Even if this could be fixed...theres more: An additional constraint is to call this 'internal request' from anywhere in the code and not necessarily within a http request (i.e., from a Quartz thread). So, we may not have any WicketApplication ...If it is the case that we can only gert our hands on the WicketApplication from a thread that is part of a http request, then the quartz thread willnot have acces to WicketApplication (I am unsure about this). Looking around in the docs, I came across the RequestCycle and wondering if thats how I can do this? Any pointer for this would be appreciated - it would be a shame not to be able to use Wicket for this internal rendering. Mike -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jsessionid 1.4-m1 vs 1.4-rc1
Have there been any changes to how jsessionid might be handled in rc1? I never seen this error before, but when I upgraded to rc1 I get it most of the time when starting a new session. I'm using the HybridUrlCodingStrategy when I hit something that should be mapped, I get directed to: http://localhost:/;jsessionid=a7m8jcgo54ae?wicket:interface=:1 and get a 404 any thoughts? thanks ryan
Switchable panel via select ajax
Hi guys, I was wondering of a good strategy of making a panel that is changed via ajax by a select field. I was aiming at easy maintainability of the code, and thought of the following. +-+-++---+ |typeOfPan|V|| | +-+-+| Panel | | | +---+ I add an Ajax Behaviour to typeOfPan. The target of updating will contain the second panel. I have several versions of the Panel - for example one with text input fields, several with selects and probably more in the future. In the page I add a normal Panel. However I overload its onComponentTag, onComponentTagBody, renderHead and delegate them to those of the real panel that has the real components. I switch the real panel based on the selection of typeOfPan. All of the panels are constructed with the same id, however, just one of them is added to the page. Will such a strategy actually work? I will be experimenting today, however two things can be tricky - the id's in html of the real panels - since they have never been added properly to the page and the second is the real html that will be used to render the panel. Will that be the one from the delegating panel or that of the real implementations? I'd really like to separate the panels - each with its own code and html and be able to switch between them, so if there is a better (or in fact other working way) comments would be welcome. Kind regards: al_shopov - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]