Re: 1.4 - 6.0 question

2013-04-12 Thread Marco Springer
Hello Pierre, You can also just override/extend the onComponentTag function from the Component.: Component { @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(attribute, value) } } As far as I can see, SimpleAttributeModifier doesn't

Re: How to Add JS Modifer to a Non-Form-Processing AjaxButton

2013-04-12 Thread Martin Grigorov
Hi, On Thu, Apr 11, 2013 at 10:59 PM, eugenebalt eugeneb...@yahoo.com wrote: We have an AjaxButton with the following flag, to disable default form processing (we don't want it to submit the form): ajaxButton.setDefaultFormProcessing(false); The problem is that we need to attach a JS

Incorrect javadoc for IPageRequestHandler.isPageInstanceCreated()?

2013-04-12 Thread Jonas
Hello, quick question about the javadoc of org.apache.wicket.core.request.handler.IPageRequestHandler.isPageInstanceCreated() it states '@return true iff page instance is not yet created', but looking at the implementations (e.g. in RenderPageRequestHandler), the opposite seems to be correct,

Re: Incorrect javadoc for IPageRequestHandler.isPageInstanceCreated()?

2013-04-12 Thread Martin Grigorov
Hi, This has been fixed recently with 12d3bd33e5f6da403d66d43abf6cf9d6c09152ce Now it says: /** * Checks if the page instance is already created or if it will be created when * {@link #getPage()} is called * * @return {@code true} iff page instance is already created */ boolean

Re: Atmosphere problem with JBoss 7.1

2013-04-12 Thread Raul
I have asked in this forum because the problem I have when running Wicket application, any of these examples made ​​with other frameworks, work perfectly in Jboss, https://github.com/Atmosphere/atmosphere/wiki/Getting-Started-with-the-samples And on the second question, I mean, if you can give me

Re: Atmosphere problem with JBoss 7.1

2013-04-12 Thread Martin Grigorov
Hi, The example runs fine with Jetty 7.6.+. To run it on another container you will have to provide the required libraries. It is like with databases - if you use MySQL then you need mysql-connector.jar, if you use H2Database then you need h2.jar instead. You will need to consult with Atmosphere

Generating wrong JavaScript on ajax updated

2013-04-12 Thread Alexey Mukas
Hi, Suppose I have BlinkBehaviour public static class BlinkBehaviour extends Behavior { @Override public void renderHead(Component component, IHeaderResponse response) { AjaxRequestTarget target = component.getRequestCycle().find(AjaxRequestTarget.class);

Re: Generating wrong JavaScript on ajax updated

2013-04-12 Thread Martin Grigorov
Ticket please! :-) I'm not sure I'll be able to improve that for 6.7.0 though. It has to be cut anytime now. On Fri, Apr 12, 2013 at 11:41 AM, Alexey Mukas alexey.mu...@gmail.comwrote: Hi, Suppose I have BlinkBehaviour public static class BlinkBehaviour extends Behavior {

Re: Generating wrong JavaScript on ajax updated

2013-04-12 Thread Alexey Mukas
Here is a ticker with a quick start WICKET-5142 https://issues.apache.org/jira/browse/WICKET-5142 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Generating-wrong-JavaScript-on-ajax-updated-tp4657921p4657923.html Sent from the Users forum mailing list archive at

Re: 1.4 - 6.0 question

2013-04-12 Thread Pierre Goupil
Thanks for that, Marco! Regards, Pierre On Fri, Apr 12, 2013 at 8:35 AM, Marco Springer ma...@glitchbox.nl wrote: Hello Pierre, You can also just override/extend the onComponentTag function from the Component.: Component { @Override protected void onComponentTag(ComponentTag tag)

CheckBox Column random behaviour when using wicket Bootstrap 0.8

2013-04-12 Thread David Beer
Hi All I am trying to add a checkbox column to my DataTable. This has a Model based on the SortableDataProvider to sort the table which works well. The problem is the functionality associated with the checkboxcolumn I have followed the example in Apache wicket Cookbook and updated it to use

Clearing panel when leaving page

2013-04-12 Thread Merlijn
Hi everybody, I have a dropdown panel that opens when a user enters something inside a textfield. The problem is that when the panel is open and the user goes to another page, if the back button is then used to go back to the page, the panel is still open. Now I fixed it by having a

Re: Clearing panel when leaving page

2013-04-12 Thread Martin Grigorov
Hi, On Fri, Apr 12, 2013 at 3:41 PM, Merlijn lucas...@gmail.com wrote: Hi everybody, I have a dropdown panel that opens when a user enters something inside a textfield. The problem is that when the panel is open and the user goes to another page, if the back button is then used to go back

Re: Atmosphere problem with JBoss 7.1

2013-04-12 Thread Raul
All libraries are included in the wicket application. The difference is created in the web.xml. I have set the following parameter to false init-param param-name org.atmosphere.useNative / param-name param-value true / param-value / Init-param And to deploy the application log tells me that the

Re: Busy Indicator to prevent user activity

2013-04-12 Thread saty
Thanks for all your help. I have this another case now, i have a download link. The code that downloads file is below: LinkVoid link = new LinkVoid(dataExportLink) { private static final long serialVersionUID = 1L; public void onClick() { IRequestHandler handler

Re: Busy Indicator to prevent user activity

2013-04-12 Thread Ernesto Reinaldo Barreiro
try https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html On Fri, Apr 12, 2013 at 6:18 PM, saty satya...@gmail.com wrote: Thanks for all your help. I have this another case now, i have a download link. The code that downloads file is below: LinkVoid link =

getPrefixToContextPath and optional named parameters

2013-04-12 Thread divad91
Hi, I am migrating from wicket 1.4.21 to wicket 6.6.0. In a javascript template, I need to get the path of an image. In wicket 1.4.21, I used to do : values.put(datePickerImageUrl, String.format(%simages/icn-calendar.png, RequestCycle.get().getRequest().getRelativePathPrefixToContextRoot()));

ExternalLink not render as link AjaxFallbackDefaultDataTable

2013-04-12 Thread dhongyt
I have created a AjaxFallbackDefaultDataTable and created an abstract column For some reason on the website when the table is rendered it shows up as plain text but its a div link and not a . I would like it to be a link so the blue underline will show up. Why is it just showing up in plain

Re: ExternalLink not render as link AjaxFallbackDefaultDataTable

2013-04-12 Thread Ernesto Reinaldo Barreiro
you need to create a panel and inside the panel put the link (a) and use that panel as content of the column. On Fri, Apr 12, 2013 at 8:53 PM, dhongyt davidhtr...@gmail.com wrote: I have created a AjaxFallbackDefaultDataTable and created an abstract column For some reason on the website

Re: ExternalLink not render as link AjaxFallbackDefaultDataTable

2013-04-12 Thread dhongyt
Thanks for the quick reply. I'm kind of new at this so if you could clarify a bit more. Do you mean this? Doesn't seem like Panel has a populateItem so adding a ExternalLink is giving me issues. -- View this message in context:

Re: ExternalLink not render as link AjaxFallbackDefaultDataTable

2013-04-12 Thread Ernesto Reinaldo Barreiro
panels need to have markup associated e.g. read https://cwiki.apache.org/WICKET/create-dynamic-markup-hierarchies-using-panels.html On Fri, Apr 12, 2013 at 9:17 PM, dhongyt davidhtr...@gmail.com wrote: Thanks for the quick reply. I'm kind of new at this so if you could clarify a bit

Re: ExternalLink not render as link AjaxFallbackDefaultDataTable

2013-04-12 Thread dhongyt
Thanks again Ernesto. I didn't know that I needed to create my own Panel in java and html. I thought I could do it all in one java class. -- View this message in context:

Re: ExternalLink not render as link AjaxFallbackDefaultDataTable

2013-04-12 Thread dhongyt
How do I know when I need to implement a markup? And when I do not need to? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ExternalLink-not-render-as-link-AjaxFallbackDefaultDataTable-tp4657935p4657940.html Sent from the Users forum mailing list archive at

Re: ExternalLink not render as link AjaxFallbackDefaultDataTable

2013-04-12 Thread Ernesto Reinaldo Barreiro
Your welcome! I would advise you to read a bit about wicket and what you can do with it before you get into real development... Andrea just released a free book a few days ago https://code.google.com/p/wicket-guide/ There are also other excellent options in case you can and are willing to pay

Re: ExternalLink not render as link AjaxFallbackDefaultDataTable

2013-04-12 Thread dhongyt
Thanks again, that's exactly what I need. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ExternalLink-not-render-as-link-AjaxFallbackDefaultDataTable-tp4657935p4657943.html Sent from the Users forum mailing list archive at Nabble.com.

Re: getPrefixToContextPath and optional named parameters

2013-04-12 Thread Alexey Mukas
Try this one UrlUtils.rewriteToContextRelative(images/icn-calendar.png,getRequestCycle()) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/getPrefixToContextPath-and-optional-named-parameters-tp4657934p4657944.html Sent from the Users forum mailing list archive at

Re: getPrefixToContextPath and optional named parameters

2013-04-12 Thread divad91
Great it's working ! I did not know this util class. A huge thank you ! I was writing my own getPrefixToContextPath method base on the request url ! Thanks again ! David -- View this message in context:

Update ListView with Ajax, performance.

2013-04-12 Thread Raul
Hello, I need to implement a component that can display a list of users from a ListView, at the end of the list you should see a link to see more users. What I need is to update the list of users displayed but without rendering at all in ListView again. Because right now I use a AjaxLink that

Re: Update ListView with Ajax, performance.

2013-04-12 Thread Nick Pratt
Id use one of various Javascript libs to implement this sort of functionality - I think select2 and datatables would both work for such a list (I think they both support infinite scrolling lists) that only render/send a page of information at a time. There's a wicket-select2 library, but its

Re: Update ListView with Ajax, performance.

2013-04-12 Thread Alexey Mukas
If the list is relatively small (say 20-30 items) then it's better to pull it entirely to the clientside. Show first N items use js in the bottom link to show next items without a call to the server. see this solution

Re: Update ListView with Ajax, performance.

2013-04-12 Thread Raul
Nick, I sensed that the solution was going to use Javascript, my question was if there was any easier than the framework could provide. Select2 prove. Alexy single client solution does not help me as I have a large volume of data. Regards and thanks for the guidance. -- View this message in

Re: Update ListView with Ajax, performance.

2013-04-12 Thread Nick Pratt
I guess you could build something with just the core framework, but I think it would be a lot clunkier than one of the libs - for instance, on the client side JS libs, you get events that can trigger Ajax callbacks to load the next set of data while the user is scrolling through the list - since

Re: Update ListView with Ajax, performance.

2013-04-12 Thread Martin Grigorov
Hi, I have done something like this before. I used a table in my case but you can use another HTML element. The initial layout is: -table --tbody ---tr ---tr ---tr --tbody (id + style=display:none) --tfoot ---tr a (Show more link) i.e. the first tbody shows the items, the second tbody