Validating DropDownChoice

2009-04-07 Thread Chris
I have a DropDownChoice defined as follows. // Model for populating Condition Dropdown IModel conditions = new LoadableDetachableModel() { public Object load() { ListConditions c = new ArrayList(); try { c = dao.getConditions(); } catch (DaoException e) { } return c; } }; //

Form that gets data form multiple models.

2009-05-07 Thread Chris
I have a form that combines data from multiple pojo's. Currently I am creating two seperate IModels inside my form, something like this. IModel model1 = new LoadableDetachableModel() { @Override protected Object load() { ... } }; IModel model2 = new LoadableDetachableModel() { @Override

Forms loading multiple times

2009-05-08 Thread Chris
I'm having a issue with forms loading multiple times.. This is really screwing up ChoiceRenderer. Has anyone else experienced this? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

DropDownChoice ID's

2009-05-08 Thread Chris
List test = Arrays.asList(new String[] { A, B, C }); add(new DropDownChoice(test, test)); How can I make the Id's match the Values? There coming through as 1,2,3. I've tried custom ChoiceRenderer, but seem to be missing something. Any help is appreciated.

TextField in ListView

2009-05-11 Thread Chris
I have a ListView that contains a TextField and Checkbox. The model is properly populating the components in populateItem(), however onSubmit() in not seeing changes. Do I have to do anything special to make changes to FormComponents in a ListView make it back into the Model? add(new

Help with Fragments

2009-06-17 Thread Chris
I'm Having trouble getting Fragments to work. Here is my markup span wicket:id=border class=mark span wicket:id=showAllergies / /span wicket:fragment wicket:id=noAllergies DUDE you are lucky! /wicket:fragment If I add a fragment like this getBorder().add(new Fragment(showAllergies,

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-04 Thread Chris
(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) br, Chris Am 04.02.2015 um 20:09 schrieb Tobias Soloschenko tobiassolosche...@googlemail.com: Hi, would you be so kind

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-04 Thread Chris
); if (event.getPayload() instanceof DeleteItem) { DeleteItem update = (DeleteItem) event.getPayload(); update.getTarget().add(this); } } Chris Am 04.02.2015 um 14:32 schrieb Grün Christoph christ...@ec.tuwien.ac.at: Sven - thank you

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-04 Thread Chris
as parameter? Is there another way to render the other panel or rewrite the payload? br, Chris Am 04.02.2015 um 20:41 schrieb Sven Meier s...@meiers.net: Hi, you're using a DeleteItem as payload of the event: send(getPage(), Broadcast.BREADTH, new DeleteItem(target)); Yet

Re: put Javascript in HTML body

2015-02-02 Thread Chris
, the JS-code of all pages will be placed in the body. How can I adapt this method, so that by default, all JS-code is placed in the header, and only that of a certain page is put in the body tag? Thanks, Chris Am 02.02.2015 um 08:05 schrieb Martin Grigorov mgrigo...@apache.org: Hi, If you

Re: Wicket JQuery Selectable Sortable combined

2015-02-02 Thread Chris
) { info(selected + items); target.add(feedback); } Thanks a lot, Chris Am 01.02.2015 um 17:58 schrieb Sebastien seb...@gmail.com: Hi Chris, Please find hereafter the link to the sample: http://www.7thweb.net/wicket-jquery-ui/sortable/SelectableSortablePage Best regards, Sebastien.

Re: GMap3 - Show title of markers permanently

2015-02-02 Thread Chris
Thanks a lot! Chris Am 02.02.2015 um 08:12 schrieb Martin Grigorov mgrigo...@apache.org mailto:mgrigo...@apache.org: aps v3 JS API and if there is a way then look in WicketStuff integration to apply it.

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-06 Thread Chris
) { } @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); attributes.setPreventDefault(true); } }; Chris Am 06.02.2015 um 19:56 schrieb

Re: Clicking a button should fire a 'CSS event'

