Re: Wicket 6: Using AutoCompleteBehavior with other behaviors
Hi all, I have logged the required fixes for WICKET-4990 in jira. Regards, James james yong wrote Hi Sven, WICKET-4990 is for problem 1. So I raised a jira issue for problem 2, together with its solution. WICKET-4998. Regards, James Sven Meier wrote Hi James, please attach that info to WICKET-4990. Thanks Sven On 01/22/2013 07:07 AM, james yong wrote: Hi, To rectify problem 2, I changed the following in wicket-autocomplete.js, Wicket.Event.add(obj,keypress,function(jqEvent){ if(Wicket.Event.keyCode(jqEvent)===KEY_ENTER){ if(selected-1||hidingAutocomplete===1){ hidingAutocomplete=0; jqEvent.stopImmediatePropagation(); --changed from jqEvent.stopPropagation(); Regards, James james yong wrote Hi, Now migrating a working project from wicket version 1.4 to 6.4. I have a text field that uses the following behaviors: A. AjaxFormComponentUpdatingBehavior(onchange); B. AutoCompleteBehavior; and C. AjaxFormComponentUpdatingBehavior(onkeypress). Say I enter an letter 'U' into the text field, and an auto-suggest list pops up. There are 2 problems which is not seen in wicket 1.4: 1) When I select an item (e.g. USD) from the auto-suggest list using a mouse, the onchange event from behavior A is fired twice. The 1st onchange event is for 'U' and the 2nd onchange event is for 'USD'. Can I prevent the 1st onchange event from happening? 2) When I select an item (e.g. USD) from the auto-suggest list using the Enter keypress, an onkeypress event is fired by behavior C. Can I prevent this onkeypress event from happening? Regards, James -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Using-AutoCompleteBehavior-with-other-behaviors-tp4655495p4655619.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Using-AutoCompleteBehavior-with-other-behaviors-tp4655495p4655719.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: find html tag
Hi Michael, What you need may not be related to wicket directly. I suggest you can attach a javascript 'click' handler that will get the parent and modify the attributes. If you are using jQuery, you can use the parent function i.e. http://api.jquery.com/parent/ http://api.jquery.com/parent/ Regards, James Michael Jaruska wrote Look at my original post. User clicks on subsubmenu2 ./mypage.html?cid=menu/submenu/subsubmenu2 , then I have in String category (java code) value menu/submenu/subsubmenu2. I need just to make 2 more steps: 1. in html code find anchor tag with href menu/submenu/subsubmenu2; 2. find li tag which is parent of the anchor from point 1; When I have point 2 done, then I know how to put somethink into li tag... On 23.1.2013 21:21, Bas Gooren wrote: Ok, so you are indeed looking for a way to change a html attribute ;-) Since you wrote (in your folluw-up e-mail) that you cannot generate the html, there are some ways, but they mostly work outside of the normal wicket way. 1) In the component which actually renders your static html override onComponentTagBody and fiddle with the markup stream (e.g. look at replaceComponentTagBody) 2) store the static html somewhere by itself, and create a custom model. The model can then load the html and perform string replacement. You can then add a label component which uses the model and has setEscapeModelStrings(false) set. Met vriendelijke groet, Kind regards, Bas Gooren Op 23-1-2013 21:11, schreef Michael Jaruska: I need to find the parent li tag of the anchor user clicks - I now from PageParameters which anchor has been clicked. Then I will put into this parent li specific atribute (id=something). This attribute will be then processed by JavaScript on the page. On 23.1.2013 21:04, Bas Gooren wrote: Sorry, I read too quickly. What are you trying to accomplish? Let's say you are able to find the appropriate html tag, what do you want to do with it? Met vriendelijke groet, Kind regards, Bas Gooren Op 23-1-2013 21:01, schreef Michael Jaruska: And question is not how can I change html attribute but how can I go through html structure and find html tag with specific attribute :-) On 23.1.2013 20:50, Bas Gooren wrote: Hi! What you want to accomplish (e.g. changing some html attributes) can be done by adding an attributemodifier to each li component. In pseudocode: RepeatingView uls = ... for_every_li: WebMarkupContainer li = ... uls.add(li); now, you can do something like this: li.add(new AttributeAppender(...) { isEnabled() { return true if you want to append a html attribute; } }); Or alternatively: WebMarkupContainer li = new WMC() { onComponentTag(ComponentTag tag) { super(tag); tag.put(my-html-attribute, value); } } Met vriendelijke groet, Kind regards, Bas Gooren Op 23-1-2013 20:45, schreef Michael Jaruska: Hi, is there a way I can find specific html tag in markup? I have this html structure: ul class=mymenu li menu ./mypage.html?cid=menu ul li submenu ./mypage.html?cid=menu/submenu ul li subsubmenu1 ./mypage.html?cid=menu/submenu/subsubmenu1 /li li subsubmenu2 ./mypage.html?cid=menu/submenu/subsubmenu2 /li li subsubmenu3 ./mypage.html?cid=menu/submenu/subsubmenu3 /li /ul /ul /ul I'm processing clicks on anchors with my page: public PageTest(PageParameters parameters){ //cid = category id String category = parameters.get(cid).toString(); ... } Now I need some way I can add atribute into parent li tag of tag on which I do click. Somethink like (pseudocode): public PageTest(PageParameters parameters){ //cid = category id String category = parameters.get(cid).toString(); //find corresponding tag Tag anchorTag = go_from_top_ul_tag_and_find_a_tag_by_category(category) //have corresponding anchor tag, get parrent tag of the anchor tag Tag anchorParentTag = anchorTag.getParent(); //and now I can do my mysterious things with menu... } But I don't know where to start my search and I totaly don't know whot to look for in docu. Please, help :-) - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache - To
updateAjaxAttributes has no effect on AutoCompleteBehavior
Hi all, Just to confirm if overriding updateAjaxAttributes has any effect on AutoCompleteBehavior? I was tryng to do the following but see no popup nor code reflected in the html source. @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); AjaxCallListener myAjaxCallListener = new AjaxCallListener() { @Override public CharSequence getBeforeHandler(Component component) { return alert('I\'m executed before the firing of the Ajax call'); } }; ListIAjaxCallListener list = attributes.getAjaxCallListeners(); list.add(myAjaxCallListener); } Regards, James -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/updateAjaxAttributes-has-no-effect-on-AutoCompleteBehavior-tp4655560.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: updateAjaxAttributes has no effect on AutoCompleteBehavior
Hi Martin, I tried again with a simple application and pretty sure updateAjaxAttributes has no effect on AutoCompleteBehavior. But then, I need to verify with another party to verify/confirm whether this is a bug or intended feature. It is working with AjaxFormComponentUpdatingBehavior. Regards, James Martin Grigorov-4 wrote Hi, I don't see why it should not work. Actually AutoCompleteBehavior itself wont work without this method. It overrides it to do: attributes.setWicketAjaxResponse(false); attributes.setDataType(html); On Mon, Jan 21, 2013 at 10:09 AM, james yong lt; i_yongbl@.com gt; wrote: Hi all, Just to confirm if overriding updateAjaxAttributes has any effect on AutoCompleteBehavior? I was tryng to do the following but see no popup nor code reflected in the html source. @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); AjaxCallListener myAjaxCallListener = new AjaxCallListener() { @Override public CharSequence getBeforeHandler(Component component) { return alert('I\'m executed before the firing of the Ajax call'); } }; List IAjaxCallListener list = attributes.getAjaxCallListeners(); list.add(myAjaxCallListener); } Regards, James -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/updateAjaxAttributes-has-no-effect-on-AutoCompleteBehavior-tp4655560.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com lt;http://jweekend.com/gt; -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/updateAjaxAttributes-has-no-effect-on-AutoCompleteBehavior-tp4655560p4655579.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 6: Using AutoCompleteBehavior with other behaviors
Hi, To rectify problem 2, I changed the following in wicket-autocomplete.js, Wicket.Event.add(obj,keypress,function(jqEvent){ if(Wicket.Event.keyCode(jqEvent)===KEY_ENTER){ if(selected-1||hidingAutocomplete===1){ hidingAutocomplete=0; jqEvent.stopImmediatePropagation(); --changed from jqEvent.stopPropagation(); Regards, James james yong wrote Hi, Now migrating a working project from wicket version 1.4 to 6.4. I have a text field that uses the following behaviors: A. AjaxFormComponentUpdatingBehavior(onchange); B. AutoCompleteBehavior; and C. AjaxFormComponentUpdatingBehavior(onkeypress). Say I enter an letter 'U' into the text field, and an auto-suggest list pops up. There are 2 problems which is not seen in wicket 1.4: 1) When I select an item (e.g. USD) from the auto-suggest list using a mouse, the onchange event from behavior A is fired twice. The 1st onchange event is for 'U' and the 2nd onchange event is for 'USD'. Can I prevent the 1st onchange event from happening? 2) When I select an item (e.g. USD) from the auto-suggest list using the Enter keypress, an onkeypress event is fired by behavior C. Can I prevent this onkeypress event from happening? Regards, James -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Using-AutoCompleteBehavior-with-other-behaviors-tp4655495p4655619.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 6: Using AutoCompleteBehavior with other behaviors
Hi Sven, WICKET-4990 is for problem 1. So I raised a jira issue for problem 2, together with its solution. WICKET-4998. Regards, James Sven Meier wrote Hi James, please attach that info to WICKET-4990. Thanks Sven On 01/22/2013 07:07 AM, james yong wrote: Hi, To rectify problem 2, I changed the following in wicket-autocomplete.js, Wicket.Event.add(obj,keypress,function(jqEvent){ if(Wicket.Event.keyCode(jqEvent)===KEY_ENTER){ if(selected-1||hidingAutocomplete===1){ hidingAutocomplete=0; jqEvent.stopImmediatePropagation(); --changed from jqEvent.stopPropagation(); Regards, James james yong wrote Hi, Now migrating a working project from wicket version 1.4 to 6.4. I have a text field that uses the following behaviors: A. AjaxFormComponentUpdatingBehavior(onchange); B. AutoCompleteBehavior; and C. AjaxFormComponentUpdatingBehavior(onkeypress). Say I enter an letter 'U' into the text field, and an auto-suggest list pops up. There are 2 problems which is not seen in wicket 1.4: 1) When I select an item (e.g. USD) from the auto-suggest list using a mouse, the onchange event from behavior A is fired twice. The 1st onchange event is for 'U' and the 2nd onchange event is for 'USD'. Can I prevent the 1st onchange event from happening? 2) When I select an item (e.g. USD) from the auto-suggest list using the Enter keypress, an onkeypress event is fired by behavior C. Can I prevent this onkeypress event from happening? Regards, James -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Using-AutoCompleteBehavior-with-other-behaviors-tp4655495p4655619.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Using-AutoCompleteBehavior-with-other-behaviors-tp4655495p4655626.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 6: Using AutoCompleteBehavior with other behaviors
Sven Meier wrote Your first problem is a regression, see WICKET-1280. Please open a jira issue. Sven On 01/18/2013 04:45 AM, james yong wrote: Hi, Now migrating a working project from wicket version 1.4 to 6.4. I have a text field that uses the following behaviors: A. AjaxFormComponentUpdatingBehavior(onchange); B. AutoCompleteBehavior; and C. AjaxFormComponentUpdatingBehavior(onkeypress). Say I enter an letter 'U' into the text field, and an auto-suggest list pops up. There are 2 problems which is not seen in wicket 1.4: 1) When I select an item (e.g. USD) from the auto-suggest list using a mouse, the onchange event from behavior A is fired twice. The 1st onchange event is for 'U' and the 2nd onchange event is for 'USD'. Can I prevent the 1st onchange event from happening? 2) When I select an item (e.g. USD) from the auto-suggest list using the Enter keypress, an onkeypress event is fired by behavior C. Can I prevent this onkeypress event from happening? Regards, James Thanks. For problem 1, I have raised a JIRA issue, WICKET-4990 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Using-AutoCompleteBehavior-with-other-behaviors-tp4655495p4655497.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket 6: Using AutoCompleteBehavior with other behaviors
Hi, Now migrating a working project from wicket version 1.4 to 6.4. I have a text field that uses the following behaviors: A. AjaxFormComponentUpdatingBehavior(onchange); B. AutoCompleteBehavior; and C. AjaxFormComponentUpdatingBehavior(onkeypress). Say I enter an letter 'U' into the text field, and an auto-suggest list pops up. There are 2 problems which is not seen in wicket 1.4: 1) When I select an item (e.g. USD) from the auto-suggest list using a mouse, the onchange event from behavior A is fired twice. The 1st onchange event is for 'U' and the 2nd onchange event is for 'USD'. Can I prevent the 1st onchange event from happening? 2) When I select an item (e.g. USD) from the auto-suggest list using the Enter keypress, an onkeypress event is fired by behavior C. Can I prevent this onkeypress event from happening? Regards, James -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Using-AutoCompleteBehavior-with-other-behaviors-tp4655495.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Java in CMS arena,..wicket to lead the way?!
How about Hippo CMS? -james Arjun Dhar wrote: Summary:: This conversation is about Java in the CMS space, comparison to PHP and is there a future to reduce turn around time with Java. Are we as a community too elitist to be stuck on masturbating on frameworks rather than solutions that affect direct outcome? ..and then technically I've centered this around Brix wicket. Hi, I've been exploring lot of Java CMS solutions and also frameworks. BRIX, Alfresco I feel are good for different reasons. From a Web framework point of view, I feel Wicket I guess Sling cut the mark pretty well (not much experience yet with Sling). However, with Java Community the solutions (beyond framework) finish is not comparable to the likes of PHP giants like Drupal, Wordpress etc. I operate in the small business market a lot , and this really hurts. I really feel that Java which has evolved into a wonderful platform with many frameworks ..n yet thats where it stops. With earlier version of Java it would get tedious and too boilerplate to produce anything quickly fast. But with the advent of scripting languages galore, be it Server JavaScript, Groovy, Scala ... and so many wonderful frameworks we have not taken it to the next level to producing quality CMS. Brix apparently will not be evolved further. which is fine; for its intent it does a good job but what about taking this to the next level. Also, problem with most CMS is they are content centric (ok hence they are called CMS) may seem dumb at a glance. ..but I dont want my business model to go into a JCR repository. Perhaps the intent of the site is to reflect the actual product business model in a neat way with WebDav. Lets call it PMS (hah) for lack of a better abbreviation. Also the ability to customize the admin module to give a Product centric view instead of Content centric view. This allows for greater analytic s and also then using java as an integration platform to integrate the business model with infinite things at the back end with pluggable extensions. I liked BRIX for many reasons. Am wondering if people are thinking about what I mentioned above ..also if we can take Brix further (not core) but by adding extensions and delivering a quality complete solution that could rival something like Drupal in the near future ...or maybe eventually! ..sorry i don't have my own Blog. You see WordPress is in PHP *wink hehe. Get the point?! :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Java-in-CMS-arena-wicket-to-lead-the-way-tp2541542p2541877.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Form/Enter Key Problem
Sorry for replying to an old post. The problem can be solved by moving the submit field out of the form in the html template --james Ballist1c wrote: Hey guys, I have created the following form (code below). The form works fine, when i enter a value into the txt field and mouse click on the AjaxFormSubmitLink... BUT if i type something into the TextField and press the enter key, the page loads 'something'... but does nothing and the form is broken till i do a hard refresh, usually i close the browser and start it up again. The application itself doesn't crash, and all the other AJAX on the page works fine. I want to know if anyone has had this problem before. I am pretty stuck on this one at the moment. One hack solution i was wondering if someone can help me out with, is to disable the auto-submit on Enter Key press... anyone know how to do that? Thanks guys!!! LEo1 public class SearchInputPanel extends Form { TextField basicSearchString; DropDownChoice dodginess; AjaxFormSubmitLink addButton; Input input; /** * Creates a new instance of FormPanel */ public SearchInputPanel(String id, MarkupContainer parent) { super(id, parent); } @Override public void setupComponents() { input = new Input(); basicSearchString = new TextField(searchString, this); dodginess = new DropDownChoice(dodginess, this, Arrays.asList(new String[]{1, 2, 3, 4, 5})); addButton = new AjaxFormSubmitLink(add, this) { public void onSubmit(AjaxRequestTarget target) { //MessageManager.getInstance().getLatestMessages(); //((BigBrotherCookieSession) getJumbuckCookieSession()).setSearchResults(MessageManager.getInstance().getNewMessages()); target.addComponent(findParent(BasicSearchPanel.class)); } public Form getJumbuckForm() { return SearchInputPanel.this.getForm(); } }; } @Override public void setupModels() { setModel(new CompoundPropertyModel(input)); } @Override public void onSubmit() { BigBrotherCookieSession session = (BigBrotherCookieSession) getJumbuckCookieSession(); session.addSearchString(input.getSearchString(), input.getDodginess()); input.setSearchString(); } private static class Input implements IClusterable { private String searchString = ; private Long dodginess = 1L; public String getSearchString() { return searchString; } public void setSearchString(String searchString) { this.searchString = searchString; } public Long getDodginess() { return dodginess; } public void setDodginess(Long dodginess) { if (dodginess == null) this.dodginess = 1L; else this.dodginess = dodginess; } } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Form-Enter-Key-Problem-tp1869795p2541503.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Scripting language
Hi all, Can anyone recommends a scripting language that can be used with Wicket for productivity? Regards, James -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Scripting-language-tp2402957p2402957.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
dialog
Hi, Is there any suggestion on creating a dialog? I have look at the following: 1. wiquery has little documentation on creating dialog, and no source codes for the example war file. 2. visural-wicket isn't working for me at 1st try. Maybe due to some javascript conflict with my existing scripts. 3. wicketstuff-dojo-1.1 is only for wicket 1.3...according to the site. 4. jwicket svn project at wicketstuff is empty! Regards, James -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/dialog-tp2329291p2329291.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
link in absolute path
Hi, is it possible to have the path to the javascript and css files, rendered as absolute Regards, James -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/link-in-absolute-path-tp2318739p2318739.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: link in absolute path
Hi Igor, Thanks for quick reply. I will probably look at 1.5 Regards, James Igor Vaynberg-2 wrote: no. everything in wicket is rendered in relative urls because absolute urls cause trouble behind proxies. in 1.4 that code is all over the place so its not easy to swap out. in 1.5 the code is centralized so there its possible, but 1.5 is far from production. if you really really need this done then you can use a servlet filter to rewrite bits of html -igor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/link-in-absolute-path-tp2318739p2318780.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket CMS
Hi, Is there anyone who would like to pool efforts for a wicket-based cms? Currently, I have a prototype verson at http://code.google.com/p/welo/, but I would like to put efforts into a better one (not necessary mine). Regards, James -- View this message in context: http://www.nabble.com/Wicket-CMS-tp18092129p18092129.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 CMS
I'll put up the doc and demo by this week or so. Thanks. :-) -- View this message in context: http://www.nabble.com/Wicket-CMS-tp18092129p18102616.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: MarkupResourceStream and classloading
My take is to implement your own version of IClassResolver. Wicket shouldn't have dependency on osgi. -- View this message in context: http://www.nabble.com/MarkupResourceStream-and-classloading-tp18029801p18045590.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: MarkupResourceStream and classloading
Alternatively, may take a look at OsgiClassResolver.java in the welo project which is hosted at google code. OsgiClassResolver.java is an implementation (improvement needed) of IClassResolver to resolve classes that are stored in osgi bundles. igor.vaynberg wrote: nick, have you tried asking on pax wicket mailing list? those guys use wicket with osgi all the time. perhaps they have a clean solution. -igor -- View this message in context: http://www.nabble.com/MarkupResourceStream-and-classloading-tp18029801p18046534.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 ResourceReference in osgi bundle
Hi, I have a javascript file inside a osgi bundle. ResourceReference is used to refer to that file. When running the application, the following exception occurs when the resourceReference's renderhead method is run. java.lang.NullPointerException at org.apache.wicket.SharedResources.resourceKey(SharedResources.java:322) at org.apache.wicket.SharedResources.get(SharedResources.java:238) at org.apache.wicket.ResourceReference.bind(ResourceReference.java:137) at org.apache.wicket.ResourceReference.getSharedResourceKey(ResourceReference.java:224) at org.apache.wicket.RequestCycle.urlFor(RequestCycle.java:996) at org.apache.wicket.RequestCycle.urlFor(RequestCycle.java:981) at org.apache.wicket.markup.html.internal.HeaderResponse.renderJavascriptReference(HeaderResponse.java:157) at org.apache.wicket.ajax.AjaxRequestTarget$AjaxHeaderResponse.renderJavascriptReference(AjaxRequestTarget.java:783) I am using wicket 1.3.3. NullPointerException comes about because the scope variable is a null, as in alias = scope.getName();. Not sure why scope is null in the 1st place. Regards, james -- View this message in context: http://www.nabble.com/Using-ResourceReference-in-osgi-bundle-tp17288449p17288449.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 Article on DevX
Tomcat doesn't requires you to deploy with a war file. Check out setting the context in conf/server.xml james yong Gwyn wrote: Even better, when developing you dont need to package your app into a war and deploy it - which are big time wasting steps when you have to do them every ten minutes - instead simply launch the included Start.java and your app is up and running in seconds and includes hotswap. /Gwyn -- View this message in context: http://www.nabble.com/Wicket-Article-on-DevX-tf4623720.html#a13213711 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: Number of available parameters in IndexedParamUrlCodingStrategy
Hi Kelvin, It works now! Probably tested with the wrong url the last time i tried. Thanks! Regards, James -- View this message in context: http://www.nabble.com/Number-of-available-parameters-in-IndexedParamUrlCodingStrategy-tf4436939.html#a12738141 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Number of available parameters in IndexedParamUrlCodingStrategy
Hi, I am using IndexedParamUrlCodingStrategy. Is there is a good way to check the number of available parameters? Currently i have to use getString(0), getString(1) etc. to check for null before I arrived at the size of the available parameters. Regards, james yong -- View this message in context: http://www.nabble.com/Number-of-available-parameters-in-IndexedParamUrlCodingStrategy-tf4436939.html#a12658675 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: Ideas for a Wicket Based Cms
Martijn Dashorst wrote: Take a look at the kronos CMS first (wicketstuff), and possibly Tally-Ho (java.net). Martijn Hi, I tried to run Kronos Cms and run into the exception below. May I know where should I put the nodetype.cnd file? I am running on Tomcat. Regards, James java.lang.RuntimeException: java.io.FileNotFoundException: nodetype.cnd (The system cannot find the file specified) at wicket.kronos.KronosApplication.init(KronosApplication.java:48) at wicket.protocol.http.WicketServlet.init(WicketServlet.java:299) at javax.servlet.GenericServlet.init(GenericServlet.java:211) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) Caused by: java.io.FileNotFoundException: nodetype.cnd (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(Unknown Source) at java.io.FileInputStream.init(Unknown Source) at java.io.FileReader.init(Unknown Source) at wicket.kronos.DataProcessor.repositoryStartup(DataProcessor.java:1091) at wicket.kronos.KronosApplication.init(KronosApplication.java:44) ... 19 more -- View this message in context: http://www.nabble.com/Ideas-for-a-Wicket-Based-Cms-tf4268307.html#a12185068 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]