Re: Wicket as portlet
Hi, the last link is indeed currently used in Liferay environment so I can't vouch for anything else. There are neither unit nor integration tests. The code there is based on the one found in mentioned issue for Wicket 6.0 branch. We are currently in the final phase of project migration and regression tests look fine so it's working in combination with Wicket 6.3.0 and Liferay 5.2.3. We even got it running in Liferay 6 but I won't make any assumptions there. Feel free to evaluate the code, it needs some testing before we can think of pushing it to the wicketstuff-core/master. Regards, Marek On 11/28/2012 04:18 PM, Martin Grigorov wrote: On Wed, Nov 28, 2012 at 4:10 PM, Thijs vonk.th...@gmail.com wrote: Hi Colin, How much I hate to tell you, but your mostly on your own. We are currently on Wicket 1.4 for our portlets and also planning an upgrade to Wicket 6. But portlet support is at your own risk as non of the core committers is comfortable with portlets so it's no longer a core feature. Most information on the portlet stuff can be found here [1] and here[2] is a working but not fully tested code base for Wicket 6. Most of the people (that I know of) using Wicket portlet use Liferay. I don't know of any people using IBM portal. Hope this helps. Thijs [1] https://issues.apache.org/**jira/browse/WICKET-4019https://issues.apache.org/jira/browse/WICKET-4019 [2] https://github.com/**matthiasgasser/wicket-portlethttps://github.com/matthiasgasser/wicket-portlet This is another work in progress of upgrading wicketstuff-portlet to Wicket 6 : https://github.com/zeratul021/core/commit/0209130543de8490a4972f55164c9900d2951a28 As far as I know the developer also uses Liferay. On 28-11-2012 8:52, Colin Chalmers wrote: Hello all, We currently have a wicket-1.5.9 application running at a client and next year they want to migrate this to IBM Portal based on JSR-286. I have read some mixed messages on the maillist concerning wicket support for portlets and specifically the IBM Portal container so I am unsure of the current status. Before embarking on this I'd like to verify the current portlet support and am interested in hearing from anyone who has experience with Wicket portlets running inside the IBM Portal conatiner. rgds Colin --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: HTML5
Hi, HTML5 extension for wicket is in wicketstuff repisitory: https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/wicket-html5-parent I'm currently analyzing support for offline features and semantic support (microdata/scheme.org) and plan to work on it in near future. Regards, Marek On 10/31/2011 09:21 PM, anantasthana wrote: Hi, I was looking at a lot of new features of HTML5. I did see HTML 5 support was one of the things in the wicket wish list. Does any one have an idea of when and if wicket plans to support HTML5 ? It would be great if it did provide HTML5 support soon. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/HTML5-tp3961486p3961486.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Removing/Consuming FeedbackMessage
Hi, is it possible to consume or remove feedback message from session? I've tried removing through iterator but that's unsupported. I thought markRendered() would do but it doesn't help either. What I would like to do is display some messages (based on reporter) via javascript and some in feedback panel on page. I have a BasePage and in constructor I apply component filter and retrieve the javascript bound messages and use AbstractBehavior#renderHead. Unfortunately all feedback messages are displayed in feedbackPanel as well. After while I had luck using clear(filter) method. Any advice how to do this (better)? And what exactly does markRendered() do? Thanks, Marek
Re: Use of AbstractReadOnlyModel
Hi, thanks for elaboration, I used most of it as my arguments so I'm glad I didn't do it ex nihilo. The bad example you showed is exactly what do I deal with. Honestly, I don't use AROM a whole lot. LDM and PropertyModel are generally the most common. But I'm sure Igor will prove me wrong:) I hope not :) Regards, -- Marek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Use of AbstractReadOnlyModel
Hi all, I would like to ask for some examples where use of AROM comes in handy. We had a sort of dispute in one project whether it is better to provide static text, no i18n labels with Model.of(Object o) or final Object o; new AbstractReadOnlyModel(){ getObject() { return o; }; } Could someone who uses them in fitting scenarion provide some advice? It shows up in our code more and more often and I'm not convinced of that being right. That argument was augmented by ResourceModel being sublclass of AROM. Thanks, regards, -- Marek Šabo
Re: Ajax onTimer() method not called when running from embedded Jetty
Hi, thank you, it helped. If that does not bother you, could you please elaborate a little bit? Reqards, Marek On 04/05/2011 08:37 PM, Martin Grigorov wrote: you should set init-param org.apache.wicket.protocol.http.WicketFilter.FILTER_MAPPING_PARAM with value == the one you would put in web.xml - url-pattern On Tue, Apr 5, 2011 at 6:30 PM, Marek Šaboms...@buk.cvut.cz wrote: Hi all, I would like to know whether any of you ran into similar issue: I need timer behaviour to repaint panel that displays some data/stats provided by a network engine. When I run my app in tomcat or via mvn jetty:run as common webapp it gets called. But in my setup it's feasible to start embedded jetty, add wicket servlet programatically (filter doesn't work, haven't investigated yet why) and provide wicket with network engine's guice injector. This way I can see pages, navigate and list active network session stats. But the javascript | onTimer() method won't be called (chrome, opera, no errors in js console). Any suggestions? Regards, Marek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax onTimer() method not called when running from embedded Jetty
Thank you for explanation. On 04/06/2011 02:01 PM, Martin Grigorov wrote: WicketFilter needs to know the filter path it listens at. By default it extracts this information from web.xml but since you don't use web.xml you need to let Wicket know explicitly. The sequence is: 1) WicketFilter.FILTER_MAPPING_PARAM 2) @ServletFilter's initParams (when Servlet 3.0 API is used + wicketstuff-servlet3) 3) web.xml wicket-guice has no integration with GuiceServlet so this is not extracted from there. On Wed, Apr 6, 2011 at 1:55 PM, Marek Šaboms...@buk.cvut.cz wrote: Hi, thank you, it helped. If that does not bother you, could you please elaborate a little bit? Reqards, Marek On 04/05/2011 08:37 PM, Martin Grigorov wrote: you should set init-param org.apache.wicket.protocol.http.WicketFilter.FILTER_MAPPING_PARAM with value == the one you would put in web.xml - url-pattern On Tue, Apr 5, 2011 at 6:30 PM, Marek Šaboms...@buk.cvut.cz wrote: Hi all, I would like to know whether any of you ran into similar issue: I need timer behaviour to repaint panel that displays some data/stats provided by a network engine. When I run my app in tomcat or via mvn jetty:run as common webapp it gets called. But in my setup it's feasible to start embedded jetty, add wicket servlet programatically (filter doesn't work, haven't investigated yet why) and provide wicket with network engine's guice injector. This way I can see pages, navigate and list active network session stats. But the javascript | onTimer() method won't be called (chrome, opera, no errors in js console). Any suggestions? Regards, Marek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Ajax onTimer() method not called when running from embedded Jetty
Hi all, I would like to know whether any of you ran into similar issue: I need timer behaviour to repaint panel that displays some data/stats provided by a network engine. When I run my app in tomcat or via mvn jetty:run as common webapp it gets called. But in my setup it's feasible to start embedded jetty, add wicket servlet programatically (filter doesn't work, haven't investigated yet why) and provide wicket with network engine's guice injector. This way I can see pages, navigate and list active network session stats. But the javascript | onTimer() method won't be called (chrome, opera, no errors in js console). Any suggestions? Regards, Marek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [VOTE] Behavior of CheckBox With Respect to setRequired(true)
I agree with Maarten, +1 for the second behaviour (2) and let validators do the rest. -- Marek On 04/01/2011 11:23 PM, Maarten Billemont wrote: On 01 Apr 2011, at 20:56, Daniel Neugebauer wrote: I would stick with 1 (required to be checked). The main reason would be not to break compatibility with old versions. Lame reason. Don't fix bugged behavior because old code relies on it. All that got us is a renders-well-in-IE 6.0 web, which we only barely are struggling out of with the advent of Mozilla et al. who decided to do the right thing for a change. I actually used .setRequired(true) on legal checkboxes (disclaimers) in one of our applications because if I have a required checkbox I expect it to be needed to be checked. Get the context right. You are required to provide a value is not the same as You are required to provide this specific value. The context of the term required in the setRequired method refers to the former, not the latter. As Igor pointed out, the latter is accomplished with a validator. setRequired has no business looking at what your value is, just whether or not one exists. Changing that context for one component for whatever reason breaks the consistency and reliability of the API. Although I will change that in our project now that I know such a change is being discussed, I wouldn't expect others to be that observant of the issue and have unit tests that prevent anything from breaking on a future upgrade. I hope people test their web apps before they deploy a new release to production. I'm sure they'll notice the change if they do. I vote (2) +1, if it doesn't make sense to apply setRequired to a certain type of component because the HTML model simply does not permit it, giving setRequired a different meaning is not an acceptable alternative. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Resource loading
Hi all, I have a question regarding resource loading in general (sorry for little OT). What code should I use to load a property file which is located in src/main/resources folder (maven directory structure)? I tried various snippets and the only one working for me under both tomcat (standalone) and jetty (mvn jetty:run) is to load it like this (e.g. from Application class): URL url = Thread.currentThread().getContextClassLoader().getResource(modules.properties); I extracted this from log4j loading code - is this the only way or are there other ways of doing this? The point being that files from resources folder vary in different places when running mvn jetty:run, deploying war or just running jar archive. Regards, Marek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Resource loading
Hi, thanks for suggestions. I know these variants but I've never had a file in src/main/java, there's always something like org.company package before. Regards, Marek On 03/10/2011 10:00 PM, Martin Grigorov wrote: On Thu, Mar 10, 2011 at 10:37 PM, Peter Ertlpe...@gmx.org wrote: alternatively use: AnyClass.class.getResourceAsStream(...) this will look next to AnyClass.class, not in the root of the classpath Am 10.03.2011 um 19:20 schrieb Martin Grigorov: You can also use: AnyClassInSrcMainJava.class.getClassLoader().getResource(modules.properties) On Thu, Mar 10, 2011 at 4:29 PM, Marek Šaboms...@buk.cvut.cz wrote: Hi all, I have a question regarding resource loading in general (sorry for little OT). What code should I use to load a property file which is located in src/main/resources folder (maven directory structure)? I tried various snippets and the only one working for me under both tomcat (standalone) and jetty (mvn jetty:run) is to load it like this (e.g. from Application class): URL url = Thread.currentThread().getContextClassLoader().getResource(modules.properties); I extracted this from log4j loading code - is this the only way or are there other ways of doing this? The point being that files from resources folder vary in different places when running mvn jetty:run, deploying war or just running jar archive. Regards, Marek - 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.comhttp://jweekend.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Nested form submit and parent form input
Hi, thanks for answer, I was wondering if that is a normal behavior even for parent forms to process their values from input when nested form submits. Anyway, good to know it's supposed to be. Regards, -- Marek Šabo On 11/01/2010 05:49 AM, Martin Makundi wrote: Hi! Yes. Every time form is processed the form component values are processed from rawinput. That is the normal usecase = you want to know what user has entered. However, if you want to explicitly dismiss user input, you can call clearInput or set a new model. Alternatively there are behaviors like AjaxFormComponentUpdatingBehavior that do NOT submit the form. ** Martin 2010/11/1 Marek Šaboms...@buk.cvut.cz: Hi all, I'm using a form which embeds another nested form. An AjaxFormUpdatingBehavior works in parent form (updates some textfields via model changes). Problems start when I submit the nested form. Then the before-mentioned behavior stops working. While debugging I learned why - during response building textfield values are rendered from rawinput and not from updated models. Workaround is to clearInput() on those field in mentioned behavior. I would like to know it this is normal and why or ask for some guidance to reveal why after nested form submits the parent form values are rendered from raw input (parent form wasn't submitted). (The nested form component implements IFormVisitingParticipant to skip validation when parent form submits.) Regards, -- Marek Šabo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Nested form submit and parent form input
Hi, ok, that makes sense, and how would that be (if somehow) affected by using setPersistent on formComponents (afaik form cookie support)? Regards, -- Marek Šabo On 11/01/2010 09:22 AM, Martin Makundi wrote: RawInput is how the form values are kept. Otherwise you will lose all values and have an empty form for example in page repaint. ** Martin 2010/11/1 Marek Šaboms...@buk.cvut.cz: Hi, thanks for answer, I was wondering if that is a normal behavior even for parent forms to process their values from input when nested form submits. Anyway, good to know it's supposed to be. Regards, -- Marek Šabo On 11/01/2010 05:49 AM, Martin Makundi wrote: Hi! Yes. Every time form is processed the form component values are processed from rawinput. That is the normal usecase = you want to know what user has entered. However, if you want to explicitly dismiss user input, you can call clearInput or set a new model. Alternatively there are behaviors like AjaxFormComponentUpdatingBehavior that do NOT submit the form. ** Martin 2010/11/1 Marek Šaboms...@buk.cvut.cz: Hi all, I'm using a form which embeds another nested form. An AjaxFormUpdatingBehavior works in parent form (updates some textfields via model changes). Problems start when I submit the nested form. Then the before-mentioned behavior stops working. While debugging I learned why - during response building textfield values are rendered from rawinput and not from updated models. Workaround is to clearInput() on those field in mentioned behavior. I would like to know it this is normal and why or ask for some guidance to reveal why after nested form submits the parent form values are rendered from raw input (parent form wasn't submitted). (The nested form component implements IFormVisitingParticipant to skip validation when parent form submits.) Regards, -- Marek Šabo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Nested form submit and parent form input
Hi all, I'm using a form which embeds another nested form. An AjaxFormUpdatingBehavior works in parent form (updates some textfields via model changes). Problems start when I submit the nested form. Then the before-mentioned behavior stops working. While debugging I learned why - during response building textfield values are rendered from rawinput and not from updated models. Workaround is to clearInput() on those field in mentioned behavior. I would like to know it this is normal and why or ask for some guidance to reveal why after nested form submits the parent form values are rendered from raw input (parent form wasn't submitted). (The nested form component implements IFormVisitingParticipant to skip validation when parent form submits.) Regards, -- Marek Šabo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Check on LoadabledetachableModel
Thanks, seems to work as it's supposed to now. Just for the record, de-implementing the Serializable interface from entities/objects is a good hint whether the object was undergoing the serialization process (a spam of NotSerializableExceptions will follow). Regards, -- Marek Šabo On 10/22/2010 04:21 AM, Jeremy Thomerson wrote: By referencing the object within the LDM, you've made the compiler put a reference to it in your LDM class, which means it will now be serialized. Take the final off the user object and do: final int id = object.getID() so that only the id is serialized. Jeremy Thomerson http://wickettraining.com -- sent from my smart phone, so please excuse spelling, formatting, or compiler errors On Oct 21, 2010 7:26 PM, Marek Šaboms...@buk.cvut.cz wrote: Hi, I just want to ask if get the ldm concept right in my code: SortableDataProvider for DataTable: @Override public IModelUser model(final User object) {//user is a JPA entity return new LoadableDetachableModelUser(object) { private static final long serialVersionUID = 1L; @Override protected User load() { LoggerFactory.getLogger(this.getClass()).debug(should be loading {}, object); return new UserJpaController().findUser(object.getId()); } }; } The DataTable then uses PropertyColumns to get the values. Is this right? Because I'm 40:60 sure it ain't. Regards, - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Check on LoadabledetachableModel
Hi, I just want to ask if get the ldm concept right in my code: SortableDataProvider for DataTable: @Override public IModelUser model(final User object) {//user is a JPA entity return new LoadableDetachableModelUser(object) { private static final long serialVersionUID = 1L; @Override protected User load() { LoggerFactory.getLogger(this.getClass()).debug(should be loading {}, object); return new UserJpaController().findUser(object.getId()); } }; } The DataTable then uses PropertyColumns to get the values. Is this right? Because I'm 40:60 sure it ain't. Regards, -- Marek Šabo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Introduction: restauracie.sk (new project based on Wicket)
Nice one. Bookmarking... :) -- Marek Šabo On 06/04/2010 08:46 PM, David Skuben wrote: Hello Wicket comunity, let me introduce the new web project based on Wicket from Slovakia. Project name is RESTAURACIE.SK and you can find it at http://restauracie.sk. RESTAURACIE.SK is restaurant guide showcasting restaurant across the Slovakia. Today we support only slovak locale, but in the future english will be also supported. We are two programmers and we have worked on it for last two years. I would like to thanks the wicket founders and also all wicket comunity for great work with this framework. One more thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
DropDownChoice behaviour
Hi all, I would like to know what's the outcome of setting setNullValid(true) -- is it that the choices will start with an empty string choice? My problem: userField = new DropDownChoiceUser(user, facade.getAllUsers()); -- keeps the Choose one option even without setting null valid to true (wanted behaviour) after first select schoolField = new DropDownChoiceString(school, Arrays.asList(FA, FBMI, FD, FEL, FIT, FJFI, FSI, FSV, OTHER)); -- after first select, the options lose the Choose one option (I suppose that's the correct behaviour) When I set valid null value to true, I got an empty string in the choices and it works. So why without setting this on the previous component, there is ability to choose null and it' represented as Choose one? Regards, -- Marek Šabo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Status of wicket-security
Hi, I would like to know what's the status of wicket-security. I've been using it for couple of months but only for simple tasks. I would like to dig deeper but there is like on getting started and few mailing list entries. Is there someone who works on the project or is it fading? If so, what is the common choice for AA layer in wicket apps besides Spring Security? Regards, -- Marek Šabo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Guice singleton scope
Hi all, I wanted to try the @Singleton annotation in guice with sort of data facade. What concerns me is the scope of the created singleton. Javadoc says its a singleton per Injector. So if I create configured InjectorHolder and return Injector in Application's init(), does it mean there is a singleton for the whole application (thus for all sessions)? I would prefer per session based singleton, because the facade construction is not short, I don't want to instantiate it every time it's injected. Have you ever considered this -- any ideas? Regards, -- Marek Šabo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Guice singleton scope
Yes, I gather that is correct term for this. What would be the proper way to implement it? Just put a referrence with @Inject in the custom WebSession? Anyway, ad my first question, I suppose then the singleton would be in the scope of whole application thus needing synchronization. Regards On 05/26/2010 06:48 PM, James Carman wrote: That's not a singleton at all. That's a session-scoped bean. On Wed, May 26, 2010 at 12:45 PM, Marek Šabo ms...@buk.cvut.cz wrote: Hi all, I wanted to try the @Singleton annotation in guice with sort of data facade. What concerns me is the scope of the created singleton. Javadoc says its a singleton per Injector. So if I create configured InjectorHolder and return Injector in Application's init(), does it mean there is a singleton for the whole application (thus for all sessions)? I would prefer per session based singleton, because the facade construction is not short, I don't want to instantiate it every time it's injected. Have you ever considered this -- any ideas? Regards, -- Marek Šabo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Marek Šabo Server Manager Club SU CVUT Buben Bubenečská Kolej (421) XMPP: zeratul...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket and JavaFX applet
Thanks for answer, however I dumped this way as that remote configuration takes awfully long even in plain html page. So I ran it once and copied the generated applet markup and inserted into wicket markup and it works (and loads much faster). Just for record I tested js and it works 100%, problem seems to be in loading that remote js file. I once managed to load it succesfully and js debugger threw this: Error: name: Error message: Security violation stacktrace: Line 841 of linked script http://localhost:8084/neobax/resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js t.send(null); Line 817 of linked script http://localhost:8084/neobax/resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js return this.doGet(); Line 1613 of linked script http://localhost:8084/neobax/resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js req.get(); ... Regards, -- Marek Šabo On 04/17/2010 06:47 AM, Jeremy Thomerson wrote: Use Firebug and add a breakpoint in your JS to see if it is getting executed. If it's not, you may try adding a semi-colon after your startApplet() - because I don't remember if you need it when it's run in an eval. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Apr 16, 2010 at 7:25 PM, Marek Šabo ms...@buk.cvut.cz wrote: Hi all, I have problems with running javaFX applet inside wicket page. I call a loading function from ajaxLink (target.appendJavascript(startApplet());) and in html: wicket:head script src=http://dl.javafx.com/1.2/dtfx.js; type=text/javascript/script script type=text/javascript function startApplet() { fxstring = javafxString({ archive: /neobax/TrafficApplet.jar, //placed in root next to WEB-INF draggable: true, width: 640, height: 480, code: trafficapplet.Main, name: TrafficApplet }); document.getElementById('taContainer').innerHTML=fxstring; } /script /wicket:head div id=taContainer / Last thing In ajax debug is: INFO: Initiating Ajax GET request on http://dl.javafx.com/1.2/dtfx.js INFO: Invoking pre-call handler(s)... Is there any way to know more about the process for better debugging? TIA, -- Marek Šabo
Wicket and JavaFX applet
Hi all, I have problems with running javaFX applet inside wicket page. I call a loading function from ajaxLink (target.appendJavascript(startApplet());) and in html: wicket:head script src=http://dl.javafx.com/1.2/dtfx.js; type=text/javascript/script script type=text/javascript function startApplet() { fxstring = javafxString({ archive: /neobax/TrafficApplet.jar, //placed in root next to WEB-INF draggable: true, width: 640, height: 480, code: trafficapplet.Main, name: TrafficApplet }); document.getElementById('taContainer').innerHTML=fxstring; } /script /wicket:head div id=taContainer / Last thing In ajax debug is: INFO: Initiating Ajax GET request on http://dl.javafx.com/1.2/dtfx.js INFO: Invoking pre-call handler(s)... Is there any way to know more about the process for better debugging? TIA, -- Marek Šabo
Re: JavaOne in San Francisco
Yeah, same here :( On 04/09/2010 08:21 PM, James Carman wrote: I've got a G1. Unfortunately T-Mobile won't give me the new OS update yet. :( On Fri, Apr 9, 2010 at 11:12 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: but i just switched to htc hero :| -igor On Fri, Apr 9, 2010 at 7:10 AM, James Carman jcar...@carmanconsulting.com wrote: There's an app for that: http://www.gadgettastic.com/2008/07/07/iphone-beer-app/ On Fri, Apr 9, 2010 at 9:25 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: I'd like to have a beer too, but I fear it has to be viirtual. Budget this year are only for geeCon and Devoxx. Maybe overseas next year... regards Nino 2010/4/9 shetc sh...@bellsouth.net: Sounds great! -- View this message in context: http://old.nabble.com/JavaOne-in-San-Francisco-tp28180298p28190645.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Marek Šabo Server Manager Club SU CVUT Buben Bubenečská Kolej (421) XMPP: zeratul...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket JMS
Hi Jeremy, thanks for reply, I realized AJAX feedback wouldn't be that much of a hassle but integrating Spring in nearly completed project may be. Is there a way to integrate amq wicket without going through Spring? Maybe: filter filter-namesession/filter-name filter-classorg.apache.activemq.web.SessionFilter/filter-class /filter filter-mapping filter-namesession/filter-name url-pattern/*/url-pattern /filter-mapping ...and then I would need some logic to read queue (here is where my understanding of broker api runs out) during those AjaxUpdates. Regards, -- Marek Šabo On 03/29/2010 06:39 AM, Jeremy Thomerson wrote: I have used ActiveMQ (and the Spring integration(s)) extensively with Wicket. But I have not really provided AJAX feedback associated with it. This would be fairly easy to do. Just have an AJAX timer that polls a middle-tier service to get the status of the pending changes / work / etc -- Jeremy Thomerson http://www.wickettraining.com On Sun, Mar 28, 2010 at 7:32 PM, Marek Šabo ms...@buk.cvut.cz wrote: Hi all, I would like to ask if anyone ever tried asynchronous messaging systems like JMS with Wicket. I will be implementing some modules which will do some work on configuration files and then return. Is there a way to get these events to wicket asynchronously and then probably contact user via ajax about it? TIA, -- Marek Šabo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket JMS
On 03/29/2010 12:48 PM, Uwe Schäfer wrote: just for the record: we´re using hornetq (used to be activemq) with guice without being tied to the requestcycle. Hi, I'm using guice as well, could you probably post some example or at least hint on what to inject and how to receive message in wicket? TIA, -- Marek Šabo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wickit JMS
Hi all, I would like to ask if anyone ever tried asynchronous messaging systems like JMS with Wicket. I will be implementing some modules which will do some work on configuration files and then return. Is there a way to get these events to wicket asynchronously and then probably contact user via ajax about it? TIA, -- Marek Šabo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Label text wrapping
Hi all, I have a question, I was doing some modal windows to display user data and user object contains a long string. How can I control text wrapping or say dynamically resize modal window according to that text length? Actually wrapping would be just fine I don't mind vertical scrollbars but horizontal ones. Can MultiLineLabel help here? I couldn't find anything because keyword wrap is bound to model wrapping in wicket... TIA Marek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: UI Layout
DelayedAssemblyWebPage { protected void assembleComponents() throws Exception { // Add some components. // Panels to be defined in subclasses are added // by calling: // // add( createPanel_A(a_wicket_id) ); // // and // // add( createPanel_B(some_other_wicket_id) ); } abstract protected Panel createPanel_A( String panelWicketID ); abstract protected Panel createPanel_B( String panelWicketID ); } Concrete child pages would look something like this: public class OneConcreteChildPage extends MyApplicationBasePage { protected Panel createPanel_A( String panelWicketID ) { return new WhateverPanel(panelWicketID,...); } protected Panel createPanel_B( String panelWicketID ) { return new SomeOtherPanelType(panelWicketID, ...); } } This can be generalized in that the application base page can have however many component-defining abstract methods you please. Furthermore, one can generalize this to a page hierarchy of any depth, since a semi-base page can define additional abstract methods to be called by its implementation of createPanel_A() or createPanel_B(). -Frank -Original Message- From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] Sent: Friday, February 26, 2010 7:50 AM To: users@wicket.apache.org Subject: Re: UI Layout For me it seems it would very confusing if I only had one page. I'd prefer pages that are target against their specific functionality, keeping code simpler. I'd still be using panels though, giving the benefit of ajax, role base plus all the other stuff. my 2 centavos -Nino 2010/2/26 Josh Kamau joshnet2...@gmail.com Wicket offers high level of flexibility when it comes to page layout. So i ask, what are the best practices? is it ok if i use panels only and one main layout page? Kind regards Josh. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Marek Šabo Server Manager Club SU CVUT Buben Bubenečská Kolej (421) XMPP: zeratul...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AjaxUpdating ends up with null model objects
Hi all, I would like to ask something about ajax and form submitting, I'm definitely missing something from concepts. I'll try to describe as the code is too long to post. I have two ajaxcheckboxes which we can think of as binary switches. Inside their onUpdate method I call a method which has four cases of reading data from db and this method updates specific dropdownchoice list with setChoices. Form has additional three fields. Im using Compound property model with ValueMap. When i submit the form I info() the valuemap and i only see those three non-ajaxified component's values and I checked that ajaxified components have null modelobjects. I suppose I'm missing some simple switch method but it could be more complex. So, whats that something I'm not aware of, that makes my modelobjects which are updated during ajax requests nullified? Best regards, -- Marek Šabo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
FeedbackMessage Localization
Hi all, I was wondering, is there a way to localize messages comming from info() and error() form methods via property files? I could do it via session logic but I'm interested in other ways. Regards, -- Marek Šabo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FeedbackMessage Localization
@Igor - works like a charm @Andrew - took me a while to play with hierarchy but got it working Thank you both, regards -- Marek Šabo On 01/31/2010 07:16 PM, Igor Vaynberg wrote: info(getstring(key)) -igor On Sun, Jan 31, 2010 at 6:12 AM, Marek Šabo ms...@buk.cvut.cz wrote: Hi all, I was wondering, is there a way to localize messages comming from info() and error() form methods via property files? I could do it via session logic but I'm interested in other ways. Regards, -- Marek Šabo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Localization properties overriding
Hi all, I have a question regarding property binding when using localized property files, consider following: UserHomePage page has one property for localization and that is title=User's Home which is then used in markup as: head titlewicket:message key=title //title /head ... This page has inside an UserAddPanel with form with following properties: formContainer.uaForm.title=Title formContainer.uaForm.name=First Name ... for markup: wicket:panel div wicket:id=formContainer form wicket:id=uaForm label for=titlewicket:message key=title //label label for=namewicket:message key=name //label ... The name and other labels are generated fine (no reason not to) but the title is set to User's Home which is not desired. I would understood this behavior if I hadn't defined such 'fine-grained' property as formContainer.uaForm.title but why is it overriden when there is precise declaration on lower level? Is there a way to achieve behavior which I described or do I have to rename title in form to something else? TIA, Marek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Localization properties overriding
Hi Erik, I understand this - I use it eg. HomePage has title=Home, UserHomePage has title=User's Home etc... and it works top-down as expected. But why does this topmost property title, that should bind itself to key=title of wicket:messages attached to page component itself, got bounded to title two levels deeper in hierarchy precisely defined in lower most level (top-down should use the last found, shouldn't it?). According to what happens my UserHomePage should read only Home Page in it's title Sorry to bother, regards, Marek On 01/25/2010 03:39 PM, Erik van Oosten wrote: He Marek, The idea of Wicket i18n is that when you use a component, you can override its default texts with your own. That's why the lookup is top-down and not bottom-up. To solve this you'll need to use a more fine-grained name for the home page's title. Regards, Erik. Marek Šabo write: Hi all, I have a question regarding property binding when using localized property files, consider following: UserHomePage page has one property for localization and that is title=User's Home which is then used in markup as: head titlewicket:message key=title //title /head ... This page has inside an UserAddPanel with form with following properties: formContainer.uaForm.title=Title formContainer.uaForm.name=First Name ... for markup: wicket:panel div wicket:id=formContainer form wicket:id=uaForm label for=titlewicket:message key=title //label label for=namewicket:message key=name //label ... The name and other labels are generated fine (no reason not to) but the title is set to User's Home which is not desired. I would understood this behavior if I hadn't defined such 'fine-grained' property as formContainer.uaForm.title but why is it overriden when there is precise declaration on lower level? Is there a way to achieve behavior which I described or do I have to rename title in form to something else? TIA, Marek -- Marek Šabo Chief Server Manager Club SU CTU Buben Bubenečská Kolej Terronská 28, Prague 16000 XMPP: zeratul...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Localization properties overriding
Hi, well I see where was the misunderstanding. The FIRST result found. What I'm used to when going from top to down is the LAST definition takes effect. Well maybe I will see to it when I will do some modules but for now I'll just rename it and won't use single name properties anymore to avoid this kind of problems. Thanks On 01/25/2010 04:05 PM, Erik van Oosten wrote: The search for any given property key is top-down, the first result is found. Why? As I said, to allow an override of the component (which may be third party). Regards, Erik. Marek Šabo wrote: Hi Erik, I understand this - I use it eg. HomePage has title=Home, UserHomePage has title=User's Home etc... and it works top-down as expected. But why does this topmost property title, that should bind itself to key=title of wicket:messages attached to page component itself, got bounded to title two levels deeper in hierarchy precisely defined in lower most level (top-down should use the last found, shouldn't it?). According to what happens my UserHomePage should read only Home Page in it's title Sorry to bother, regards, Marek On 01/25/2010 03:39 PM, Erik van Oosten wrote: He Marek, The idea of Wicket i18n is that when you use a component, you can override its default texts with your own. That's why the lookup is top-down and not bottom-up. To solve this you'll need to use a more fine-grained name for the home page's title. Regards, Erik. Marek Šabo write: Hi all, I have a question regarding property binding when using localized property files, consider following: UserHomePage page has one property for localization and that is title=User's Home which is then used in markup as: head titlewicket:message key=title //title /head ... This page has inside an UserAddPanel with form with following properties: formContainer.uaForm.title=Title formContainer.uaForm.name=First Name ... for markup: wicket:panel div wicket:id=formContainer form wicket:id=uaForm label for=titlewicket:message key=title //label label for=namewicket:message key=name //label ... The name and other labels are generated fine (no reason not to) but the title is set to User's Home which is not desired. I would understood this behavior if I hadn't defined such 'fine-grained' property as formContainer.uaForm.title but why is it overriden when there is precise declaration on lower level? Is there a way to achieve behavior which I described or do I have to rename title in form to something else? TIA, Marek -- Marek Šabo Chief Server Manager Club SU CTU Buben Bubenečská Kolej Terronská 28, Prague 16000 XMPP: zeratul...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Component hierarchy question
Hi, suppose you have menubar with ajaxfallbacklinks that you want to change panels in the main area. new AjaxFallbackLink(search) { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { Panel np = new UserSearchPanel(moduleMain); moduleMain.replaceWith(np); moduleMain = np; target.addComponent(moduleMain); } } Simple question - why do we need to use replaceWith? Would someone please explain how the component hierarchy works, I thought that simply assigning new object to referrence would suffice. Thanks, Marek -- Marek Šabo Server Manager Club SU CVUT Buben Bubenečská Kolej (421) XMPP: zeratul...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Component hierarchy question
Hi, thanks, sorry about silly question I forgot that java passes method arguments by value and copies references. Maybe I got confused with c++ pointers. Regards, -- Marek Šabo On 01/21/2010 03:48 PM, Alexander Monakhov wrote: Hi. I'm not sure. But when you call add() method you pass reference to the certain component. If you create new object and assign reference to it, you just create reference to new object, but old one references to old object. For example, // here is new component creation 1. Component c = new Component( ); 2. add( c );// add to component tree 3. c = new Component( .. );//initialize another component 4. replaceWith( c );// replace old component with new one if are you asking why sould 4th lines be invoked, the question is simple, you have to push reference to new component to component tree. If you are why doesn't it work with out 4th, try to read about references in Java. Best regards, Alexander. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Breadcrumb title
Hi all, I would like to ask if anyone knows how to show e.g. read-only breadcrumb in title tag. I got internationalized page and I was thinking about sort of title properties from i18n property files for specific pages but I'm using inheritance (sort of header-footer etc. superclass) and title is in superclass markup so I have only one property value for all subclasses. Any ideas?? TIA, Marek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Breadcrumb title
Thanks for suggestion, I know what you mean - chaining visited pages as constructor parameters, nice and dynamic. However in my case I can go on with static solution where each page has its own title via wicket:message tag and this needs to be wrapped in wicket:header, that way it will be contributed even under inheritance. Regards, Marek On 01/19/2010 05:26 PM, Pedro Santos wrote: There are something about on the list, you can receive as contructor parameter the last page or component visited. Then you assemble the title like: this.assembledTitle = lastComponent.assembledTitle + this.getLocalizer().getString(TITLE, this) On Tue, Jan 19, 2010 at 1:41 PM, Marek Šabo ms...@buk.cvut.cz wrote: Hi all, I would like to ask if anyone knows how to show e.g. read-only breadcrumb in title tag. I got internationalized page and I was thinking about sort of title properties from i18n property files for specific pages but I'm using inheritance (sort of header-footer etc. superclass) and title is in superclass markup so I have only one property value for all subclasses. Any ideas?? TIA, Marek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Marek Šabo Server Manager Club SU CVUT Buben Bubenečská Kolej (421) XMPP: zeratul...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: LegUp updated for latest version of Wicket, and other frameworks
Looks good, sure will save time of new explorers. Are you going to add more archetypes in future (what's next)? I saw hibernate there, maybe ibatis or cayenne would be fine, although they are not that hard to figure out. I will try the wicket-guice myself. Good luck, Marek On 01/15/2010 05:34 AM, Jeremy Thomerson wrote: This looks really great guys! I just created a project with it and looked through it and it will be a great leg up for anyone needing to start a project and needing help wiring all the pieces together. Thanks!! -- Jeremy Thomerson http://www.wickettraining.com On Thu, Jan 14, 2010 at 11:03 AM, Richard Wilkinson richardjohnwilkin...@googlemail.com wrote: We have updated LegUp [1] so you can now create projects using the latest (compatible) versions of Wicket, Spring, Guice, JPA (1.0), Warp, Hibernate... LegUp is a collection of Maven archetypes to help you get quickly and easily started with your enterprise projects. Wicket 1.4.5, Guice 2.0 Wicket 1.4.5, Spring 3.0.0, JPA 1.0 Wicket 1.4.5, Guice 1.0, WarpPersist 1.0, Hibernate 3.2 Wicket 1.4.5, Guice 1.0, WarpPersist 1.0, JPA 1.0 Spring 3.0.0, JPA 1.0 Spring 3.0.0, JDBC The source is available on the LegUp Google code project [2]. Drop us a line at [3] if you have any ideas for or would like to contribute new archetypes. -- Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.com [1] http://www.jweekend.com/dev/LegUp [2] http://code.google.com/p/legup/ [3] http://www.jweekend.com/dev/ContactUs - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Templates in Wicket
Hi everyone, I would like to know if someone can share their experience with graphical templates under wicket. It's easy to provide markup code for designers, they just need to preserve hierarchy of wicket elements, right? But how do you cope with things like attribute modifier inside application and dynamic loading of other css files? Or what is the most common approach to this kind of thing? Regards, Marek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Templates in Wicket
Yep, thank you all for sharing your insights, anyway, most of the time I work with single ui projects. I was just curious how you guys do it so I would have PreparedStatement for pointy haired bosses :) On 01/15/2010 06:55 PM, Douglas Ferguson wrote: That's what we are doing as well. The big gotcha is when you end up doing something in code, it throws them off. I.E. SimpleAttributeModifier, D/ On Jan 15, 2010, at 10:14 AM, Jonathan Locke wrote: we did almost exactly the same thing at thoof. although occasionally you'll get a designer stuck on a build problem or something, it works really well. definitely the best approach in my mind. igor.vaynberg wrote: so you are giving designers markup from a wicket app? why not just let them run the app, that way they can go in and do things themselves? in my company out developers checkout the code and run mvn jetty to get the app up and running with markup reloading, then they go in with textmate or coda and tweak the markup. -igor On Fri, Jan 15, 2010 at 8:00 AM, Marek Šabo ms...@buk.cvut.cz wrote: Hi everyone, I would like to know if someone can share their experience with graphical templates under wicket. It's easy to provide markup code for designers, they just need to preserve hierarchy of wicket elements, right? But how do you cope with things like attribute modifier inside application and dynamic loading of other css files? Or what is the most common approach to this kind of thing? Regards, Marek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Templates-in-Wicket-tp27179274p27179469.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Marek Šabo Server Manager Club SU CVUT Buben Bubenečská Kolej (421) XMPP: zeratul...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [whishlist] JS libraries
Maybe some form validation library would come handy as it would save roundtrips for explicit things like empty form fields etc. Regards, Marek nino martinez wael wrote: Hi This is a whishlist for js that should be integrated with wicket but arent.. So please go ahead and whish, I just might do an integration if it's something I need aswell :) regards Nino - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Response with FeedBackMessage
Thanks both of you, I already tried both of it, my problem was in fact that first option had null reporter and the second one had reporter of page. And as you may guess I was using componentfilter for this form. I will make a workaround for now. Is there any possibility of changing the reporter to the form where this code is or should I dereferrence it down like this: MyPage page = new MyPage(); page.getPanel().getForm().info() setResponsePage(page); Marek Martijn Dashorst wrote: or: MyPage page = new MyPage(); page.info(...); setResponsePage(page); Martijn On Fri, Jan 1, 2010 at 6:43 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: if you do getSession().info() 2010/1/1 Marek Šabo ms...@buk.cvut.cz: Hi, I would like to ask how can I achieve propagation of a feedback message to a page that is set in setResponsePage(). Consider this: try { ... info(); setResponsePage(); } catch (e) { error(e); } Of course the error is propagated, is it possible or can you suggest a workaround to achieve propagation of feedback message into response? Thanks, regards -- Marek Šabo Chief Server Manager Club SU CVUT Buben Bubenečská Kolej Terronská 28, Prague 16000 XMPP: zeratul...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Response with FeedBackMessage
Hi, I would like to ask how can I achieve propagation of a feedback message to a page that is set in setResponsePage(). Consider this: try { ... info(); setResponsePage(); } catch (e) { error(e); } Of course the error is propagated, is it possible or can you suggest a workaround to achieve propagation of feedback message into response? Thanks, regards -- Marek Šabo Chief Server Manager Club SU CVUT Buben Bubenečská Kolej Terronská 28, Prague 16000 XMPP: zeratul...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket-security: Login component access
Hi, I would like to ask a few question regarding wicket-security. I got my wicket page uprunning with basic auth and two principals. However, I'm not using login page but login panel which is in header of all pages. What I did is that I have HeaderFooter class (contains condition that makes the login panel or logout link invisible based on isUserAuth.. method of WaspSession) which is superclass of HomePage where the user is supposed to login. And then I have the same SecureHeaderFooter which contains only logout link and that is superclass of all secure pages. I don't like this pretty much so I'm trying to figure auth something like component based security. That non-authenticated user should see login panel in the header and authenticated the logout link. Second question is, when i tried to access secured page from homepage it just refreshed the page as long as i was not logged in -- how do I propagate this access denied message so user can see it. Because when I logged in and tried to access page where my principal did not have rights I got orange wicket access denied page. Thanks in advance regards -- Marek Šabo Chief Server Manager Club SU CVUT Buben Bubenečská Kolej Terronská 28, Prague 16000 XMPP: zeratul...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Disable action
Hi, How would a declaration of disable action for swarm look like? Suppose you have one login-panel that is granted for everyone to see and logoof-one which is for logged users and they cant see each others panel. So I would define component permission on that component as disabled what would overide the default grant. Tia, regards -- Marek Šabo Chief Server Manager Club SU CVUT Buben Bubenečská Kolej Terronská 28, Prague 16000 XMPP: zeratul...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org