2015-02-04 Thread Chris
isTemporary(Component component) { return true; } }); target.add(getPage()); } }); best regards, Chris Am 03.02.2015 um 23:01 schrieb Martin Grigorov mgrigo...@apache.org: On Tue, Feb 3, 2015 at 11:53 PM, Chris chris...@gmx.at

Re: Wicket JQuery Selectable Sortable combined

2015-02-04 Thread Chris
); } br, Chris Am 02.02.2015 um 17:44 schrieb Sebastien seb...@gmail.com: Hi Chris, You're welcome! The list is already the Sortable's model object, if you are able to send the item hash, you are able to retrieve the item, then you just have to invoke Sortable#onRemove(target, item) [1

Ajax - render Webmarkup-Container based on Wicket Events

2015-02-04 Thread Chris
* public class AddItem { private final AjaxRequestTarget target; public AddItem(AjaxRequestTarget target) { this.target = target; } public AjaxRequestTarget getTarget() { return target; } } Thanks. Chris

attribute modifier

2015-02-05 Thread Chris
) { return false; } }); Thanks, Chris

Re: Sortable - ConcurrentModificationException

2015-02-06 Thread Chris
I have fixed it - it was because of calling the method within the for loop. br, Chris Am 06.02.2015 um 17:56 schrieb Chris chris...@gmx.at: Hi Sebastian, I am using the method #ListUtils.move to sort a list of domain objects as soon as the method #onUpdate is called within a sortable

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-06 Thread Chris
, the #onselect method would be called for this link. Thanks a lot, Chris @Override protected void populateItem(ListItemString item) { item.add(new EmptyPanel(icon).add(AttributeModifier.append(class, ui-icon + JQueryIcon.ARROW_2_N_S))); item.add(new Label(item, item.getModelObject

Sortable - ConcurrentModificationException

2015-02-06 Thread Chris
(currentItem.getName())) { ListUtils.move(currentItem, index, selectedItems); } } } Thanks a lot, Chris

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Chris
); attributes.setAllowDefault(false); } }); @Override public void onSelect(AjaxRequestTarget target, ListString items) { ….. Chris Am 06.02.2015 um 21:20 schrieb Martin Grigorov mgrigo...@apache.org: Hi, On Fri, Feb 6, 2015 at 10:13 PM, Chris

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Chris
(AjaxRequestAttributes.EventPropagation.STOP); } }); br, Chris Am 08.02.2015 um 11:15 schrieb Sebastien seb...@gmail.com: Hi Chris, Sorry for the mistake, its attributes.setEventPropagation(EventPropagation.STOP); Best regards, Sebastien. On Fri, Feb 6, 2015 at 10:12 PM, Chris chris

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Chris
Thanks a lot, with #setAllowDefault(true) the #onEvent(AjaxRequestTarget target) of the respective webmarkupcontainer is called. Nevertheless, after that, the #onselect method of the sortable is called as well. How to prevent this call? br, Chris Am 06.02.2015 um 21:20 schrieb Martin

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Chris
Chris, As I told you earlier (but it seems it was in another post), in our case we need to retrieve the item's data-hash for retrieving and deleting the correct item So the code becomes: item.add(new AjaxLinkVoid(remove) { private static final long serialVersionUID = 1L; @Override

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Chris
Hi Sebastian, currently, I am deleting the element that should be removed from the list and render the view again. I am not calling #onRemove, but the code works, too. Therefore, I wanted to ask you if it is better to call #onRemove. br, Chris Am 08.02.2015 um 19:55 schrieb Sebastien seb

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Chris
Hi Sebastian, i also tried it with the AjaxLink. It seems that the #onselect method is always called first, and only after that the ajaxlink. So overriding the #updateAjaxAttributes may not help? thanks for your help! Chris Am 08.02.2015 um 14:17 schrieb Sebastien seb...@gmail.com: Hi

Re: Clicking a button should fire a 'CSS event'

