Re: find html tag
no way how to modify raw html stream in actual rendering? On 11.2.2013 11:50, Michael Jaruska wrote: based on this article: https://cwiki.apache.org/WICKET/component-rendering.html in section onRender() it should be possible to modify markup which is going from wicket (e.g. from .html file) and modyfied it send to client. On 11.2.2013 11:34, Michael Jaruska wrote: yes, i need that raw html that comes from markup (my .html file which is my panel), in java code i will modify it (one step for put new class) and send it to client :-) as i thnik now i dont need to delete previous step because this modifying isn't in markup. so i just need to modify markup in actual render - modify markup stream. On 11.2.2013 11:26, Martin Grigorov wrote: MarkupStream gives you the raw html that comes from the .html file, i.e. from the template file. It doesn't give you the html from the previous page render. You need to send Ajax requests to update the server side state to be in sync with the client side state (modified by your JS). On Mon, Feb 11, 2013 at 11:22 AM, Michael Jaruska michael.jaru...@gmail.com wrote: in fact, my panel is menu which is modified by javascript. i need to keep track of the previous selected entry (to get know javascript to disable element) and actual element to modify (add class) for javascript. javascript need to now at a moment page rendered where is class which it is looking for. so i need to modify html markup, modify it on client side by javascript is not possible. based on this article: https://cwiki.apache.org/**WICKET/component-rendering.**htmlhttps://cwiki.apache.org/WICKET/component-rendering.html it should be possible modify markup generated by component (my panel). On 11.2.2013 10:03, Martin Grigorov wrote: Hi, What do you want to do with the markup ? Maybe you don't need to bother with internals like MarkupStream for something that may be solved much easier. On Mon, Feb 11, 2013 at 10:01 AM, Michael Jaruska michael.jaru...@gmail.com wrote: thanks, studied. but in my case not working. i don't know why, where is my mistake. try this code: markup - base page: ?xml version=1.0 encoding=UTF-8 ? html xmlns:wicket head titlemy test page/title meta http-equiv=Content-Type content=text/html; charset=utf-8 / /head body pmy test page/p span wicket:id=myPanel[my test panel]/span /body /html markup - my test panel: ?xml version=1.0 encoding=UTF-8 ? html xmlns:wicket wicket:panel ul li a href=./mypage.html?cid=menumy item/a /li /ul /wicket:panel java - base page: public class PageBase extends WebPage{ public PageBase() { //my panel this.add(new MyMenu(myPanel). setRenderBodyOnly(true)); } } java - panel: ublic class MyMenu extends Panel{ public PanelMenu(String id) { super(id); } protected void onRender(MarkupStream markupStream){ while(markupStream.hasMore()) { System.out.println(markupStream.next()); } } } i expect on console printed whole html markup for panel, but nothing is displayed. any ideas please? On 10.2.2013 23:21, Sven Meier wrote: See BorderBehavior#beforeRender(Component) on how to iterate over the markup. Sven On 02/10/2013 11:09 PM, Michael Jaruska wrote: my quick test: @Override protected void onRender() { super.onRender(); System.out.println(this.getMarkup().toString()); } get me just top-level tag in my panel, subtags isn't shown. how to get whole markup for my panel? On 10.2.2013 22:38, Sven Meier wrote: Sure, with #getMarkup() you can get hold of the component's markup. With a MarkupStream you can iterate over it. Sven On 02/10/2013 10:23 PM, Michael Jaruska wrote: again with my question: is it possible to get markup in onRender() of the component? have found this article: https://cwiki.apache.org/WICKET/component-rendering.htmlhttps://cwiki.apache.org/**WICKET/component-rendering.**html https://cwiki.apache.org/**WICKET/component-rendering.**htmlhttps://cwiki.apache.org/WICKET/component-rendering.html but in onRender() section is just code snippet I'm not understand. is there more detailed example how to get markup of the component in onRender()? thanks, michael On 23.1.2013 22:47, Martin Grigorov wrote: You can use IMarkupFilter to manipulate the raw markup before being loaded and used by the components. See the implementations in Wicket to see what can be done with such filter. On Wed, Jan 23, 2013 at 11:11 PM, Michael Jaruska michael.jaru...@gmail.com wrote: Look at my original post. User clicks on a href=./mypage.html?cid=menu/* *submenu/subsubmenu2**subsubmenu2/a, then I have in String category (java code) value
Re: find html tag
Hi, As Sven suggested - BorderBehavior does exactly this. On Tue, Feb 12, 2013 at 9:08 AM, Michael Jaruska michael.jaru...@gmail.comwrote: no way how to modify raw html stream in actual rendering? On 11.2.2013 11:50, Michael Jaruska wrote: based on this article: https://cwiki.apache.org/**WICKET/component-rendering.**htmlhttps://cwiki.apache.org/WICKET/component-rendering.htmlin section onRender() it should be possible to modify markup which is going from wicket (e.g. from .html file) and modyfied it send to client. On 11.2.2013 11:34, Michael Jaruska wrote: yes, i need that raw html that comes from markup (my .html file which is my panel), in java code i will modify it (one step for put new class) and send it to client :-) as i thnik now i dont need to delete previous step because this modifying isn't in markup. so i just need to modify markup in actual render - modify markup stream. On 11.2.2013 11:26, Martin Grigorov wrote: MarkupStream gives you the raw html that comes from the .html file, i.e. from the template file. It doesn't give you the html from the previous page render. You need to send Ajax requests to update the server side state to be in sync with the client side state (modified by your JS). On Mon, Feb 11, 2013 at 11:22 AM, Michael Jaruska michael.jaru...@gmail.com wrote: in fact, my panel is menu which is modified by javascript. i need to keep track of the previous selected entry (to get know javascript to disable element) and actual element to modify (add class) for javascript. javascript need to now at a moment page rendered where is class which it is looking for. so i need to modify html markup, modify it on client side by javascript is not possible. based on this article: https://cwiki.apache.org/WICKET/component-rendering.htmlhttps://cwiki.apache.org/**WICKET/component-rendering.**html https://cwiki.apache.org/**WICKET/component-rendering.**htmlhttps://cwiki.apache.org/WICKET/component-rendering.html it should be possible modify markup generated by component (my panel). On 11.2.2013 10:03, Martin Grigorov wrote: Hi, What do you want to do with the markup ? Maybe you don't need to bother with internals like MarkupStream for something that may be solved much easier. On Mon, Feb 11, 2013 at 10:01 AM, Michael Jaruska michael.jaru...@gmail.com wrote: thanks, studied. but in my case not working. i don't know why, where is my mistake. try this code: markup - base page: ?xml version=1.0 encoding=UTF-8 ? html xmlns:wicket head titlemy test page/title meta http-equiv=Content-Type content=text/html; charset=utf-8 / /head body pmy test page/p span wicket:id=myPanel[my test panel]/span /body /html markup - my test panel: ?xml version=1.0 encoding=UTF-8 ? html xmlns:wicket wicket:panel ul li a href=./mypage.html?cid=menu**my item/a /li /ul /wicket:panel java - base page: public class PageBase extends WebPage{ public PageBase() { //my panel this.add(new MyMenu(myPanel). setRenderBodyOnly(true)); } } java - panel: ublic class MyMenu extends Panel{ public PanelMenu(String id) { super(id); } protected void onRender(MarkupStream markupStream){ while(markupStream.hasMore()) { System.out.println(** markupStream.next()); } } } i expect on console printed whole html markup for panel, but nothing is displayed. any ideas please? On 10.2.2013 23:21, Sven Meier wrote: See BorderBehavior#beforeRender(**Component) on how to iterate over the markup. Sven On 02/10/2013 11:09 PM, Michael Jaruska wrote: my quick test: @Override protected void onRender() { super.onRender(); System.out.println(this.**getMarkup().toString()); } get me just top-level tag in my panel, subtags isn't shown. how to get whole markup for my panel? On 10.2.2013 22:38, Sven Meier wrote: Sure, with #getMarkup() you can get hold of the component's markup. With a MarkupStream you can iterate over it. Sven On 02/10/2013 10:23 PM, Michael Jaruska wrote: again with my question: is it possible to get markup in onRender() of the component? have found this article: https://cwiki.apache.org/**WICKET/component-rendering.* *htmlhttps://cwiki.apache.org/WICKET/component-rendering.html https://cwiki.apache.**org/**WICKET/component-** rendering.**htmlhttps://cwiki.apache.org/**WICKET/component-rendering.**html https://cwiki.apache.org/WICKET/component-rendering. htmlhttps://cwiki.apache.org/**WICKET/component-rendering.**html
Problem in running wicket app using mvn jetty:run
Hi, I am trying to run wicket app using the command mvn jetty:run but I am getting the error *java.lang.NoClassDefFoundError: org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow$WindowClosedCallback* Now I this may be because it is not able to find all dependencies present in lib folder while Start class is able to find those. So, where should I place the jars then? I tried out even http://stackoverflow.com/questions/3873236/dry-way-of-defining-dependencies-for-both-jettyrun-and-deployment http://stackoverflow.com/questions/3873236/dry-way-of-defining-dependencies-for-both-jettyrun-and-deployment but not worked in my case. Any suggestion? My pom.xml is: 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 groupIdWalknShine/groupId artifactIdwalknshine/artifactId packagingwar/packaging version1.0-SNAPSHOT/version namequickstart/name description/description licenses license nameThe Apache Software License, Version 2.0/name urlhttp://www.apache.org/licenses/LICENSE-2.0.txt/url distributionrepo/distribution /license /licenses properties wicket.version1.5-SNAPSHOT/wicket.version jetty.version7.5.0.v20110901/jetty.version /properties dependencies dependency groupIdorg.apache.wicket/groupId artifactIdwicket-core/artifactId version${wicket.version}/version /dependency dependency groupIdorg.slf4j/groupId artifactIdslf4j-log4j12/artifactId version1.6.2/version /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.16/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.8.1/version scopetest/scope /dependency dependency groupIdorg.eclipse.jetty.aggregate/groupId artifactIdjetty-all-server/artifactId version${jetty.version}/version scopeprovided/scope /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/resources/directory /testResource 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 version2.3.2/version configuration source1.5/source target1.5/target optimizetrue/optimize debugtrue/debug
Re: Problem in running wicket app using mvn jetty:run
Add dependency to wicket-extensions On Tue, Feb 12, 2013 at 1:32 PM, kshitiz k.agarw...@gmail.com wrote: Hi, I am trying to run wicket app using the command mvn jetty:run but I am getting the error *java.lang.NoClassDefFoundError: org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow$WindowClosedCallback* Now I this may be because it is not able to find all dependencies present in lib folder while Start class is able to find those. So, where should I place the jars then? I tried out even http://stackoverflow.com/questions/3873236/dry-way-of-defining-dependencies-for-both-jettyrun-and-deployment http://stackoverflow.com/questions/3873236/dry-way-of-defining-dependencies-for-both-jettyrun-and-deployment but not worked in my case. Any suggestion? My pom.xml is: 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 groupIdWalknShine/groupId artifactIdwalknshine/artifactId packagingwar/packaging version1.0-SNAPSHOT/version namequickstart/name description/description licenses license nameThe Apache Software License, Version 2.0/name url http://www.apache.org/licenses/LICENSE-2.0.txt/url distributionrepo/distribution /license /licenses properties wicket.version1.5-SNAPSHOT/wicket.version jetty.version7.5.0.v20110901/jetty.version /properties dependencies dependency groupIdorg.apache.wicket/groupId artifactIdwicket-core/artifactId version${wicket.version}/version /dependency dependency groupIdorg.slf4j/groupId artifactIdslf4j-log4j12/artifactId version1.6.2/version /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.16/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.8.1/version scopetest/scope /dependency dependency groupIdorg.eclipse.jetty.aggregate/groupId artifactIdjetty-all-server/artifactId version${jetty.version}/version scopeprovided/scope /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/resources/directory /testResource 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 version2.3.2/version configuration source1.5/source target1.5/target optimizetrue/optimize
Re: find html tag
do you mean in beforeRender(final Component component)? On 12.2.2013 9:11, Martin Grigorov wrote: Hi, As Sven suggested - BorderBehavior does exactly this. On Tue, Feb 12, 2013 at 9:08 AM, Michael Jaruska michael.jaru...@gmail.comwrote: no way how to modify raw html stream in actual rendering? On 11.2.2013 11:50, Michael Jaruska wrote: based on this article: https://cwiki.apache.org/**WICKET/component-rendering.**htmlhttps://cwiki.apache.org/WICKET/component-rendering.htmlin section onRender() it should be possible to modify markup which is going from wicket (e.g. from .html file) and modyfied it send to client. On 11.2.2013 11:34, Michael Jaruska wrote: yes, i need that raw html that comes from markup (my .html file which is my panel), in java code i will modify it (one step for put new class) and send it to client :-) as i thnik now i dont need to delete previous step because this modifying isn't in markup. so i just need to modify markup in actual render - modify markup stream. On 11.2.2013 11:26, Martin Grigorov wrote: MarkupStream gives you the raw html that comes from the .html file, i.e. from the template file. It doesn't give you the html from the previous page render. You need to send Ajax requests to update the server side state to be in sync with the client side state (modified by your JS). On Mon, Feb 11, 2013 at 11:22 AM, Michael Jaruska michael.jaru...@gmail.com wrote: in fact, my panel is menu which is modified by javascript. i need to keep track of the previous selected entry (to get know javascript to disable element) and actual element to modify (add class) for javascript. javascript need to now at a moment page rendered where is class which it is looking for. so i need to modify html markup, modify it on client side by javascript is not possible. based on this article: https://cwiki.apache.org/WICKET/component-rendering.htmlhttps://cwiki.apache.org/**WICKET/component-rendering.**html https://cwiki.apache.org/**WICKET/component-rendering.**htmlhttps://cwiki.apache.org/WICKET/component-rendering.html it should be possible modify markup generated by component (my panel). On 11.2.2013 10:03, Martin Grigorov wrote: Hi, What do you want to do with the markup ? Maybe you don't need to bother with internals like MarkupStream for something that may be solved much easier. On Mon, Feb 11, 2013 at 10:01 AM, Michael Jaruska michael.jaru...@gmail.com wrote: thanks, studied. but in my case not working. i don't know why, where is my mistake. try this code: markup - base page: ?xml version=1.0 encoding=UTF-8 ? html xmlns:wicket head titlemy test page/title meta http-equiv=Content-Type content=text/html; charset=utf-8 / /head body pmy test page/p span wicket:id=myPanel[my test panel]/span /body /html markup - my test panel: ?xml version=1.0 encoding=UTF-8 ? html xmlns:wicket wicket:panel ul li a href=./mypage.html?cid=menu**my item/a /li /ul /wicket:panel java - base page: public class PageBase extends WebPage{ public PageBase() { //my panel this.add(new MyMenu(myPanel). setRenderBodyOnly(true)); } } java - panel: ublic class MyMenu extends Panel{ public PanelMenu(String id) { super(id); } protected void onRender(MarkupStream markupStream){ while(markupStream.hasMore()) { System.out.println(** markupStream.next()); } } } i expect on console printed whole html markup for panel, but nothing is displayed. any ideas please? On 10.2.2013 23:21, Sven Meier wrote: See BorderBehavior#beforeRender(**Component) on how to iterate over the markup. Sven On 02/10/2013 11:09 PM, Michael Jaruska wrote: my quick test: @Override protected void onRender() { super.onRender(); System.out.println(this.**getMarkup().toString()); } get me just top-level tag in my panel, subtags isn't shown. how to get whole markup for my panel? On 10.2.2013 22:38, Sven Meier wrote: Sure, with #getMarkup() you can get hold of the component's markup. With a MarkupStream you can iterate over it. Sven On 02/10/2013 10:23 PM, Michael Jaruska wrote: again with my question: is it possible to get markup in onRender() of the component? have found this article: https://cwiki.apache.org/**WICKET/component-rendering.* *htmlhttps://cwiki.apache.org/WICKET/component-rendering.html https://cwiki.apache.**org/**WICKET/component-** rendering.**htmlhttps://cwiki.apache.org/**WICKET/component-rendering.**html https://cwiki.apache.org/WICKET/component-rendering. htmlhttps://cwiki.apache.org/**WICKET/component-rendering.**html
Re: Problem in running wicket app using mvn jetty:run
Yes. jetty:run is part of a Jetty's Maven plugin that uses pom.xml to find the dependencies. On Tue, Feb 12, 2013 at 2:12 PM, kshitiz k.agarw...@gmail.com wrote: Hi Martin, Thank you for the reply. Actually I have located all jars in lib folder. Wont that be sufficient? Do I need to add all dependencies in pom.xml to make the command work? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-in-running-wicket-app-using-mvn-jetty-run-tp4656261p4656264.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: Problem in running wicket app using mvn jetty:run
See Wicket quickstart - http://wicket.apache.org/start/quickstart.html. It has Start.java class. Just run it as a normal Java program with main() method and it will use all classes which are available in the classpath of your project in the IDE. To be able to compile Start.java you just need jetty-aggregate Maven dependency. For more information please use Jetty's docs and/or Google. On Tue, Feb 12, 2013 at 2:17 PM, kshitiz k.agarw...@gmail.com wrote: Hi, Thank you for the reply. So does it mean that I need to add dependencies for all jars that are there in the lib folder? Is there any other way out? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-in-running-wicket-app-using-mvn-jetty-run-tp4656261p4656266.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: Problem with InmethodGrid in IE
Yes, I can confirm this... It also happens with 6.5.0. I will have a look ASAP. Please also mind that after 6.4.0 inMethod grid is jquery base (so, you no longer need YUI around). On Tue, Feb 12, 2013 at 11:47 AM, Stefan Renz s.r...@efonds.com wrote: Hi, since migrating to Wicket 6, we have problems with InmethodGrid when rendering in IE (6 and 8). Just rendering the page containing an InMethod grid causes IE to complain about JavaScript: Inmethod.XTableManager.instance is either null or not an object (translated, I only see a German message). I created a quickstart to quickly demonstrate this behavior. Has anyone encountered that as well and an idea on how to fix that? Thanks, bye Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia
Re: AjaxButton and a HiddenField
Okay, so the only AjaxRequestTarget I am aware of is the one passed to me in the onSubmit. This being after the ajax has submitted. I thought that was for OUTPUT, ie what controls will the ajax update when it returns from the ajax event. I am not trying to update the hiddenfield in the ajaxbutton, but rather using what is there are input into the code that will run during my onSubmit. I can't seem to find where I would register the hiddenfield with the ajaxbutton BEFORE the ajax event. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxButton-and-a-HiddenField-tp4656246p4656270.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: Problem with InmethodGrid in IE
Hi, IE8 doesn't support 'bind' function. Please look at https://github.com/wicketstuff/core/pull/189. Unfortunately I didn't have time to rewrite it like Martin advised. Dan On Tue, Feb 12, 2013 at 3:07 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Yes, I can confirm this... It also happens with 6.5.0. I will have a look ASAP. Please also mind that after 6.4.0 inMethod grid is jquery base (so, you no longer need YUI around). On Tue, Feb 12, 2013 at 11:47 AM, Stefan Renz s.r...@efonds.com wrote: Hi, since migrating to Wicket 6, we have problems with InmethodGrid when rendering in IE (6 and 8). Just rendering the page containing an InMethod grid causes IE to complain about JavaScript: Inmethod.XTableManager.instance is either null or not an object (translated, I only see a German message). I created a quickstart to quickly demonstrate this behavior. Has anyone encountered that as well and an idea on how to fix that? Thanks, bye Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia
Re: Problem with InmethodGrid in IE
Ok. I will have a look and see what I can do. On Tue, Feb 12, 2013 at 3:19 PM, Dan Simko wicke...@gmail.com wrote: Hi, IE8 doesn't support 'bind' function. Please look at https://github.com/wicketstuff/core/pull/189. Unfortunately I didn't have time to rewrite it like Martin advised. Dan On Tue, Feb 12, 2013 at 3:07 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Yes, I can confirm this... It also happens with 6.5.0. I will have a look ASAP. Please also mind that after 6.4.0 inMethod grid is jquery base (so, you no longer need YUI around). On Tue, Feb 12, 2013 at 11:47 AM, Stefan Renz s.r...@efonds.com wrote: Hi, since migrating to Wicket 6, we have problems with InmethodGrid when rendering in IE (6 and 8). Just rendering the page containing an InMethod grid causes IE to complain about JavaScript: Inmethod.XTableManager.instance is either null or not an object (translated, I only see a German message). I created a quickstart to quickly demonstrate this behavior. Has anyone encountered that as well and an idea on how to fix that? Thanks, bye Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia
Re: AjaxButton and a HiddenField
Hi, AjaxButton just submits a form using XmlHttpRequest, or IFrame when there is file input in the form. Is the hidden input field part of that form ? Which version of Wicket do you use ? Can you show us the related Java and HTML snippets ? On Tue, Feb 12, 2013 at 3:15 PM, Entropy blmulholl...@gmail.com wrote: Okay, so the only AjaxRequestTarget I am aware of is the one passed to me in the onSubmit. This being after the ajax has submitted. I thought that was for OUTPUT, ie what controls will the ajax update when it returns from the ajax event. I am not trying to update the hiddenfield in the ajaxbutton, but rather using what is there are input into the code that will run during my onSubmit. I can't seem to find where I would register the hiddenfield with the ajaxbutton BEFORE the ajax event. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxButton-and-a-HiddenField-tp4656246p4656270.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: AjaxButton and a HiddenField
To elaborate, I already made the Hidden a HiddenField, it just doesn't get updated before the onSubmit(). The Hidden's value is set via javascript on the client, and I want that value as INPUT into the code tha truns in onSubmit. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxButton-and-a-HiddenField-tp4656246p4656274.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: AjaxButton and a HiddenField
Yes, I have a form (wicket Form) around both the hidden and the ajaxbutton. We appear to be on 1.4.7. The java for the ajaxbutton looks like so: form.add(new AjaxButton(gridtestbutton) { protected void onSubmit(AjaxRequestTarget arg0, Form? arg1) { //some code that gets the HiddenField, parses it, and reacts...but the value is always empty. } }); The code that adds the hidden looks like: add(new HiddenField(rowsSelected, new Model())); That add adds to a custom panel that holds the hidden, and is in turn is added to the form. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxButton-and-a-HiddenField-tp4656246p4656275.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: AjaxButton and a HiddenField
The code looks OK. It seems the JavaScript doesn't serialize the hidden field and doesn't include it in the submit data. If you are able to reproduce this with Wicket 6 please file a ticket with a quickstart. Unfortunately 1.4.7 is too old and is not supported by us anymore. On Tue, Feb 12, 2013 at 3:34 PM, Entropy blmulholl...@gmail.com wrote: Yes, I have a form (wicket Form) around both the hidden and the ajaxbutton. We appear to be on 1.4.7. The java for the ajaxbutton looks like so: form.add(new AjaxButton(gridtestbutton) { protected void onSubmit(AjaxRequestTarget arg0, Form? arg1) { //some code that gets the HiddenField, parses it, and reacts...but the value is always empty. } }); The code that adds the hidden looks like: add(new HiddenField(rowsSelected, new Model())); That add adds to a custom panel that holds the hidden, and is in turn is added to the form. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxButton-and-a-HiddenField-tp4656246p4656275.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: AjaxButton and a HiddenField
Well, I solved it and it turns out that it wasn't a Wicket issue. I was setting the value in javascript, but I eventually realized that I was setting it to the wrong object...so when i stepped and saw the value, I assumed that it was in the hidden, but I was wrong. Ooops. Thanks for your effort anyway gang. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxButton-and-a-HiddenField-tp4656246p4656277.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
Can AjaxFormSubmitBehavior skip validation on form field updating
Is it possible to skip the Validation when using the AjaxFormSubmitBehavior. I have a text field (AutoComplete) and selecting will update the MultiListbox. There is a provision to remove the element from the List box. When trying to add new element from the Textbox to Listbox if AjaxFormSubmitBehavior is used, then Other field validations are getting fired and resulting in error page/message. If AjaxFormComponentUpdatingBehavior is used, then the deleted element is getting dispalyed, as it is not been deleted from the model. Also tried using by turning off the defaultFormProcessing on AjaxFormSubmitBehavior, but unable to get the required Converted Thanks in advance WNU -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-AjaxFormSubmitBehavior-skip-validation-on-form-field-updating-tp4656278.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
You can also do it inside the onComponentTag() or onComponentTagBody(): http://wicket.apache.org/apidocs/1.5/org/apache/wicket/Component.html#onComponentTag(org.apache.wicket.markup.ComponentTag ) http://wicket.apache.org/apidocs/1.5/org/apache/wicket/Component.html#onComponentTagBody(org.apache.wicket.markup.MarkupStream, org.apache.wicket.markup.ComponentTag) This is how I switched from a DIV to a SPAN when nesting forms since Wicket uses DIV that sometimes breaks my CSS inheritance: /** * Wicket by default will substitute inner nested forms with DIV elements, we want SPAN * elements to preserve the page layout. * * @see org.apache.wicket.Component#onComponentTag(ComponentTag) */ @Override protected void onComponentTag(final ComponentTag tag) { super.onComponentTag(tag); if(!isRootForm()) { tag.setName(span); } } ~ Thank you, Paul Bors On Tue, Feb 12, 2013 at 7:55 AM, Michael Jaruska michael.jaru...@gmail.comwrote: do you mean in beforeRender(final Component component)? On 12.2.2013 9:11, Martin Grigorov wrote: Hi, As Sven suggested - BorderBehavior does exactly this. On Tue, Feb 12, 2013 at 9:08 AM, Michael Jaruska michael.jaru...@gmail.com**wrote: no way how to modify raw html stream in actual rendering? On 11.2.2013 11:50, Michael Jaruska wrote: based on this article: https://cwiki.apache.org/WICKET/component-rendering.htmlhttps://cwiki.apache.org/**WICKET/component-rendering.**html https://cwiki.apache.org/**WICKET/component-rendering.**htmlhttps://cwiki.apache.org/WICKET/component-rendering.htmlin section onRender() it should be possible to modify markup which is going from wicket (e.g. from .html file) and modyfied it send to client. On 11.2.2013 11:34, Michael Jaruska wrote: yes, i need that raw html that comes from markup (my .html file which is my panel), in java code i will modify it (one step for put new class) and send it to client :-) as i thnik now i dont need to delete previous step because this modifying isn't in markup. so i just need to modify markup in actual render - modify markup stream. On 11.2.2013 11:26, Martin Grigorov wrote: MarkupStream gives you the raw html that comes from the .html file, i.e. from the template file. It doesn't give you the html from the previous page render. You need to send Ajax requests to update the server side state to be in sync with the client side state (modified by your JS). On Mon, Feb 11, 2013 at 11:22 AM, Michael Jaruska michael.jaru...@gmail.com wrote: in fact, my panel is menu which is modified by javascript. i need to keep track of the previous selected entry (to get know javascript to disable element) and actual element to modify (add class) for javascript. javascript need to now at a moment page rendered where is class which it is looking for. so i need to modify html markup, modify it on client side by javascript is not possible. based on this article: https://cwiki.apache.org/**WICKET/component-rendering.**htmlhttps://cwiki.apache.org/WICKET/component-rendering.html https://cwiki.apache.**org/**WICKET/component-**rendering.**htmlhttps://cwiki.apache.org/**WICKET/component-rendering.**html https://cwiki.apache.org/WICKET/component-rendering.htmlhttps://cwiki.apache.org/**WICKET/component-rendering.**html https://cwiki.apache.org/**WICKET/component-rendering.**htmlhttps://cwiki.apache.org/WICKET/component-rendering.html it should be possible modify markup generated by component (my panel). On 11.2.2013 10:03, Martin Grigorov wrote: Hi, What do you want to do with the markup ? Maybe you don't need to bother with internals like MarkupStream for something that may be solved much easier. On Mon, Feb 11, 2013 at 10:01 AM, Michael Jaruska michael.jaru...@gmail.com wrote: thanks, studied. but in my case not working. i don't know why, where is my mistake. try this code: markup - base page: ?xml version=1.0 encoding=UTF-8 ? html xmlns:wicket head titlemy test page/title meta http-equiv=Content-Type content=text/html; charset=utf-8 / /head body pmy test page/p span wicket:id=myPanel[my test panel]/span /body /html markup - my test panel: ?xml version=1.0 encoding=UTF-8 ? html xmlns:wicket wicket:panel ul li a href=./mypage.html?cid=menumy item/a /li /ul /wicket:panel java - base page: public class PageBase extends WebPage{ public PageBase() { //my panel this.add(new MyMenu(myPanel). setRenderBodyOnly(true)); } } java - panel: ublic class MyMenu extends Panel{ public PanelMenu(String id) { super(id); } protected void onRender(MarkupStream markupStream){
Re: AjaxButton and a HiddenField
If you're working with Wicket, you should probably use Models and not set its value via JavaScript unless of course that's your business use-case. Mixing JavaScript, Ajax and a Wicket component seems a bit too elaborated for something simple such as persisting state via a hidden form field. Btw, are you sure you need the hidden field? Can’t you use compound models to hold on to the state you need at the panel or page level? Anyhow, I'll let you to it.. :) ~ Thank you, Paul Bors On Tue, Feb 12, 2013 at 10:02 AM, Entropy blmulholl...@gmail.com wrote: Well, I solved it and it turns out that it wasn't a Wicket issue. I was setting the value in javascript, but I eventually realized that I was setting it to the wrong object...so when i stepped and saw the value, I assumed that it was in the hidden, but I was wrong. Ooops. Thanks for your effort anyway gang. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxButton-and-a-HiddenField-tp4656246p4656277.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: Can AjaxFormSubmitBehavior skip validation on form field updating
A bit off topic but related, is there a wiki page documenting the workflow wicket goes through (validation, updating models etc) when using AjaxFormSubmitBehavior? ~ Thank you, Paul Bors On Tue, Feb 12, 2013 at 11:59 AM, wicket_new_user murthy.m...@gmail.comwrote: Is it possible to skip the Validation when using the AjaxFormSubmitBehavior. I have a text field (AutoComplete) and selecting will update the MultiListbox. There is a provision to remove the element from the List box. When trying to add new element from the Textbox to Listbox if AjaxFormSubmitBehavior is used, then Other field validations are getting fired and resulting in error page/message. If AjaxFormComponentUpdatingBehavior is used, then the deleted element is getting dispalyed, as it is not been deleted from the model. Also tried using by turning off the defaultFormProcessing on AjaxFormSubmitBehavior, but unable to get the required Converted Thanks in advance WNU -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-AjaxFormSubmitBehavior-skip-validation-on-form-field-updating-tp4656278.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: Re: Page ... is not stateless ... but the stateless hint is set to true!
So ... would this be a bug ? Tom Eicher wrote: Hello Martin, Put a breakpoint at Page#setStatelessHint() and see where it is called with value == true. It is not being called. That is, not before the warn message appears in the log. statelesshint=true must be the deafult...? My BasePage ist just ... public class BasePage extends WebPage { @Inject Logger log; public BasePage() { //this is line 31 from the stack trace below YYSession session = (YYSession)getSession(); ... so I feel rather innocent about the message... Cheers, Tom. Hello, I am receiving this message in the log 01:27:01,006 WARN [org.apache.wicket.Page] Page '[Page class = com.x.yy.components.__editor.Editor$EditorPage, id = 5, render count = 0]' is not stateless because it is not bookmarkable, but the stateless hint is set to true! and I have no idea why ;-) Actually, I never intended to be stateless (so far), so I thought I'd just give that stateless hint as false. But: setStatelessHint() cannot be called, since the warning is thrown directly from my page constructor's super()... And getStatelessHint() is final in Page and cannot be overridden... Stack (see: all my x calls are just super()s cascading up...) org.apache.wicket.Page.__isPageStateless(Page.java:445) org.apache.wicket.page.__AbstractPageManager.touchPage(__AbstractPageManager.java:130) org.apache.wicket.page.__PageManagerDecorator.__touchPage(__PageManagerDecorator.java:59) org.apache.wicket.page.__PageAccessSynchronizer$2.__touchPage(__PageAccessSynchronizer.java:__273) org.apache.wicket.Page.dirty(__Page.java:293) org.apache.wicket.markup.html.__WebPage.dirty(WebPage.java:__324) org.apache.wicket.Page.dirty(__Page.java:255) org.apache.wicket.Page.__componentStateChanging(Page.__java:934) org.apache.wicket.Component.__addStateChange(Component.java:__3518) org.apache.wicket.Behaviors.__add(Behaviors.java:61) org.apache.wicket.Component.__add(Component.java:4502) org.apache.wicket.devutils.__inspector.__RenderPerformanceListener.__onInstantiation(__RenderPerformanceListener.__java:52) org.apache.wicket.application.__ComponentInstantiationListener__Collection$1.notify(__ComponentInstantiationListener__Collection.java:38) org.apache.wicket.application.__ComponentInstantiationListener__Collection$1.notify(__ComponentInstantiationListener__Collection.java:34) org.apache.wicket.util.__listener.ListenerCollection.__notify(ListenerCollection.__java:80) org.apache.wicket.application.__ComponentInstantiationListener__Collection.onInstantiation(__ComponentInstantiationListener__Collection.java:33) org.apache.wicket.Component.__init(Component.java:683) org.apache.wicket.__MarkupContainer.init(__MarkupContainer.java:120) org.apache.wicket.Page.init(__Page.java:172) org.apache.wicket.Page.init(__Page.java:136) org.apache.wicket.markup.html.__WebPage.init(WebPage.java:__76) com.x.yy.base.__BasePage.init(BasePage.java:__31) com.x.yy.components.__editor.Editor$EditorPage.__init(Editor.java:97) com.x.yy.components.__editor.Editor$EditButtonPlain.__onClick(Editor.java:153) org.apache.wicket.markup.html.__link.Link.onLinkClicked(Link.__java:190) sun.reflect.__NativeMethodAccessorImpl.__invoke0(__NativeMethodAccessorImpl.java) sun.reflect.__NativeMethodAccessorImpl.__invoke(__NativeMethodAccessorImpl.java:__57) sun.reflect.__DelegatingMethodAccessorImpl.__invoke(__DelegatingMethodAccessorImpl.__java:43) java.lang.reflect.Method.__invoke(Method.java:601) org.apache.wicket.__RequestListenerInterface.__internalInvoke(__RequestListenerInterface.java:__258) org.apache.wicket.__RequestListenerInterface.__invoke(__RequestListenerInterface.java:__216) org.apache.wicket.core.__request.handler.__ListenerInterfaceRequestHandle__r.invokeListener(__ListenerInterfaceRequestHandle__r.java:240) org.apache.wicket.core.__request.handler.__ListenerInterfaceRequestHandle__r.respond(__ListenerInterfaceRequestHandle__r.java:226) org.apache.wicket.request.__cycle.RequestCycle$__HandlerExecutor.respond(__RequestCycle.java:840) org.apache.wicket.request.__RequestHandlerStack.execute(__RequestHandlerStack.java:64) org.apache.wicket.request.__cycle.RequestCycle.execute(__RequestCycle.java:254) org.apache.wicket.request.__cycle.RequestCycle.__processRequest(RequestCycle.__java:211) org.apache.wicket.request.__cycle.RequestCycle.__processRequestAndDetach(__RequestCycle.java:282) org.apache.wicket.protocol.__http.WicketFilter.__processRequestCycle(__WicketFilter.java:244) org.apache.wicket.protocol.__http.WicketFilter.__processRequest(WicketFilter.__java:188) org.apache.wicket.protocol.__http.WicketFilter.doFilter(__WicketFilter.java:267) org.apache.catalina.core.__ApplicationFilterChain.__internalDoFilter(__ApplicationFilterChain.java:__280)
Re: Icons in CalendarEvent
Hi Grazia Yes, you can display an icon in the event title using the css: .myeventclass .fc-event-title { background-color: transparent; background-image: url(path/to/my/image); background-position: left center; background-repeat: no-repeat; background-size: 12px 12px; /* the size of the image (optional) */ padding-left: 14px; /* the space left for the image display; so the title does not overlap */ } where 'myeventclass' is the css class name you set to the CalendarEvent Hope this helps, Sebastien. On Tue, Feb 12, 2013 at 7:37 PM, grazia grazia.russolass...@gmail.comwrote: Is there a way to display a skittle in a com.googlecode.wicket.jquery.ui.calendar.CalendarEvent ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Icons-in-CalendarEvent-tp4656283.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
Regarding using jetty 6 in wicket
Hi, I am trying to use Jetty 6 in wicket application as it is the requirement as per jelastic hosting. They supports jetty 6. So, I was going through the link https://cwiki.apache.org/WICKET/jetty6-testing.html https://cwiki.apache.org/WICKET/jetty6-testing.html . I downloaded jetty 6.1.23 jar and used the code given the link for Start.java. But the code is throwing compilation error in line jettyServer.start(); and jettyServer.stop(); as start() and stop() are not available. I have even tried doStart and doStop but they are not available So, if the link is correct, which jar the author must be using and in case there is any issue, is there any way of using jetty 6 in the same way we use jetty 8? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Regarding-using-jetty-6-in-wicket-tp4656286.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: Regarding using jetty 6 in wicket
Have a look to http://jetty.codehaus.org/jetty/jetty-6/apidocs/index.html or import org.apache.wicket.util.time.Duration; import org.eclipse.jetty.http.ssl.SslContextFactory; import org.eclipse.jetty.server.Connector; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.server.bio.SocketConnector; import org.eclipse.jetty.server.ssl.SslSocketConnector; import org.eclipse.jetty.util.resource.Resource; import org.eclipse.jetty.webapp.WebAppContext; public class Start { public static void main(String[] args) throws Exception { Server server = new Server(); SocketConnector connector = new SocketConnector(); // Set some timeout options to make debugging easier. connector.setMaxIdleTime(1000 * 60 * 60); connector.setSoLingerTime(-1); connector.setPort(8080); server.setConnectors(new Connector[]{connector}); WebAppContext webAppContext = new WebAppContext(); webAppContext.setServer(server); webAppContext.setContextPath(/); webAppContext.setWar(src/main/webapp); server.setHandler(webAppContext); try { System.out.println( STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP); server.start(); while (System.in.available() == 0) { Thread.sleep(5000); } server.stop(); server.join(); } catch (Exception e) { e.printStackTrace(); System.exit(100); } } } François Meillet Formation Wicket - Développement Wicket Le 12 févr. 2013 à 20:16, kshitiz k.agarw...@gmail.com a écrit : Hi, I am trying to use Jetty 6 in wicket application as it is the requirement as per jelastic hosting. They supports jetty 6. So, I was going through the link https://cwiki.apache.org/WICKET/jetty6-testing.html https://cwiki.apache.org/WICKET/jetty6-testing.html . I downloaded jetty 6.1.23 jar and used the code given the link for Start.java. But the code is throwing compilation error in line jettyServer.start(); and jettyServer.stop(); as start() and stop() are not available. I have even tried doStart and doStop but they are not available So, if the link is correct, which jar the author must be using and in case there is any issue, is there any way of using jetty 6 in the same way we use jetty 8? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Regarding-using-jetty-6-in-wicket-tp4656286.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: Re: Page ... is not stateless ... but the stateless hint is set to true!
Hi Tom, It seems a call to make the flag false is missing somewhere. Please create a ticket with a quickstart. On Tue, Feb 12, 2013 at 8:09 PM, Tom Eicher t...@teicher.net wrote: So ... would this be a bug ? Tom Eicher wrote: Hello Martin, Put a breakpoint at Page#setStatelessHint() and see where it is called with value == true. It is not being called. That is, not before the warn message appears in the log. statelesshint=true must be the deafult...? My BasePage ist just ... public class BasePage extends WebPage { @Inject Logger log; public BasePage() { //this is line 31 from the stack trace below YYSession session = (YYSession)getSession(); ... so I feel rather innocent about the message... Cheers, Tom. Hello, I am receiving this message in the log 01:27:01,006 WARN [org.apache.wicket.Page] Page '[Page class = com.x.yy.components.__**editor.Editor$EditorPage, id = 5, render count = 0]' is not stateless because it is not bookmarkable, but the stateless hint is set to true! and I have no idea why ;-) Actually, I never intended to be stateless (so far), so I thought I'd just give that stateless hint as false. But: setStatelessHint() cannot be called, since the warning is thrown directly from my page constructor's super()... And getStatelessHint() is final in Page and cannot be overridden... Stack (see: all my x calls are just super()s cascading up...) org.apache.wicket.Page.__**isPageStateless(Page.java:445) org.apache.wicket.page.__**AbstractPageManager.touchPage(** __AbstractPageManager.java:**130) org.apache.wicket.page.__**PageManagerDecorator.__**touchPage(__** PageManagerDecorator.java:59) org.apache.wicket.page.__**PageAccessSynchronizer$2.__**touchPage(__** PageAccessSynchronizer.java:__**273) org.apache.wicket.Page.dirty(_**_Page.java:293) org.apache.wicket.markup.html.**__WebPage.dirty(WebPage.java:_** _324) org.apache.wicket.Page.dirty(_**_Page.java:255) org.apache.wicket.Page.__**componentStateChanging(Page.__**java:934) org.apache.wicket.Component.__**addStateChange(Component.java:** __3518) org.apache.wicket.Behaviors.__**add(Behaviors.java:61) org.apache.wicket.Component.__**add(Component.java:4502) org.apache.wicket.devutils.__**inspector.__** RenderPerformanceListener.__**onInstantiation(__** RenderPerformanceListener.__**java:52) org.apache.wicket.application.**__**ComponentInstantiationListener** __Collection$1.notify(__**ComponentInstantiationListener** __Collection.java:38) org.apache.wicket.application.**__**ComponentInstantiationListener** __Collection$1.notify(__**ComponentInstantiationListener** __Collection.java:34) org.apache.wicket.util.__**listener.ListenerCollection.__** notify(ListenerCollection.__**java:80) org.apache.wicket.application.**__**ComponentInstantiationListener** __Collection.onInstantiation(_**_**ComponentInstantiationListener** __Collection.java:33) org.apache.wicket.Component._**_init(Component.java:683) org.apache.wicket.__**MarkupContainer.init(__** MarkupContainer.java:120) org.apache.wicket.Page.init(**__Page.java:172) org.apache.wicket.Page.init(**__Page.java:136) org.apache.wicket.markup.html.**__WebPage.init(WebPage.java:** __76) com.x.yy.base.__**BasePage.init(BasePage.java:**__31) com.x.yy.components.__**editor.Editor$EditorPage.__** init(Editor.java:97) com.x.yy.components.__**editor.Editor$EditButtonPlain.** __onClick(Editor.java:153) org.apache.wicket.markup.html.**__link.Link.onLinkClicked(** Link.__java:190) sun.reflect.__**NativeMethodAccessorImpl.__**invoke0(__** NativeMethodAccessorImpl.java) sun.reflect.__**NativeMethodAccessorImpl.__**invoke(__** NativeMethodAccessorImpl.java:**__57) sun.reflect.__**DelegatingMethodAccessorImpl._**_invoke(__** DelegatingMethodAccessorImpl._**_java:43) java.lang.reflect.Method.__**invoke(Method.java:601) org.apache.wicket.__**RequestListenerInterface.__**internalInvoke(__** RequestListenerInterface.java:**__258) org.apache.wicket.__**RequestListenerInterface.__**invoke(__** RequestListenerInterface.java:**__216) org.apache.wicket.core.__**request.handler.__** ListenerInterfaceRequestHandle**__r.invokeListener(__** ListenerInterfaceRequestHandle**__r.java:240) org.apache.wicket.core.__**request.handler.__** ListenerInterfaceRequestHandle**__r.respond(__** ListenerInterfaceRequestHandle**__r.java:226) org.apache.wicket.request.__**cycle.RequestCycle$__** HandlerExecutor.respond(__**RequestCycle.java:840) org.apache.wicket.request.__**RequestHandlerStack.execute(__** RequestHandlerStack.java:64) org.apache.wicket.request.__**cycle.RequestCycle.execute(__** RequestCycle.java:254) org.apache.wicket.request.__**cycle.RequestCycle.__** processRequest(RequestCycle.__**java:211)
Re: Dynamic Components
Hi Can I see the code. The pastebin show me a Unknown Paste ID! message on link [1]. [1] http://pastebin.com/p4cSNsUw Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-Components-tp4654308p4656289.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: Problem with InmethodGrid in IE
Hi, This should be fixed. https://github.com/wicketstuff/core/commit/264f6087b565b91fb4bdcf7fedcb666421faa603 Can you please test with master and see if you find any problems? On Tue, Feb 12, 2013 at 11:47 AM, Stefan Renz s.r...@efonds.com wrote: Hi, since migrating to Wicket 6, we have problems with InmethodGrid when rendering in IE (6 and 8). Just rendering the page containing an InMethod grid causes IE to complain about JavaScript: Inmethod.XTableManager.instance is either null or not an object (translated, I only see a German message). I created a quickstart to quickly demonstrate this behavior. Has anyone encountered that as well and an idea on how to fix that? Thanks, bye Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia
Re: Dynamic Components
Sure. After my original post we simplified the code a bit. This is the latest version we use in production. http://pastebin.com/WnxNVj2n This time I've set the paste to never expire. Met vriendelijke groet, Kind regards, Bas Gooren Op 12-2-2013 20:57, schreef Decebal Suiu: Hi Can I see the code. The pastebin show me a Unknown Paste ID! message on link [1]. [1] http://pastebin.com/p4cSNsUw Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-Components-tp4654308p4656289.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
How to remove panel in a list?
Hi, I want to use a repeater to paint my panels so now I have a listview which only remove the last item in the list. I browsed and found some people recommend to use refreshingView but I'm not sure how to populate my panel items. any suggestion? thanks LinkedListmyPanel myPanelList= new LinkedListmyPanel(); RefreshingView refreshingView = new RefreshingViewmyPanel (myPanel ){ @Override protected IteratorIModellt;myPanel getItemModels() { *//HOW to convert my panel object to IModel?* } @Override protected void populateItem(final ItemmyPanel item) { item.add(item.getModelObject()); int index = item.getIndex() ; item.add(new Label(index, (index +1 )+ .)); AjaxFallbackButton removePanelLink = new AjaxFallbackButton(remove, form) { @Override protected void onSubmit(AjaxRequestTarget ajaxRequestTarget, Form? form) { interactivePanels.remove(item.getIndex()); if (ajaxRequestTarget != null) { ajaxRequestTarget.add(wmc); } } }; removePanelLink.setDefaultFormProcessing(false); removePanelLink.setOutputMarkupId(true); item.add(removePanelLink); } }.setItemReuseStrategy(new ReuseIfModelsEqualStrategy()); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-remove-panel-in-a-list-tp4656293.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
Paul, thanks. Looks like I'm just two steps from final. My current code in MyPanel (stupid, at the moment just for test): @Override public void onRender() { MarkupStream markupStream = this.getAssociatedMarkupStream(false); while(markupStream.hasMore()) { String myString = markupStream.next().toString(); //after last html element I get null //pointer exception but markupStream.hasMore() //indicate that there is more elements myString = myString.replaceAll(menuso, someelse); System.out.println(myString); } } two more questions: 1. markupStream.hasMore() is going over MyPanel markup, when go over all markup it's going beyond border and after last html tag I get null pointer exception on markupStream.next() 2. how to write modified markup back to markupStream? Have found this: Response response = this.getResponse(); //in MyPanel - MyPanel is Component (extends Panel) response.write(CharSequence); //is this right way to write modified stream back to response? will test same with onComponentTag(ComponentTag component), based on this: http://stackoverflow.com/questions/4609871/wicket-getting-body-of-markup-element now know hot to get markupStream (2 days ago my big problem). sorry for my stupid questions, i'm still n00b ... On 12.2.2013 18:07, Paul Bors wrote: You can also do it inside the onComponentTag() or onComponentTagBody(): http://wicket.apache.org/apidocs/1.5/org/apache/wicket/Component.html#onComponentTag(org.apache.wicket.markup.ComponentTag ) http://wicket.apache.org/apidocs/1.5/org/apache/wicket/Component.html#onComponentTagBody(org.apache.wicket.markup.MarkupStream, org.apache.wicket.markup.ComponentTag) This is how I switched from a DIV to a SPAN when nesting forms since Wicket uses DIV that sometimes breaks my CSS inheritance: /** * Wicket by default will substitute inner nested forms with DIV elements, we want SPAN * elements to preserve the page layout. * * @see org.apache.wicket.Component#onComponentTag(ComponentTag) */ @Override protected void onComponentTag(final ComponentTag tag) { super.onComponentTag(tag); if(!isRootForm()) { tag.setName(span); } } ~ Thank you, Paul Bors On Tue, Feb 12, 2013 at 7:55 AM, Michael Jaruska michael.jaru...@gmail.comwrote: do you mean in beforeRender(final Component component)? On 12.2.2013 9:11, Martin Grigorov wrote: Hi, As Sven suggested - BorderBehavior does exactly this. On Tue, Feb 12, 2013 at 9:08 AM, Michael Jaruska michael.jaru...@gmail.com**wrote: no way how to modify raw html stream in actual rendering? On 11.2.2013 11:50, Michael Jaruska wrote: based on this article: https://cwiki.apache.org/WICKET/component-rendering.htmlhttps://cwiki.apache.org/**WICKET/component-rendering.**html https://cwiki.apache.org/**WICKET/component-rendering.**htmlhttps://cwiki.apache.org/WICKET/component-rendering.htmlin section onRender() it should be possible to modify markup which is going from wicket (e.g. from .html file) and modyfied it send to client. On 11.2.2013 11:34, Michael Jaruska wrote: yes, i need that raw html that comes from markup (my .html file which is my panel), in java code i will modify it (one step for put new class) and send it to client :-) as i thnik now i dont need to delete previous step because this modifying isn't in markup. so i just need to modify markup in actual render - modify markup stream. On 11.2.2013 11:26, Martin Grigorov wrote: MarkupStream gives you the raw html that comes from the .html file, i.e. from the template file. It doesn't give you the html from the previous page render. You need to send Ajax requests to update the server side state to be in sync with the client side state (modified by your JS). On Mon, Feb 11, 2013 at 11:22 AM, Michael Jaruska michael.jaru...@gmail.com wrote: in fact, my panel is menu which is modified by javascript. i need to keep track of the previous selected entry (to get know javascript to disable element) and actual element to modify (add class) for javascript. javascript need to now at a moment page rendered where is class which it is looking for. so i need to modify html markup, modify it on client side by javascript is not possible. based on this article: https://cwiki.apache.org/**WICKET/component-rendering.**htmlhttps://cwiki.apache.org/WICKET/component-rendering.html https://cwiki.apache.**org/**WICKET/component-**rendering.**htmlhttps://cwiki.apache.org/**WICKET/component-rendering.**html https://cwiki.apache.org/WICKET/component-rendering.htmlhttps://cwiki.apache.org/**WICKET/component-rendering.**html https://cwiki.apache.org/**WICKET/component-rendering.**htmlhttps://cwiki.apache.org/WICKET/component-rendering.html it should be possible modify markup generated by component (my
Re: Problem with InmethodGrid in IE
Hi Ernesto, thanks for the fix -- the table renders OK now, no error anymore in the JavaScript console. However, using a CheckboxColumn to indicate selection state, and to allow selection still yields an error in the Wicket Ajax console when clicked: INFO: focus removed from INFO: focus set on checkbox4 ERROR: An error occurred while executing Ajax request:[object Error] INFO: focus removed from checkbox4 Unfortunately, no more than that :-( When clickToSelect and clickToDeselect are true, one can change the selection at least by clicking on a cell, but the Checkbox also doesn't work in that context. That's with Wicket 6.5, wicketstuff master, same quickstart, IE 6 on Win XP. There's also the checkbox in the column header missing to select all records -- allowSelectMultiple is true, renders and behaves as expected on Chrome/MacOS, but doesn't render on IE6/WinXP (but that's a minor issue IMHO). Bye Stefan Ernesto Reinaldo Barreiro wrote: Hi, This should be fixed. https://github.com/wicketstuff/core/commit/264f6087b565b91fb4bdcf7fedcb666421faa603 Can you please test with master and see if you find any problems? On Tue, Feb 12, 2013 at 11:47 AM, Stefan Renz s.r...@efonds.com wrote: Hi, since migrating to Wicket 6, we have problems with InmethodGrid when rendering in IE (6 and 8). Just rendering the page containing an InMethod grid causes IE to complain about JavaScript: Inmethod.XTableManager.instance is either null or not an object (translated, I only see a German message). I created a quickstart to quickly demonstrate this behavior. Has anyone encountered that as well and an idea on how to fix that? Thanks, bye Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Regarding using jetty 6 in wicket
Can you not use the Wicket/Maven archetype? That has it all set up, has a Start.java - and uses Jetty version 7.6.3.v20120416 Cheers, Col. -Original Message- From: kshitiz [mailto:k.agarw...@gmail.com] Sent: 13 February 2013 06:16 To: users@wicket.apache.org Subject: Regarding using jetty 6 in wicket Hi, I am trying to use Jetty 6 in wicket application as it is the requirement as per jelastic hosting. They supports jetty 6. So, I was going through the link https://cwiki.apache.org/WICKET/jetty6-testing.html https://cwiki.apache.org/WICKET/jetty6-testing.html . I downloaded jetty 6.1.23 jar and used the code given the link for Start.java. But the code is throwing compilation error in line jettyServer.start(); and jettyServer.stop(); as start() and stop() are not available. I have even tried doStart and doStop but they are not available So, if the link is correct, which jar the author must be using and in case there is any issue, is there any way of using jetty 6 in the same way we use jetty 8? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Regarding-using-jetty-6-in-wicket-tp4656286.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 EMAIL DISCLAIMER This email message and its attachments are confidential and may also contain copyright or privileged material. If you are not the intended recipient, you may not forward the email or disclose or use the information contained in it. If you have received this email message in error, please advise the sender immediately by replying to this email and delete the message and any associated attachments. Any views, opinions, conclusions, advice or statements expressed in this email message are those of the individual sender and should not be relied upon as the considered view, opinion, conclusions, advice or statement of this company except where the sender expressly, and with authority, states them to be the considered view, opinion, conclusions, advice or statement of this company. Every care is taken but we recommend that you scan any attachments for viruses. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AbstractAjaxTimerBehavior Problem
hi guys, i'm running into problems using AbstractAjaxTimerBehavior in combination with ordinary AjaxLinks/AjaxButtons. The AbstractAjaxTimerBehavior stops working as soon as another AjaxFunctionality within the same page is executed by AjaxLinks/AjaxButtons. The purpose of my tests : I'd like to show up a Progress Bar, as soon as a Long Running Process is started by an ajax button/link. The Problem : The Timer stops, as soon as another ajax functionality is executed. Here's a snippet representing the problem (Wicket 1.5.7, jquery-ui-core 1.3.1) : Any Help to point me into the right direction would be welcome! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AbstractAjaxTimerBehavior-Problem-tp4656255.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