Re: Does automatic resource reloading in development mode still work in 6.x?
Thanks Sven. This looks like an issue with Intellij. I tested again with Eclipse and it works fine. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Does-automatic-resource-reloading-in-development-mode-still-work-in-6-x-tp4654955p4654989.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: Does automatic resource reloading in development mode still work in 6.x?
Can you send the code you use? This is on windows with a classpath set up with maven and a standalone jetty 8. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Does-automatic-resource-reloading-in-development-mode-still-work-in-6-x-tp4654955p4654983.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
Does automatic resource reloading in development mode still work in 6.x?
Ever since migrating from 1.5 to 6.x, I have had to manually recompile java classes to get the corresponding html changes to be reloaded. I tried lots of path variations but after looking into the wicket source code, it doesn't appear the resource watcher is even being started so not sure how changes are even detected. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Does-automatic-resource-reloading-in-development-mode-still-work-in-6-x-tp4654955.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: AjaxLazyLoadingPanel finished event?
Hi Martin, Just to follow up, I tried overriding getLoadingComponent but the handler is not an AjaxRequestTarget so find(AjaxRequestTarget) returns null. Could this be because I'm forcing the panel (and its tree component) to refresh when browser refresh is hit? I will open a feature request regardless. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565p4654621.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
AjaxLazyLoadingPanel finished event?
Hi Everyone, I need to update a feedback panel with some info after a lazy load panel finishes getting its data. I was looking for a method like "onPanelLoaded( AjaxRequestTarget target )" but didn't see anything so not sure how to get my feedback panel refreshed. Thanks for any tips. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 6 Atmosphere - atmosphere version 1.0.4
I'm not confident the atmosphere wicket extension can handle caching and other necessary options for a real world app. It works great for simple demo's but we are having issues with pages that have lots of self updating components and occasional VPN issues. I'm looking for a road map for wicket support of a push API since the 0.5 atmosphere-wicket and atmosphere version 1.0.0 are not robust enough for our needs. Unless my understanding of the state of the wicket atmosphere extension is way off, it looks like I'm going to abandon the extension and fallback to a polling solution that works reliably. Also other disappointing limitations like atmosphere not being able to handle web.xml filter-mapping dispatcher options made the transition less than profitable. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Atmosphere-atmosphere-version-1-0-4-tp4654048p4654054.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket 6 Atmosphere - atmosphere version 1.0.4
What are the plans for the Atmosphere push support? I have only been able to get my application working (for the most part) with atmosphere 1.0.0. Sometimes the push data gets lost and I have not been able to locate the issue so I'm hoping a newer release addresses the issue. Also, when trying some of the Atmosphere caching options with the wicket extension, I get some strange results where data gets pushed to all browser sessions that accept messages of that type even if pushed data was only meant for a specific user. Thanks, Paul -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Atmosphere-atmosphere-version-1-0-4-tp4654048.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 6 and wicket push
The atmosphere support is "experimental" right? I just migrated from 1.5 to 6.2 and used the wicket atmosphere support but I'm having issues where pushes sometimes stop working. I thought I found a way around it by turning on atmosphere broadcaster caching and message length checking but then I got strange behavior where other open browsers would get data meant only for a single client. I may post a bug but I don't quite understand all the atmosphere settings. I wish it was a clean and simple as Play 2.1 Framework but that is a stateless framework. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-and-wicket-push-tp4653766p4653864.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 6 Atmosphere - where to configure filter-mapping dispatchers?
Just got a response from Jeanfrancois in the atmosphere forum and dispatchers are currently not supported by the ReflectorServletProcessor. There is a general ticket open for better filter support: https://github.com/Atmosphere/atmosphere/issues/157 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Atmosphere-where-to-configure-filter-mapping-dispatchers-tp4653794p4653863.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket 6 Atmosphere - where to configure filter-mapping dispatchers?
Before atmosphere, i used a standard web.xml filter and the following mappings: wicket /* REQUEST INCLUDE FORWARD ERROR >From the examples, I now define the filter in the atmosphere.xml which works except I don't see a way to configure the dispatchers for FORWARD and ERROR. This is the last obstacle to my 1.5 to 6.2 migration and I already put a lot of work into it so any help is greatly appreciated. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Atmosphere-where-to-configure-filter-mapping-dispatchers-tp4653794.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: How to update a label BEFORE a form is submitted?
Thanks Martin. I am back on track after looking at those link examples and the source code for AjaxIndicatorAppender. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-label-BEFORE-a-form-is-submitted-tp4495663p4507917.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 update a label BEFORE a form is submitted?
Still looking for help on how to update page components before a long running page submit. I don't seem to see the light on chaining events from same button so if someone can provide an example it would be greatly appreciated. 1) User presses submit button 2) A label gets updated saying "button pressed!" 3) Then the submit is processed Seems I can do this with the ajax self updating timer behavior or mixing client-side javascript with wicket components but that just doesn't seem right for my scenario. Any working example of any sort will help though. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-label-BEFORE-a-form-is-submitted-tp4495663p4495663.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
Ajax status message for long requests
I would like to set a label and make a spinner visible before submitting a form that takes a long time. There are some posts on various techniques but all I really want is to chain a couple ajax events. 1) User clicks button or changes dropdown value 2) ajax update to a label saying "Task XYZ has been activated and is in process" 3) then do the actual submit. When I add an "onchange" ajax form component changing behavior, it seems to disable the original event that triggers the form submit. Thanks for any assistance! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-status-message-for-long-requests-tp4489935p4489935.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
AjaxFallbackDefaultDataTable selected row color
Is there a way to highlight the selected row after clicking on a link in a DataTable cell? public final class ColumnList extends ArrayList> { public ColumnList() { add(new AbstractColumn(new Model("Environment"), "name"){ public void populateItem(final Item> cellItem, String componentId, final IModel model) { Fragment nameCellFrag = new Fragment(componentId,"envTableCell", QuikViewEnvPage.this); AjaxLink link = new AjaxLink("envLink",model){ @Override public void onClick(AjaxRequestTarget target) { quikViewEnv = model.getObject(); form.setModel(new CompoundPropertyModel(quikViewEnv)); success(quikViewEnv.name + " selected."); *//TODO - make the row for this cellItem look selected with a css class* target.add(form); target.add(feedbackPanel); } }; nameCellFrag.add(link); link.add(new Label("envLabel", model.getObject().name)); cellItem.add(nameCellFrag); } }); add(new PropertyColumn( new Model("OHS Host"), "ohsPort", "ohsHost")); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxFallbackDefaultDataTable-selected-row-color-tp4419138p4419138.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket as a templating engine
Interesting. I may try to make a generic tag that uses the page's default property model to resolve the "abc.xyz". Will this work? Two other "cool" things I'm looking for: 1) Does support a codeBehind attribute? Say I have 20 stateless pages and I want them all to extend one BasePage and then use my tag for the fairly simple dynamic stuff. 2) To avoid "tag soup", I don't want things like if statements or loops in the templates. However, I would like to have support property model values that resolve to collections. So can someone suggest a way to use repeaters in a generic way? Something like this: If I can get this much working, I can wicket for the entire site! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-as-a-templating-engine-tp4399165p4399701.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket as a templating engine
I'm using wicket page inheritance to take care of consistent look and feel for pages but I'm stuck on one detail... In the markup for a WebPage, I need to insert dynamic text in lots of places. What is the closest wicket has to something like this: add text here , and also here , and in a few other places too. class ExamplePage extends WebPage{ String xyz; ... public String getTheThing(){ return xyz + new Date().toString(); } } I was thinking adding a label and turning off the tags, or maybe use wicket:message somehow? I am looking for a concise way to do it. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-as-a-templating-engine-tp4399165p4399165.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: 1.5.4 error handling with web.xml issue
I have no idea if this is documented and why it is needed but it works after changing web.xml to wicket /* REQUEST ERROR -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/1-5-4-error-handling-with-web-xml-error-page-issue-tp4395935p4396055.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
1.5.4 error handling with web.xml issue
Am I missing something simple? I tried about 100 misc trial and error things to get this to use my wicket page to handle 404's (and other errors). wicket /* Exception /ErrorPage 404 /ErrorPage public class ErrorPage extends WebPage { private static final long serialVersionUID = 1L; public ErrorPage(PageParameters parameters) { } @Override public boolean isErrorPage() { return true; } } public class MainApp extends WebApplication { @Override public void init() { super.init(); mountPage("ErrorPage", ErrorPage.class); ... } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/1-5-4-error-handling-with-web-xml-error-page-issue-tp4395935p4395935.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Ajax direction and roadmap regarding push-like updates
Sounds promising. As a wicket user, I would like to see a very tight integration of a push API in wicket-core. It seems most solutions are overly complicated and it would be nice to have a simple API that just let you add listeners or set up channels, then fire off a job and wicket core would take care of making sure the background updates were coordinated with normal page events and state. Similar to the Atmosphere solution, ideally there would be a lightweight, default/fallback implementation that doesn't involve adding a bunch of dependencies to wicket core. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-direction-and-roadmap-regarding-push-like-updates-tp4351890p4370083.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Ajax direction and roadmap regarding push-like updates
It is a tricky topic because what can be done from the wicket api level doesn't have to use true push for the default implementation. I don't like the push solutions out there. Ice-push looked promising because of the hype but after issues with memory leaks and overly complicated requirements, I switched to jQuery and two rest-style request handlers and it was so simple (one url for status updates and one for the request that is taking a long time). I don't know why there is resistance to a default wicket push interface that works with jquery or pure ajax to provide a default implementation. I bet most wicket developers would welcome a simple solution like this. Especially if the wicket team made the interface flexible enough to plugin alternate push solutions as they become standard. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-direction-and-roadmap-regarding-push-like-updates-tp4351890p4362477.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Ajax direction and roadmap regarding push-like updates
Thanks for the reply. The direction I'm wondering about is kind of like chained ajax requests and responses. At the API level you would update some controls in the onClick(), then tell wicket to return the updated ajax targets by calling some API method that would block until the web browser sent the next request saying it got the response and is ready to continue. So Wicket would make it a synchronous method for the developer but behind the scenes, it would be sending ajax responses and telling the web page to immediately make another request to continue the wicket server-side method. The first release could make some assumptions like the socket would just block until the code is finished for each section of code that takes a while. Then it could be refined as browsers and java servers better support push technology. Couldn't this be added to the core API and provide an interface for different implementations? I'm no expert but this is on my wish list. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-direction-and-roadmap-regarding-push-like-updates-tp4351890p4352332.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket Ajax direction and roadmap regarding push-like updates
Please correct me if i'm wrong but it looks like 1.5 and 1.6 wicket will continue to use behaviors to work with ajax events driven by user events or timers. In the real world a lot of my ajax needs occur when i need to push back page state changes and don't want to write 100 lines of code with custom javascript just to do something that could be provided by the API. Hopefully I'm just ignorant of the existing elegant solution. onClick(AjaxRequestTarget target){ //disable some controls ... doWorkThatTakesSomeTime(); // update some label with current status ... doSomeMoreWork(); // append results to an unordered list // update labels with final results and enable controls } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-direction-and-roadmap-regarding-push-like-updates-tp4351890p4351890.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