2015-02-03 Thread Chris
I solved it via Javascript following the approach of http://blogs.sitepointstatic.com/examples/tech/animation-api/index.html http://blogs.sitepointstatic.com/examples/tech/animation-api/index.html. thanks, Chris Am 03.02.2015 um 22:52 schrieb Warren Bell warrenbe...@gmail.com: Chris

swap panels from child element

2015-02-02 Thread Chris
) { } }); ... Thanks, Chris

Clicking a button should fire a 'CSS event'

2015-02-03 Thread Chris
, the event should fire only once so I would therefore need to delete the attribute after that. Is there a more elegant solution so that the „CSS event“ is fired once when clicking the button? Thanks, Chris - To unsubscribe, e

Re: Clicking a button should fire a 'CSS event'

2015-02-03 Thread Chris
://twitter.com/mtgrigorov On Tue, Feb 3, 2015 at 11:30 PM, Chris chris...@gmx.at wrote: Hi guys, I would like to control a DIV element when clicking on a button, so that it sort of reacts to this event by „blinking“ for a short time. Currently, when clicking the button, a CSS attribute is added

Path to shared resource + Jelastic

2015-02-11 Thread Chris
FolderContentResource(new File(/opt/tomcat/webapps/test/images))); Does someone know how to set it when using Jelastic? Thanks a lot, Chris

Wicket application - no ajax without internet connection

2015-02-16 Thread Chris
for this behaviour and how can I change the settings so that it works without Internet connection on the local Tomcat? Thanks, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: @SpringBean annotation, no-arg constructor

2015-02-12 Thread Chris
Thanks a lot! Am 12.02.2015 um 20:12 schrieb Rodrigo Ribeiro Miguele rodrigo.migu...@maps.com.br: Just make your class implement an interface then use it instead your class when injecting your bean. 2015-02-12 16:17 GMT-02:00 Chris chris...@gmx.at: Hi, when injecting a bean via

@SpringBean annotation, no-arg constructor

2015-02-12 Thread Chris
without no-arg constructors? thanks a lot, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Wicket application - no ajax without internet connection

2015-02-16 Thread Chris
on. :-) Thank you. kind regards Tobias Am 16.02.15 um 21:27 schrieb Chris: Hi all, When running a Wicket application, that is deployed locally on Tomcat, and Internet being turned off, Ajax is not working and I am getting null pointer exception when calling the target methods

Re: Wicket application - no ajax without internet connection

2015-02-16 Thread Chris
. kind regards Tobias Am 16.02.15 um 21:27 schrieb Chris: Hi all, When running a Wicket application, that is deployed locally on Tomcat, and Internet being turned off, Ajax is not working and I am getting null pointer exception when calling the target methods. With Internet being enabled

Re: Wicket application - no ajax without internet connection

2015-02-17 Thread Chris
Hi Tobias, thanks a lot for your help - the problem was a Javascript file that was not locally embedded but downloaded from the internet. BR Chris Am 17.02.2015 um 07:51 schrieb Tobias Soloschenko tobiassolosche...@googlemail.com: Hi, I had a look at AjaxFallBackButton L135 - nothing

Wicket JQuery Selectable Sortable combined

2015-02-01 Thread Chris
list elements has been selected by the user? Is there a way to combine it with the Selectable approach, see http://www.7thweb.net/wicket-jquery-ui/selectable/DefaultSelectablePage?7 http://www.7thweb.net/wicket-jquery-ui/selectable/DefaultSelectablePage?7 ? Thanks a lot, Chris

GMap3 - Show title of markers permanently

2015-02-01 Thread Chris
and not only as tooltip? Thanks a lot, Chris

put Javascript in HTML body

2015-02-01 Thread Chris
\). Thanks a lot, Chris

ListPanel - update model

