How discover the caller page (wicket 1.2.x)
Dear Wicket gurus, Suppose I have two Wicket page, let's say page A and B, with the following simple navigation rule A -- B using something like A. setResponsePage( new B() ) At compiles time A know B , but B does not know A. It there a way to get - at runtime - from page B the reference to caller A page instance? Basically I'm trying to implement something like the HTTP referer mechanism. Any ideas ? Thanks, Paolo
Re: How discover the caller page (wicket 1.2.x)
Why do you want to avoid this? If you're going to be using the previous page in your new page (for example, to provide a link back to it) then you need a reference to it. You may as well pass this in the constructor. Alastair Paolo Di Tommaso wrote: Yes, but I would to avoid this, basically I'm looking for a way to discover dinamically the calling wicket page instance (if exists ..) Thanks, Paolo On 8/3/07, Gerolf Seitz [EMAIL PROTECTED] wrote: you could have a constructor B(Page referrer) and pass the referrer page as a parameter like: this.setResponsePage(new B(this)); hth, gerolf On 8/3/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote: Dear Wicket gurus, Suppose I have two Wicket page, let's say page A and B, with the following simple navigation rule A -- B using something like A. setResponsePage( new B() ) At compiles time A know B , but B does not know A. It there a way to get - at runtime - from page B the reference to caller A page instance? Basically I'm trying to implement something like the HTTP referer mechanism. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Feedback is not dispayled in ajax submit
and not forget to call feedback.setOutputMarkupId(true) On 8/3/07, Damian Mendez Romera [EMAIL PROTECTED] wrote: You must override the onError method and add a target.addComponent(feedback) :) Gohan wrote: I cannot seem to get the Feedback panel to be displayed on a Form submit. I have a custom form component that extends Form to which I'm adding an AjaxSubmitButton using: add(new AjaxSubmitButton(submit, this) { private static final long serialVersionUID = 4557185412512174512L; @Override protected void onSubmit(AjaxRequestTarget target, Form form) { fromDate = (Date) fromDateField.getConvertedInput(); toDate = (Date) toDateField.getConvertedInput(); target.addComponent(nbrOfAuthenticationsChart); target.addComponent(feedbackPanel); } }); The feedback panel is added using (it's located outside the form in another component): add(feedbackPanel = new FeedbackPanel(feedback)); feedbackPanel.setOutputMarkupId(true); I've also added an AjaxFormValidatingBehavior to the form: AjaxFormValidatingBehavior.addToAllFormComponents(this, onclick); and I'm using a special form validator that extends AbstractFormValidator that I've also added to the custom form. The ajax submission works when I press the submit button but there are no form errors displayed if there are any errors. The problem seem to be that the feedback panel is never displayed and I cannot seem to figure out why. I'm using Wicket 1.2.6. I've looked in the example at http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.FormPage but that example doesn't seem to work at all. Could anyone give me a clue? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Wicket joins the Apache Software Foundation as Apache Wicket Apache Wicket 1.3.0-beta2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DateField with a Calendar
Hi everyone! I just migrated to 1.3.0-beta2 from 1.2.6, and I'm trying to replace DatePicker's with DateField's, but I'm having a problem because the backbean of the CompoundPropertyModel of the containing form uses a Calendar field, not a Date one, so I'm receiving a conversion exception.. I have a custom Converter in place that would handle the conversion, but it doesn't get called, because PropertyResolverConverter calls it only when there's a String involved in the conversion, while the DateField would need a Date to Calendar conversion.. I thought of subclassing DateField and handling the conversion overriding setDate, but the date field inside DateField is private.. Any hint on what I could try? Many thanks for your time! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Opening ModalWindows
Users are able to open multiple ModalWindows by clicking a link more than once. To prevent this, the mask should be applied in the link's onclick. What's the easiest way for me to achieve that? Ideally, the entire ModalWindow should open before the server call. Then the server call would load the content. If we could achieve this, applications using ModalWindows would appear to respond much better. Michael Day - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Obfuscating URLs in 1.3 - Can it be done?
Thanks for the tip...learn something new every day. BTW...the doc is has been updated. -- View this message in context: http://www.nabble.com/Obfuscating-URLs-in-1.3---Can-it-be-done--tf4208915.html#a11985633 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: Feedback is not dispayled in ajax submit
You must override the onError method and add a target.addComponent(feedback) :) Gohan wrote: I cannot seem to get the Feedback panel to be displayed on a Form submit. I have a custom form component that extends Form to which I'm adding an AjaxSubmitButton using: add(new AjaxSubmitButton(submit, this) { private static final long serialVersionUID = 4557185412512174512L; @Override protected void onSubmit(AjaxRequestTarget target, Form form) { fromDate = (Date) fromDateField.getConvertedInput(); toDate = (Date) toDateField.getConvertedInput(); target.addComponent(nbrOfAuthenticationsChart); target.addComponent(feedbackPanel); } }); The feedback panel is added using (it's located outside the form in another component): add(feedbackPanel = new FeedbackPanel(feedback)); feedbackPanel.setOutputMarkupId(true); I've also added an AjaxFormValidatingBehavior to the form: AjaxFormValidatingBehavior.addToAllFormComponents(this, onclick); and I'm using a special form validator that extends AbstractFormValidator that I've also added to the custom form. The ajax submission works when I press the submit button but there are no form errors displayed if there are any errors. The problem seem to be that the feedback panel is never displayed and I cannot seem to figure out why. I'm using Wicket 1.2.6. I've looked in the example at http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.FormPage but that example doesn't seem to work at all. Could anyone give me a clue? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DropDown within ModalWindow does not work in Camino
In that case it's quite possible that it is camino's fault. Maybe the dropdowns just don't work if they are placed on something with position:absolute/fixed ? -Matej On 8/3/07, Michael Day [EMAIL PROTECTED] wrote: I am cross-posting this on the new list. I also found that Yahoo Mail has a ModalWindow exhibiting the exact same problem in Camino. On Aug 2, 2007, at 9:46 AM, Michael Day wrote: 1.2.5 and 1.2.6 On Aug 1, 2007, at 6:58 PM, Matej Knopp wrote: It's weird, what version of wicket are you testing it with? -Matej On 8/2/07, Michael Day [EMAIL PROTECTED] wrote: That one works, but it's a page. Maybe that's why? I'm using a panel. On Aug 1, 2007, at 6:16 PM, Eelco Hillenius wrote: Works fine for me. Btw, the modal windows example in wicket-examples/ajax has a dropdown in it (the AM/PM field of the first modal window). Eelco On 7/31/07, Michael Day [EMAIL PROTECTED] wrote: DropDown within ModalWindow does not work in Camino. It displays, but nothing happens when I click it to expand. Has anybody else experienced this? -- - -- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user --- - -- --- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user - - --- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamically adding tree nodes upon selection
Hi Doug, First I would make sure your TreeNode implementation creates children lazily. You probably should only create children when children() is actually called and provide logic for isLeaf and getChildCount() that don't require creating the children. You can create the initial state for the tree by overrriding newTreeState(). I usually do something like this: protected ITreeState newTreeState() { ITreeState state = new DefaultTreeState(); state.collapseAll(); TreeModel treeModel = (TreeModel) getModelObject(); OutLineNode root = (OutLineNode) treeModel.getRoot(); if(null != childNodeExpansionStrategy) { childNodeExpansionStrategy.expandNode(root, state); } else { if (log.isInfoEnabled()) { log.info(childNodeExpansionStrategy is NULL. expanding root only); } state.expandNode(root); } return state; } where childNodeExpansionStrategy holds the logic to determine the level to expand to, and recurses through the nodes to get there, calling state.expandNode(node) until it does. best, jim On 8/3/07, Doug Leeper [EMAIL PROTECTED] wrote: I would like to dynamically add tree nodes to an AbstractTree instead of loading the entire tree up front. Not sure how do this. I thought I would be able to override nodeExpanded(TreeNode) and check if the node had been loaded ...if not then load 1 level deep. However, all ITreeStateListeners are final in AbstractTree. Is there a way to do this without creating my own version of AbstractTree? Better yet...is there an example of this...it could mimic the file structure of your computer. Thanks - Doug -- View this message in context: http://www.nabble.com/Dynamically-adding-tree-nodes-upon-selection-tf4212940.html#a11984616 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: DropDown within ModalWindow does not work in Camino
Yep, Camino is probably at fault. I will just use Safari instead, but I did want to document the problem just in case a workaround exists. On Aug 3, 2007, at 11:12 AM, Matej Knopp wrote: In that case it's quite possible that it is camino's fault. Maybe the dropdowns just don't work if they are placed on something with position:absolute/fixed ? -Matej On 8/3/07, Michael Day [EMAIL PROTECTED] wrote: I am cross-posting this on the new list. I also found that Yahoo Mail has a ModalWindow exhibiting the exact same problem in Camino. On Aug 2, 2007, at 9:46 AM, Michael Day wrote: 1.2.5 and 1.2.6 On Aug 1, 2007, at 6:58 PM, Matej Knopp wrote: It's weird, what version of wicket are you testing it with? -Matej On 8/2/07, Michael Day [EMAIL PROTECTED] wrote: That one works, but it's a page. Maybe that's why? I'm using a panel. On Aug 1, 2007, at 6:16 PM, Eelco Hillenius wrote: Works fine for me. Btw, the modal windows example in wicket-examples/ajax has a dropdown in it (the AM/PM field of the first modal window). Eelco On 7/31/07, Michael Day [EMAIL PROTECTED] wrote: DropDown within ModalWindow does not work in Camino. It displays, but nothing happens when I click it to expand. Has anybody else experienced this? -- - -- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user - -- - -- --- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user -- -- - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user --- -- - --- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
slf4j Logger not serializable?
Hi, Seeing that Wicket depends on SLF4J got me interested - so I just tried to switch to it from commons-logging. My pages / panels extend from a base class that holds a org.slf4j.Logger instance. But now I get a whole lot of serialization problems in the log: = 2007-08-03 19:29:28,527 [FilePageSerializingThread-jtrac-app] ERROR [ org.apache.wicket.util.lang.Objects] - Error serializing object class info.jtrac.wicket.DashboardPage [object=[Page class = info.jtrac.wicket.DashboardPage, id = 5, version = 0]] org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:Unable to serialize class: org.slf4j.impl.Log4jLoggerAdapter Field hierarchy is: 5 [class=info.jtrac.wicket.DashboardPage, path=5] private java.lang.Object org.apache.wicket.MarkupContainer.children[class=[ Lorg.apache.wicket.Component;] private java.lang.Object org.apache.wicket.MarkupContainer.children[0] [class=info.jtrac.wicket.HeaderPanel, path=5:header] protected final org.slf4j.Logger info.jtrac.wicket.BasePanel.logger[class= org.slf4j.impl.Log4jLoggerAdapter] - field that is not serializable at org.apache.wicket.util.io.SerializableChecker.check( SerializableChecker.java:347) = Is this expected? Or is this something I need to change? Thanks, Peter.
Re: slf4j Logger not serializable?
Peter Thomas wrote: Seeing that Wicket depends on SLF4J got me interested - so I just tried to switch to it from commons-logging. My pages / panels extend from a base class that holds a org.slf4j.Logger instance. But now I get a whole lot of serialization problems in the log: [...] Make your loggers static final instead of private member instances. Regards, Al -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How discover the caller page (wicket 1.2.x)
Fabio Fioretti wrote: On 8/3/07, Al Maw [EMAIL PROTECTED] wrote: If you're going to be using the previous page in your new page (for example, to provide a link back to it) then you need a reference to it. You may as well pass this in the constructor. But is it the only way to do this really? An automatic mechanism to get the caller page without passing it in the constructor would be cool. Does it exist? Why would it be cool? The method required at the moment is far more explicit and obvious. In particular, it's just plain Java and not some magic. If have some automatic mechanism it would need to cope with: - What happens when you do redirects? Particularly, what if you throw RestartResponseException() in a page's constructor? - What if you came via a stateless page? - What happens when you access pages from two page maps simultaneously? - How do you make sure that the previous page that you're going to use in your new page instance doesn't disappear out of the page map stack because no one has used it recently and no one has a reference to it any more? That said, if you really want to you could implement this yourself in any one of a number of ways. For example, you could keep the last rendered Page instance in a custom Session and have a base page class of yours call yourSession.setLastRendered(this) in its onDetach() method. There may be race conditions if people are browsing pages in two tabs at once in different page maps, but you'll probably never notice them. Or you could do something similar but with a ThreadLocal you can set in a custom RequestCycle. All of this is really complex and unobvious compared to just passing the page in in the constructor, which is reliable, easy and simple. So, err, why don't you just do that? Regards, Al -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DateValidator message data customisation
Hi, I have 2 problems with DateValidator' error messages. I understand how to configure the text message for validation error (eg : xxx must be between {min} and {max}), but my problems are with the value of dates minimum and maximum, that are allways displayed in the EN locale style and are too verbose. For example it displays must be between Sun Dec 31 18:59:48 CET 1979 and ..., and I would like to display must be between 31/12/1979 and ... Is it possible to change the format of values in the IValidators messages ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: slf4j Logger not serializable?
On 8/3/07, Al Maw [EMAIL PROTECTED] wrote: Peter Thomas wrote: Seeing that Wicket depends on SLF4J got me interested - so I just tried to switch to it from commons-logging. My pages / panels extend from a base class that holds a org.slf4j.Logger instance. But now I get a whole lot of serialization problems in the log: [...] Make your loggers static final instead of private member instances. Regards, Al Thanks Al, that fixed it.
Re: DateField with a Calendar
a quick workaround, although maybe not a proper solution would be the following: ... // somewhere in constructor form.add(new DateField(myId, new PropertyModel(this, calendarDate))); ... } private void setCalendarDate(Date date) { myCalendar.setTime(date); } private Date getCalendarDate() { return myCalendar.getTime(); } On 8/3/07, Federico Fanton [EMAIL PROTECTED] wrote: Hi everyone! I just migrated to 1.3.0-beta2 from 1.2.6, and I'm trying to replace DatePicker's with DateField's, but I'm having a problem because the backbean of the CompoundPropertyModel of the containing form uses a Calendar field, not a Date one, so I'm receiving a conversion exception.. I have a custom Converter in place that would handle the conversion, but it doesn't get called, because PropertyResolverConverter calls it only when there's a String involved in the conversion, while the DateField would need a Date to Calendar conversion.. I thought of subclassing DateField and handling the conversion overriding setDate, but the date field inside DateField is private.. Any hint on what I could try? Many thanks for your time! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Opening ModalWindows
I just updated to 1.3 to test. Same problem persists. On Aug 3, 2007, at 11:15 AM, Matej Knopp wrote: This should be already fixed in current 1.3. -Mate On 8/3/07, Michael Day [EMAIL PROTECTED] wrote: Users are able to open multiple ModalWindows by clicking a link more than once. To prevent this, the mask should be applied in the link's onclick. What's the easiest way for me to achieve that? Ideally, the entire ModalWindow should open before the server call. Then the server call would load the content. If we could achieve this, applications using ModalWindows would appear to respond much better. Michael Day - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is this even possible...?
this is pretty simple, but there are a few things to consider a) the obvious: create a form and put the pageable listview into it. instead of adding labels add textfields for each row. b) call setreuseitems(true) on the pageable listview c) override links in the navigator with submit links i think that should be it -igor On 8/3/07, James Crosthwaite [EMAIL PROTECTED] wrote: Hi all, I'm relatively new to Wicket and i have a query about creating an editable list. My query is simply, is it even possible? Basically i have a list of objects, currently displayed in a PageableListView, that i want the user to be able to edit. They should be able to edit any of the rows and then click a button to save all changes that they may have made to each row. I've tried using DataBinder which didn't help as i could only edit one object at a time, however i cannot now work out how to achieve this or even if it is possible! If anyone has any ideas that would get me started i would be most grateful! Many thanks in advance -- View this message in context: http://www.nabble.com/Is-this-even-possible...--tf4213555.html#a11986760 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: Link on one frame modifying component on another
Actually, you are overcomplicated things a bit i guess. For the top frame, you don't need wicket at all, you just put there regular link with javascript in onclick handler. That will invoke parent.nav.clickNextLink(), which will in turn invoke the onclick handler of wicket component (this is just a slight indirection so that the top layer doesn't have to know exact id of the wicket link). And the onclick handler will update the tree and content frame. -Matej On 8/3/07, Watter [EMAIL PROTECTED] wrote: Matej Knopp-2 wrote: Hi, i think it should be possible to accomplish. Put the next/previous links to the page with the tree. Hide them (e.g. putting inside div style=display:none/ Then on the top page in your prev/next links (in the javascript handler) you need to find the corresponding link element in the tree frame and call it's onclick handler. -Matej Ha! That's clever! :) Just to be sure I understand. You are suggesting I modify the links in my header frame to not actually do anything except call hidden next and previous links in the navigation frame. Is that right? So that would seem to require javascript in those header next/previous links. As I'm sure you can tell, I'm still pretty new when it comes to Wicket. What would be the appropriate way to add that javascript? I've read hear and there that typically that kind of thing is added via Behaviors. Is that right? Or is it preferable to do something like: add(new AjaxLink(nextLink) { public void onClick(final AjaxRequestTarget target) { target.appendJavascript(parent.nav.clickNextLink()); } }); Matt -- View this message in context: http://www.nabble.com/Link-on-one-frame-modifying-component-on-another-tf4213856.html#a11989365 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: wicket-event.js returning unreadable
I'm still having trouble getting wicket-event.js to return anything but junk. Even though I thought it might have something to do with compression, I doubt that now, because I have my homegrown compression filter turned off. Does anyone know what this error means: DEBUG 2007-08-03 15:42:34,452 resource.UrlResourceStream (init:92) - cannot convert url: code-source:/C:/oc4j10132/j2ee/home/applications/mcir/wicket-1.3.0-beta2.jar!/org/apache/wicket/markup/html/wicket-event.js to file (URI scheme is not file), falling back to the inputstream for polling I'm hoping it will give me some clue as to what is going on, but maybe it's just another by-product of the problem. Any suggestions were be great. Thanks. Joel -- View this message in context: http://www.nabble.com/wicket-event.js-returning-unreadable-tf4158501.html#a11989377 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-event.js returning unreadable
Well, oracle app server doesn't have a good reputation exactly for messing the output. Try disabling the compression of wicket resources completely, Application.getResourceSettings.setDisableGZipCompression(true). -Matej On 8/3/07, Martijn Dashorst [EMAIL PROTECTED] wrote: Seems like Oracle application server, version 10.1, 32 bits? Apparently the classloader for the app server converts the getClass().getResourceAsStream(wicket-event.js) to use a code-source: protocol. I'm not sure, but it sounds like a security constraint in your setup. Martijn On 8/3/07, Matej Knopp [EMAIL PROTECTED] wrote: I doubt this is related. What app server are you using? What exactly does it mean junk? Wha headers are set on ouput? What browser are you using? -Matej On 8/3/07, hillj2 [EMAIL PROTECTED] wrote: I'm still having trouble getting wicket-event.js to return anything but junk. Even though I thought it might have something to do with compression, I doubt that now, because I have my homegrown compression filter turned off. Does anyone know what this error means: DEBUG 2007-08-03 15:42:34,452 resource.UrlResourceStream (init:92) - cannot convert url: code-source:/C:/oc4j10132/j2ee/home/applications/mcir/wicket-1.3.0-beta2.jar!/org/apache/wicket/markup/html/wicket-event.js to file (URI scheme is not file), falling back to the inputstream for polling I'm hoping it will give me some clue as to what is going on, but maybe it's just another by-product of the problem. Any suggestions were be great. Thanks. Joel -- View this message in context: http://www.nabble.com/wicket-event.js-returning-unreadable-tf4158501.html#a11989377 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] -- Wicket joins the Apache Software Foundation as Apache Wicket Apache Wicket 1.3.0-beta2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/ - 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: ListView + AjaxEditableLabel + move down and move up
maybe this is something for you: at http://wicketstuff.org/confluence/display/STUFFWIKI/Script.aculo.us+SortableListView what you could also do is the following: + add two ajaxbuttons up and down (or images) + change the position of the row-data in the backing list in the onSubmit method of the ajaxbuttons + add the parent container of the listview to the ajaxrequesttarget i haven't tried the approach myself, but maybe it's something to get you started. hth, gerolf On 8/4/07, anita nichols [EMAIL PROTECTED] wrote: I have a list view (to do list sample) with AjaxEditableLabel. But I also would like to be able to move the items on the list up or down. Is that possible? Thanks
Re: ListView + AjaxEditableLabel + move down and move up
if the last suggestion is too costly (rendering the whole listview), you could just change the order of the backing list without redrawing it and add some javascript to the requesttarget (target.appendjavascript) which does the dom manipulation... On 8/4/07, Gerolf Seitz [EMAIL PROTECTED] wrote: maybe this is something for you: at http://wicketstuff.org/confluence/display/STUFFWIKI/Script.aculo.us+SortableListView what you could also do is the following: + add two ajaxbuttons up and down (or images) + change the position of the row-data in the backing list in the onSubmit method of the ajaxbuttons + add the parent container of the listview to the ajaxrequesttarget i haven't tried the approach myself, but maybe it's something to get you started. hth, gerolf On 8/4/07, anita nichols [EMAIL PROTECTED] wrote: I have a list view (to do list sample) with AjaxEditableLabel. But I also would like to be able to move the items on the list up or down. Is that possible? Thanks