2015-02-14 Thread Chris
Hi all, I would like to update a list model when the user clicks on a certain link. However, when the listPanel is rendered after clicking on the link, the model seems not to be updated and still contains the old values. How to fix this? PAGE: IModelListP pModel; public SomePage() {

Re: ListPanel - update model

2015-02-15 Thread Chris
in the Ajax Link onclick method as pModel.setObject(someService.calculate()); seems to work. Chris Am 15.02.2015 um 10:40 schrieb Francois Meillet francois.meil...@gmail.com: Hi Chris, The ListModel keeps a reference on the model created at the first occurence of that line pModel = new

Call JS method after Ajax Load

2015-04-03 Thread Chris
and the Ajax is reloaded? I tried both response.render(OnDomReadyHeaderItem.forScript(method();)); as well as add target.appendJavaScript(„method();“); to the Ajax Link but this seems not to be correct. Thanks for any hints, Chris

Re: retrieve public ip adress

2015-04-13 Thread Chris
Thanks! Chris Am 13.04.2015 um 09:50 schrieb Francois Meillet francois.meil...@gmail.com: Look at the getRemoteAddr(RequestCycle requestCycle) method from org.apache.wicket.protocol.http.request.WebClientInfo François Meillet Le 13 avr. 2015 à 01:20, Chris chris

Re: Radio group add ajax behavior

2015-04-20 Thread Chris
Ok, I have fixed it by setting the id for the list items and adapting the callback function to select by id and then by name. Chris Am 20.04.2015 um 21:53 schrieb Chris chris...@gmx.at: Hi Sven, I have put the radio group in a list of items. Basically it works so when I click

Remove 'wicket' in URL

2015-04-20 Thread Chris
Hi all, I would like to delete the context ‚wicket‘ in the URL but do not like to set another one (e.g. wicket/page?2 should become /page?2. How is this possible? Thanks, Chris - To unsubscribe, e-mail: users-unsubscr

AjaxLazyLoadPanel

2015-04-20 Thread Chris
, pModel) { @Override public Component getLazyLoadComponent(String id) { return new PListPanel(pList, pModel); } }).setOutputMarkupId(true); } else { add(new PListPanel(pList, pModel); } Thanks, Chris

Re: setting cookie

2015-04-23 Thread Chris
to org.apache.wicket.request.http.WebResponse at org.apache.wicket.util.cookies.CookieUtils.getWebResponse(CookieUtils.java:362) at org.apache.wicket.util.cookies.CookieUtils.save(CookieUtils.java:304) at org.apache.wicket.util.cookies.CookieUtils.save(CookieUtils.java:190) Thanks a lot, Chris Am 23.04.2015 um 07:43

Re: Browser back - reload page/panel

2015-04-23 Thread Chris
should not be called as the list should be cached? In my case, the method is called as soon as some part of the page is reloaded via Ajax. Should this be the case? Thanks for your help, Chris IModelListSomeType poisModel = new ListModelSomeType() { @Override public ListSomeType

Re: AjaxLazyLoadPanel

2015-04-21 Thread Chris
content. The client info properties are set. Wicket App: public void init() { super.init(); getRequestCycleSettings().setGatherExtendedBrowserInfo(true); Page: WebClientInfo clientInfo = WebSession.get().getClientInfo(); clientInfo.getProperties(); br Chris Am

Re: Radio group add ajax behavior

2015-04-19 Thread Chris
Sven, you are great! Your solution works perfect. Thanks a lot for your help!! Chris Am 19.04.2015 um 11:55 schrieb Sven Meier s...@meiers.net: Hi Chris, I've opened a pull request. Hope this helps Sven On 19.04.2015 02:43, Chris wrote: Hi Sven all, when using the JS Star

Map panel - javascript

2015-04-20 Thread Chris
(); /script /wicket:panel Thanks a lot, Chris

Re: Map panel - javascript

2015-04-20 Thread Chris
PS: the map is generated using the Leaflet JS library http://leafletjs.com Am 20.04.2015 um 16:51 schrieb Chris chris...@gmx.at: Hi all, I have a map panel whose height is dynamically calculated as it should always go till the bottom of the page and above, other elements have set

Re: AjaxLazyLoadPanel

2015-04-21 Thread Chris
and Consulting https://twitter.com/mtgrigorov On Tue, Apr 21, 2015 at 2:09 PM, Chris chris...@gmx.at wrote: Andrew, thanks a lot! How could I in addition check if Javascript is enabled so that I can add a default Panel in case if it is not enabled? The following 2 lines do not work

Re: Remove 'wicket' in URL

2015-04-21 Thread Chris
Training and Consulting https://twitter.com/mtgrigorov On Tue, Apr 21, 2015 at 5:01 AM, Chris chris...@gmx.at wrote: Hi all, I would like to delete the context ‚wicket‘ in the URL but do not like to set another one (e.g. wicket/page?2 should become /page?2. How is this possible? Thanks

Sortable, with Selectable; Exception evaluating javascript: TypeError: undefined is not a function

2015-04-25 Thread Chris
(container); } } Thereby, I am getting following error. Has this something to do that some JS file has to be referenced in the panel instead of page? Thanks a lot, Chris ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: TypeError: undefined is not a function (evaluating

Re: Sortable, with Selectable; Exception evaluating javascript: TypeError: undefined is not a function

2015-04-26 Thread Chris
Sebastian, thank you for your answer! Chris Am 26.04.2015 um 20:38 schrieb Sebastien seb...@gmail.com: Hi Chris, Yes wicket includes it on demand (when it need it, like with wicket events). If you need to add a custom javascript, I recommend you to do it through

Re: Sortable, with Selectable; Exception evaluating javascript: TypeError: undefined is not a function

2015-04-26 Thread Chris
() {…} is not called although jQuery-1.11.1 seems to be loaded (via wicket). Why does this happen? Thanks Chris Am 26.04.2015 um 18:02 schrieb Sebastien seb...@gmail.com: Hi Chris, AFAIS, the only thing that I think it could typically cause an issue is calcHeight(). But the error message is misleading

Re: Sortable, with Selectable; Exception evaluating javascript: TypeError: undefined is not a function

2015-04-26 Thread Chris
Hi Sebastian, I just did this - but nevertheless, if I do not include the same version in wicket:head, $(function () is not called in html head. Does Wicket include it only for internal purposes, but not automatically for JS placed in HTML? Thanks, Chris Am 26.04.2015 um 19:33 schrieb

load JS after page refresh

2015-04-26 Thread Chris
()); } }; Thanks, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Submitlink + PageParameters

2015-04-22 Thread Chris
Hi, thanks a lot, I will try it out. br, Chris Am 22.04.2015 um 10:58 schrieb lucast lucastol...@hotmail.com: Hi Chris, Have you tried the following?: In my case, the above solution was not properly redirecting to external url in production mode, so I resorted to using

Storing data in wicket session

2015-04-21 Thread Chris
)component. Would it be good practice to store this directly in the wicket session? How to do this? A second approach would be to store it in the user object and inject this object in the individual components. Could you give me a recommendation? Thanks, Chris

Browser back - reload page/panel

2015-04-21 Thread Chris
Hi all, how is it possible to refresh a page or panel on browser back? If the user deletes an item and clicks on browser back to go to the last page, it is still displayed which should not be the case. Thanks a lot, Chris

Re: Browser back - reload page/panel

2015-04-22 Thread Chris
() { return service.retrieveList(); } Why is the service.retrieveList method called so often, I thought that this call should be only made once? Should I use another model? Thanks! Chris Am 22.04.2015 um 07:58 schrieb Martin Grigorov mgrigo...@apache.org: Hi, Wicket disables

Re: Browser back - reload page/panel

2015-04-22 Thread Chris
(); } @Override public void setObject(Serializable object) { person.setName((String) object); } })); Thanks, Chris Am 22.04.2015 um 23:16 schrieb Sebastien seb...@gmail.com: Hi Chris, #getObject is potentially called often, yes. You should never override #getObject() like

Re: AjaxLazyLoadPanel

2015-04-22 Thread Chris
Chris Am 21.04.2015 um 14:29 schrieb Martin Grigorov mgrigo...@apache.org: http://www.wicket-library.com/wicket-examples-6.0.x/hellobrowser/ shows it https://github.com/apache/wicket/tree/master/wicket-examples/src/main/java/org/apache/wicket/examples/hellobrowser Martin Grigorov

setting cookie

2015-04-22 Thread Chris
this in the #renderHead method? if (cookie == null) { response.render(OnDomReadyHeaderItem.forScript(show();)); cookieUtils.save(key, value); } else { response.render(OnDomReadyHeaderItem.forScript(hide();)); } Thanks, Chris

Re: Storing data in wicket session

2015-04-22 Thread Chris
Martin, thanks a lot for your explanations! Chris Am 22.04.2015 um 08:05 schrieb Martin Grigorov mgrigo...@apache.org: Hi, On Wed, Apr 22, 2015 at 4:48 AM, Chris chris...@gmx.at wrote: Hi all, I need so share a list of strings between some objects during a session; Within

Re: Browser back - reload page/panel

2015-04-22 Thread Chris
) then the service method is called again and this has a negative impact on performance if the database is hit all the time. With the line above this does not happen. thanks for your feedback! Chris Am 23.04.2015 um 00:30 schrieb Sebastien seb...@gmail.com: Hi Chris, thanks - but if the page has many

Re: Map panel - javascript

2015-04-20 Thread Chris
I found the solution: I had to call the method invalidateSize(); on the map. best regards, Chris Am 20.04.2015 um 18:02 schrieb Chris chris...@gmx.at: I have created a quickstart project: https://github.com/cat1000/Map Thanks, Chris Am 20.04.2015 um 17:12 schrieb Chris chris

Re: Map panel - javascript

2015-04-20 Thread Chris
I have created a quickstart project: https://github.com/cat1000/Map Thanks, Chris Am 20.04.2015 um 17:12 schrieb Chris chris...@gmx.at: PS: the map is generated using the Leaflet JS library http://leafletjs.com Am 20.04.2015 um 16:51 schrieb Chris chris...@gmx.at: Hi all, I

Re: Radio group add ajax behavior

2015-04-19 Thread Chris
cannot make a JS click event on this div, maybe as it is added later via the JS? http://stackoverflow.com/questions/1551102/jquery-star-rating-plugin-and-cancel-rating-button http://stackoverflow.com/questions/1551102/jquery-star-rating-plugin-and-cancel-rating-button thanks a lot, Chris Am

Re: Radio group add ajax behavior

2015-04-19 Thread Chris
Perfect - thanks a lot for the hint! best regards, Chris Am 19.04.2015 um 22:43 schrieb Sven Meier s...@meiers.net: Hi Christ, for AjaxFormChoiceComponentUpdatingBehavior it is important that the click happens on one of the radio elements. If the selection is cancalled, we can just use

Re: Radio group add ajax behavior

2015-04-20 Thread Chris
=\%s\]')[0];) be bound to the items so not the first input field in the DOM tree is called? The id of the items is given by Wicket... Thanks Chris Am 20.04.2015 um 03:35 schrieb Chris chris...@gmx.at: Perfect - thanks a lot for the hint! best regards, Chris Am 19.04.2015 um 22:43

Re: AjaxLazyLoadPanel

2015-04-21 Thread Chris
(); if (clientInfo.getProperties().isJavaEnabled()) … br, Chris Am 21.04.2015 um 05:24 schrieb Andrew Geery andrew.ge...@gmail.com: In AjaxLazyLoadPanel#getLazyComponent(String), you should be using the id parameter, not pList, when creating the PListPanel. Andrew @Override public Component

Submitlink + PageParameters

2015-04-21 Thread Chris
Hi all, would it be possible when having a submit link and a form+post, to nevertheless transfer the page parameters in the url? Something like action=„…?parameter=value Thanks, Chris - To unsubscribe, e-mail: users

Re: load JS after page refresh

2015-04-27 Thread Chris
I understand - I just made a quick start project with the code below that shows when setting isTemporary=true JS is not called. https://github.com/cat1000/loadjs https://github.com/cat1000/loadjs If anyone can point me to the error, it would be great. Thanks, Chris Am 27.04.2015 um 10:59

Re: load JS after page refresh

2015-04-27 Thread Chris
) { return false; } })); } Chris Am 27.04.2015 um 08:49 schrieb Martin Grigorov mgrigo...@apache.org: Hi, You can create a Behavior with #renderHead() to render the JS and #isTemporary() {return true} so that it is removed

handling non serializable objects

2015-05-02 Thread Chris
Hi all, what is the best approach to handle non-serializable objects in Wicket pages? E.g. when an object has a DAO injected and this object is a field of a Wicket page? Thanks a lot, Chris - To unsubscribe, e-mail: users

Re: handling non serializable objects

2015-05-02 Thread Chris
; } } Am 02.05.2015 um 21:28 schrieb Martin Grigorov mgrigo...@apache.org: Hi, Injected how? wicket-spring and -guice inject serializable proxies so there is no such issue with them On May 2, 2015 10:26 PM, Chris chris...@gmx.at wrote: Hi all, what is the best approach to handle non

Resource link open in new window

2015-05-03 Thread Chris
Hi all, How is it possible to add a tag target=_blank to a resource link serving a pdf so that a click on this resource link opens a new browser window? Following code does not work:l ink.add(new AttributeAppender(onclick, new Model(alert('This is my JS script');), ;)); Thanks Chris

Re: Resource link open in new window

2015-05-03 Thread Chris
(popupSettings); Thanks, Chris Am 03.05.2015 um 21:47 schrieb Martin Grigorov mgrigo...@apache.org: You should use window.open() instead. See org.apache.wicket.markup.html.link.Link#setPopupSettings Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sun, May 3

Re: handling non serializable objects

2015-05-03 Thread Chris
or 1) via the #indexOf method? Chris Am 03.05.2015 um 21:24 schrieb Martin Grigorov mgrigo...@apache.org: You can wrap it in a proxy yourself: A a = LazyInitProxyFactory.createProxy(A.class, new IProxyTargetLocator() { @Override public Object locateProxyTarget() {return

Re: JQuery progressbar

2015-05-03 Thread Chris
using the model/data in the response Header to add JS). So panel A and subpanel B have to wait till the model is loaded. Isn’t there a way to add a progress bar either to panel A or to it’s parent to show the progress of the model’s loading somehow which is rendered immediately? Thanks, Chris

Re: JQuery progressbar

2015-05-03 Thread Chris
is executed (updated) in parallel to rendering panel A? I hope this is understandable - Thanks, Chris Am 03.05.2015 um 23:22 schrieb Sebastien seb...@gmail.com: Hi Chris, the background process should be asynchronous... On Sun, May 3, 2015 at 9:30 PM, Chris chris...@gmx.at wrote: Hi

Re: JQuery progressbar

2015-05-03 Thread Chris
is still null. Thanks, Chris Am 04.05.2015 um 01:26 schrieb Sebastien seb...@gmail.com: Hi Chris, I am not sure to see the end result of what you are trying to achieve... For me there is a difference between a background process that can take some/long time (and that can be controlled

Re: load JS after page refresh

2015-04-28 Thread Chris
Perfect, thanks a lot! Chris Am 27.04.2015 um 13:21 schrieb Sven Meier s...@meiers.net: Hi, I've tried your sample project and identified the problem: Since you're adding the whole page to the AjaxRequestTarget, Wicket will immediately issue a redirect to the current page

Re: JQuery progressbar

2015-05-05 Thread Chris
Hi Sebastian, it works now. thanks, Chris Am 05.05.2015 um 22:43 schrieb Chris chris...@gmx.at: Hi Sebastian, I am trying to apply the quick start to the real project. I have the problem that the onSuccess method is not called - in the quickStart it works. Do you know a hint

Re: handling non serializable objects

2015-05-03 Thread Chris
). Via a broadcast event, a is then propagated to the panel (not page) as shown below. Thanks Chris Am 03.05.2015 um 08:56 schrieb Martin Grigorov mgrigo...@apache.org: Hi, Please show us how A instance is being created. Martin Grigorov Wicket Training and Consulting https

Re: measure time user stays on page

2015-05-10 Thread Chris
Thanks but the methods such as onBeforeRender seem not be called on browser back. Chris Am 10.05.2015 um 22:54 schrieb Marcel Barbosa Pinto marcel.po...@gmail.com: You could override the onRender method that is executed every time the page is rendered on the browser. Em 10/05/2015 17:43

measure time user stays on page

2015-05-10 Thread Chris
button, the last version of the page is displayed without loading the page via its constructor. What would be the best solution to measure the time spent on a page? Thanks, Chris - To unsubscribe, e-mail: users-unsubscr

Re: measure time user stays on page

2015-05-11 Thread Chris
Hi Martin, Safari by default has turned cache on and therefore when clicking browser-back the page is loaded from the browser’s cache. Is there a way to circumvent this issue so that I can measure the time users spent on a current page somehow? best regards, Chris Am 11.05.2015 um 08:22

Re: JQuery progressbar

2015-05-04 Thread Chris
Hi Sebastian thanks for the update! Chris Am 05.05.2015 um 01:39 schrieb Sebastien seb...@gmail.com: Hi Chris, I just had a brief look at files in the project. At least one thing which is wrong: https://github.com/cat1000/FutureProgressBar/blob/master/src/main/java/my/company/panels

JQuery progressbar

2015-05-03 Thread Chris
-ui/progressbar/DefaultProgressBarPage?5 Thanks, Chris

Re: JQuery progressbar

2015-05-03 Thread Chris
itself? update.getTarget().add(...); Thanks Am 03.05.2015 um 21:06 schrieb Chris chris...@gmx.at: Hi Sebastian, thanks - I will have a look at it. Currently, I would like to run the example, however, only the feedback panel is shown, but not the table. I have included the jquery-ui.css

Re: Resource link open in new window

2015-05-03 Thread Chris
Hi Martin, thanks - if the click is on a DIV element instead of a link, how can I add to the response a JS that the response should be opened in a new window? Chris Am 03.05.2015 um 21:15 schrieb Martin Grigorov mgrigo...@apache.org: Hi, Add target=_blank in the HTML. In Java make

Re: JQuery progressbar

2015-05-03 Thread Chris
Hi Sebastian, thanks - I will have a look at it. Currently, I would like to run the example, however, only the feedback panel is shown, but not the table. I have included the jquery-ui.css - what else might I be missing? Chris Am 03.05.2015 um 20:44 schrieb Sebastien seb...@gmail.com

Re: JQuery progressbar

2015-05-05 Thread Chris
? Is then the default model used when set or the other model? routingListPanel = new RoutingListPanel(routingPanel, routingModel); routingListPanel.setDefaultModel(routingModel); Thanks, Chris Am 05.05.2015 um 16:10 schrieb Sebastien seb...@gmail.com: Hi Chris, I had a quick look today, I just applied

Re: JQuery progressbar

2015-05-04 Thread Chris
using a Future-Task to load data from a long-running service and in the meantime would like to display the loading progress via a progressBar. This basically is working. However, after the loading has finished, the panel is not reloaded. Thanks a lot for your help! Chris Am 04.05.2015 um 11:40

Re: JQuery progressbar

2015-05-05 Thread Chris
Hi Sebastian, I am trying to apply the quick start to the real project. I have the problem that the onSuccess method is not called - in the quickStart it works. Do you know a hint but it is of course hard to figure it out from the distance. br Chris final FutureListRoute contentsFuture

  1   2   3   4   5   6   7   8   9   >