Re: Wicket 'hook' point for page render timing

2012-02-11 Thread robert.mcguinness
Chris, Have you looked into RenderPerformanceListener.java? added by getComponentInstantiationListeners().add(new RenderPerformanceListener()); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-hook-point-for-page-render-timing-tp4378230p4379127.html Sent fr

Re: HTML5 & offline storage

2012-02-09 Thread robert.mcguinness
nino, i'm about to start a coding effort with offline storage and wicket. i'll keep you posted with any findings. rob -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/HTML5-offline-storage-tp4372779p4372803.html Sent from the Users forum mailing list archive at Nabbl

Re: Wicket-Source: Click-through from browser back to Java source

2012-01-31 Thread robert.mcguinness
looks awesome. can't wait to try it. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Source-Click-through-from-browser-back-to-Java-source-tp4346532p4346698.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Stateless and Ajax

2012-01-31 Thread robert.mcguinness
straight copy from jolira but for 6.0. basically just keep overriding the ajax components and returning getStatelessHint to true and passing page parameters to ajax components as needed. Code is buggy so just use as reference. https://github.com/robmcguinness/wicket-stateless/blob/master/src/mai

Re: handling request to component - the wicket way

2012-01-27 Thread robert.mcguinness
threw it up on heroku in case you didn't' want to use gradle too see examples. last two components (dropdown, session login button) are incomplete at the moment. http://wicket-stateless.herokuapp.com/?counter=8 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/handling

Re: handling request to component - the wicket way

2012-01-26 Thread robert.mcguinness
i asked which version because stateless components are easier in wicket > 1.5.x. i currently have an example stateless components using wicket 6.0.x at https://github.com/robmcguinness/wicket-stateless. i had 1.5.x examples but i think i lost that history when i rebased in git. use gradle to bui

Re: handling request to component - the wicket way

2012-01-26 Thread robert.mcguinness
what version of wicket are you using? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/handling-request-to-component-the-wicket-way-tp4331722p4332046.html Sent from the Users forum mailing list archive at Nabble.com.

Re: How to refresh frame2 with an Ajax submit button in frame1 for a page using frameset?

2012-01-25 Thread robert.mcguinness
Example of monkey patching wicket 1.3 javascript to support dom find/replacement across iFrames and window.opener, maybe this will give you some ideas. https://github.com/robmcguinness/wicket-events/blob/master/src/main/java/com/robmcguinness/pages/rm3.js#L17 -- View this message in context: ht

Re: Wicket 6.0 + JavaScriptFilteredIntoFooterHeaderResponse + CssHeaderItem

2012-01-08 Thread robert.mcguinness
done. thank martin. https://issues.apache.org/jira/browse/WICKET-4328 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-0-JavaScriptFilteredIntoFooterHeaderResponse-CssHeaderItem-tp4274687p4276477.html Sent from the Users forum mailing list archive at Nabble.c

Re: Wicket 6.0 + JavaScriptFilteredIntoFooterHeaderResponse + CssHeaderItem

2012-01-07 Thread robert.mcguinness
kk, got it working again by overriding /CssAcceptingHeaderResponseFilter#accepts/ /item instanceof CssHeaderItem || item instanceof PageHeaderItem/ also, for some js frameworks like *modernizr.js* and *respond.js*, they require these libs to live in the in the tag. to target the head bucket

Wicket 6.0 + JavaScriptFilteredIntoFooterHeaderResponse + CssHeaderItem

2012-01-07 Thread robert.mcguinness
in my BasePage.html, i have a meta tag in the header: // which is created by something like: /WebComponent metaKeywords = new WebComponent(id); metaKeywords.add(new AttributeModifier("content", new ResourceModel(key)));/ after applying /JavaScriptFilteredIntoFooterHeaderResponse/, the me

Re: Back button showing a page with stale data

2011-12-25 Thread robert.mcguinness
1. use LDM or AbstractReadOnlyModel to load your data on PageA. i use LDMs to load almost all data and about the only time I don't use an LDM is during a wizard scenario, where the same object needs to be updated across request. 2. disable caching of the page so that the server is requested whe

Re: AjaxRequestTarget on page open

2011-11-28 Thread robert.mcguinness
you don't need ajax for this: https://cwiki.apache.org/confluence/display/WICKET/Modal+Windows Opening a modal window on page load (no AJAX involved) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxRequestTarget-on-page-open-tp4110093p4115584.html Sent from th

Re: Wicket Gradle build

2011-11-18 Thread robert.mcguinness
just for giggles, i enjoy Wicket + Gradle and maintain both here, slightly modified to fit my needs. you can get the gradle build files as examples for 1.5. https://github.com/robmcguinness/wicket https://github.com/robmcguinness/wicket -- View this message in context: http://apache-wicket.18

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread robert.mcguinness
i'm baffled when people say the documentation is poor, the javadocs are excellent and like igor said there are some great books (blogs too!). books and blogs get outdated fast since technlogy is rapidly advancing, so *use the source luke!*. Not only will you learn Wicket, but I guarantee your Jav

Re: Determine the latest page in multi tabbed browsing

2011-11-04 Thread robert.mcguinness
martin, would be awesome if you could through up a github project of wicket + ajax + history as an example of how to get all this to work. rob -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Determine-the-latest-page-in-multi-tabbed-browsing-tp3947526p3991713.html Se

Re: Username gets cached

2011-08-03 Thread robert.mcguinness
are you sharing the same model between pages? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Username-gets-cached-tp3715475p3715532.html Sent from the Users forum mailing list archive at Nabble.com.

Re: wicket 1.5 xml/doctype/html header: xhtml vs html5

2011-07-30 Thread robert.mcguinness
For Wicket *1.5* I've been using: ; -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-1-5-xml-doctype-html-header-xhtml-vs-html5-tp3698608p3706667.html Sent from the Users forum mailing list archiv

Re: Issues with HeaderResponseContainerFilteringHeaderResponse

2011-07-21 Thread robert.mcguinness
put your css string from db in: new StringBufferResourceStream().add(yourCssFromDB) and then you can contribute to the header properly -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Issues-with-HeaderResponseContainerFilteringHeaderResponse-tp3678890p3685782.html

Re: introducing wicket:for attribute

2011-07-08 Thread robert.mcguinness
this is going to cleanup a lot of code. much obliged. please let us know when in 1.5.x branch. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/introducing-wicket-for-attribute-tp3655611p3655660.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: Form with TextField to Label "readonly" mode

2011-06-16 Thread robert.mcguinness
like so? http://wicket.visural.net/examples/app/view-or-edit -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Form-with-TextField-to-Label-readonly-mode-tp3603438p3603631.html Sent from the Users forum mailing list archive at Nabble.com. ---

Re: 1.5-SNAPSHOT build repository

2011-06-01 Thread robert.mcguinness
https://github.com/apache/wicket -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/1-5-SNAPSHOT-build-repository-tp3565884p3566394.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: usage of JavascriptFilteredIntoFooterHeaderResponse

2011-05-19 Thread robert.mcguinness
Jeremy, Great work on this BTW. Quick question, any reason why JavaScriptFilteredIntoFooterHeaderResponse is final? Would like to: JavaScriptFilteredIntoFooterHeaderResponse javaScriptFooterResponse = new JavaScriptFilteredIntoFooterHeaderResponse(response, "footerBucket") {

Re: Serve Json in request and response

2011-05-03 Thread robert.mcguinness
maybe this will help: http://code.google.com/p/wicket-rest/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Serve-Json-in-request-and-response-tp3491991p3492685.html Sent from the Users forum mailing list archive at Nabble.com. --

Re: Repeating two tags at the same level (i.e. without a container)

2011-04-28 Thread robert.mcguinness
setRenderBodyOnly(true) on or -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Repeating-two-tags-at-the-same-level-i-e-without-a-container-tp3482548p3482566.html Sent from the Users forum mailing list archive at Nabble.com. --

Re: link within modal window should reload parent page

2011-04-10 Thread robert.mcguinness
if I remember correctly: public void renderHead(IHeaderResponse response) { response.renderOnDomReadyJavascript("if (typeof Wicket != 'undefined' && Wicket.Window) Wicket.Window.unloadConfirmation = false;"); } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/l

Re: fter 1 minute the Pagemap null is still locked by: Thread[[ACTIVE]

2011-04-04 Thread robert.mcguinness
http://apache-wicket.1842946.n4.nabble.com/After-1-minute-the-Pagemap-null-is-still-locked-by-Thread-ACTIVE-tp3047890p3049862.html -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/fter-1-minute-the-Pagemap-null-is-still-locked-by-Thread-ACTIVE-tp3423610p3425308.html Sen

Re: Apache Wicket Cookbook Published!

2011-03-25 Thread robert.mcguinness
purchased! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Cookbook-Published-tp3406012p3406821.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mai

Re: how to populate SortableDataProvider

2011-03-22 Thread robert.mcguinness
http://apache-wicket.1842946.n4.nabble.com/Storing-ArrayList-with-over-1-objects-td3343442.html#a3343499 Since then I followed Martijn's suggestion and cached the objects using the Spring module @Cacheable annotation. -- View this message in context: http://apache-wicket.1842946.n4.nabble.co

Re: Stateless Wicket and Ajax

2011-03-12 Thread robert.mcguinness
Serban, If you make the change below in StatelessWebRequestCodingStrategy the component should be found in the page. It's a copy from BookmarkableListenerInterfaceRequestTarget#processEvents. Jolira noted this might be needed in their comments. private static Component getComponent(final Page

Re: Stateless Wicket and Ajax

2011-03-12 Thread robert.mcguinness
Martin, With a custom StatelessRequestMapper and and a the change to Behaviors.getBehaviorById(int id) below I was able to get stateless components to work in 1.5 using a clone https://github.com/martin-g/wicket-stateless. This is probably not the best approach but it was a fun exercise. http://

Re: Stateless Wicket and Ajax

2011-03-11 Thread robert.mcguinness
I built a stateless site using the http://code.google.com/p/jolira-tools/wiki/stateless Jolira Tools and it worked out great, you just have to get used to using PageParameters for everything (contructors, pagination, etc). During development I had conditional breakpoints in locations that wo

Re: Storing ArrayList with over 10000 objects

2011-03-09 Thread robert.mcguinness
Martijn, Wouldn't this be a safe way to cache a list at the expense of memory (using transient)? In a lot of my projects I have to do some aggregation of the results from multiple data stores that are slow even with the caching layer. private class SomeDataProvider extends SortableDataProvide

Re: Disable form "prettyfier"

2011-03-04 Thread robert.mcguinness
possibly: http://wicket.visural.net/examples/app/view-or-edit -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Disable-form-prettyfier-tp3334921p3335271.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: Just 100K per session? That would be my dream come true! (Anyone here who has tuned session size before?)

2011-03-01 Thread robert.mcguinness
Per, Awesome summary. Much obliged. Rob -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Just-100K-per-session-That-would-be-my-dream-come-true-Anyone-here-who-has-tuned-session-size-before-tp3308014p3330455.html Sent from the Users forum mailing list archive at Nab

Re: Using StringResourceModel with BreadCrumbPanel constructor

2011-02-16 Thread robert.mcguinness
My breadcrumb panels are usually tied to some model object which provides the titles. For titles that are read from a localized file I use: @Override public String getTitle() { return Application.get().getResourceSettings().getLocalizer().getString("some.key.here",

Re: Asynchronous File Uploads

2010-12-14 Thread robert.mcguinness
not sure if this would work, but create another pagemap for your large form and submit to that (if you are trying to keep everything in the wicket world). keep the default pagemap (null) for your short lived requests. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/A

Re: Multithreaded construction of pages

2010-12-04 Thread robert.mcguinness
Can you show some code? I created something similar but I'm curious about your implementation. https://gist.github.com/706011 https://gist.github.com/706011 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Multithreaded-construction-of-pages-tp3072354p3072948.html

Re: Logout (Session destroy) on the last (stateful) page?

2010-12-04 Thread robert.mcguinness
maybe i misunderstood, but wouldn't removing the page from the page map be sufficient? we do this for our confirmation pages that show sensitive data (like temporary passwords). -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Logout-Session-destroy-on-the-last-sta

RE: After 1 minute the Pagemap null is still locked by: Thread[[ACTIVE]

2010-11-20 Thread robert.mcguinness
James, Thanks for the correction, I have been preaching it wrong for a while now :) fachhoch, Our models typically have a proxied (a.k.a. SpringBean) DAO in their definition so I have not encountered your issue. I'm not familiar with HibernateInterceptor. -- View this message in context:

RE: After 1 minute the Pagemap null is still locked by: Thread[[ACTIVE]

2010-11-20 Thread robert.mcguinness
You have to use the Open Session in View Pattern or use data transfer objects if you don't have the option. Thew OpenSessionFilter must come before you Wicket Filter declaration. Spring Hibernate sample below. OpenSessionFilter or

RE: After 1 minute the Pagemap null is still locked by: Thread[[ACTIVE]

2010-11-18 Thread robert.mcguinness
if you use Java 5, in your web application class: public class YourApplication extends WebApplication { public static final ExecutorService THREAD_POOL = Executors.newCachedThreadPool(); @Override protected void onDestroy() { super.onDestroy(); THREAD_POOL.shutdownNow(); } }

Re: After 1 minute the Pagemap null is still locked by: Thread[[ACTIVE]

2010-11-17 Thread robert.mcguinness
typically this happens when your request takes too long to render. Wicket synchronizes components at the Pagemap (null is the default Pagemap name). This makes it easier to synchronize the front end with the backend at the cost of keeping requests synchronous. If you could explain the scenario

Re: Alert on ajax activity

2010-09-06 Thread robert.mcguinness
this snippet was handed to me long ago and I've slightly modified over time. $().ready(function() { $(document).click(clickFunc); hideBusysign(); if (typeof Wicket == 'object' && typeof Wicket.Ajax == 'object') { Wicket.Ajax.registerPreCallHandler(showBusysign);

Lambdas in Java Preview - Part 5: Apache Wicket

2010-07-21 Thread robert.mcguinness
very cool: http://stronglytypedblog.blogspot.com/2010/07/lambdas-in-java-preview-part-5-apache.html -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Lambdas-in-Java-Preview-Part-5-Apache-Wicket-tp2297512p2297512.html Sent from the Wicket - User mailing list archive at

Re: getPage() and getParentPage() returns null

2010-07-18 Thread robert.mcguinness
FYI in version 1.4.10 the API gets more clean: http://apache-wicket.1842946.n4.nabble.com/new-feature-in-trunk-and-branch-Component-onInitialize-td2286924.html#a2286924 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/getPage-and-getParentPage-returns-null-tp2293003p2

Re: action on an old versioned page

2010-07-18 Thread robert.mcguinness
i think this is what you are experiencing: http://www.richardnichols.net/2010/03/apache-wicket-force-page-reload-to-fix-ajax-back/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/action-on-an-old-versioned-page-tp2293075p2293308.html Sent from the Wicket - User maili

Re: getPage() and getParentPage() returns null

2010-07-18 Thread robert.mcguinness
i need to see more code but try constructing your panels like: @Override protected void onBeforeRender() { if (!hasBeenRendered()) { // call some function that builds/add components here } super.onBeforeRend

Re: Panel update with Ajax

2010-07-11 Thread robert.mcguinness
couple of suggestions: check the ajax response using the wicket debugger on the client side and see what it returns is the panel hidden during page render? maybe setting setOutputMarkupPlaceholderTag(true) will help. if you are panel swapping then try using Panel.replaceWith(new Panel()) make

Re: StackOverFlowError

2010-07-02 Thread robert.mcguinness
this happened to me the other day. turned out to be a coding error. i wrapped a compoundpropertymodel in a propertylistview (which already wraps a model into a compoundpropertymodel). once the code was fix the problem went away. my data set was also large. about 1000 rows in a table being d

Re: modalWindow can not be closed

2010-06-17 Thread robert.mcguinness
What does your ajax return? are you using HTTPSessionStore? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/modalWindow-can-not-be-closed-tp2258304p2258336.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: jqery not getting called after ajax refresh

2010-05-04 Thread robert.mcguinness
print out some unique attribute of the element that last regains focus to console.debug, maybe http://api.jquery.com/focusin/ will help. - roberto -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/jqery-not-getting-called-after-ajax-refresh-tp1872270p2126168.html Sen

Re: mexico.com

2010-04-30 Thread robert.mcguinness
site looks great. i'm curious, how did you approach the stateless pages using Wicket? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/mexico-com-tp2077060p2077139.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: jqery not getting called after ajax refresh

2010-04-15 Thread robert.mcguinness
hopefully this helps: We can bind a simple click handler to this element: $('.clickme').bind('click', function() { // Bound handler called. }); When the element is clicked, the handler is called. However, suppose that after this, another element is added: $('body').append('
Re: jqery not getting called after ajax refresh
have you tried using jQuery 1.4 live/delegate handlers? they will attach events to elements even after initial dom load. -- View this message in context: http://n4.nabble.com/jqery-not-getting-called-after-ajax-refresh-tp1872270p1896790.html Sent from the Wicket - User mailing list archive at

Re: automatic palette sorting

sorry for the late response. in the middle of huge Wicket rewrite of old JSP app. Below is the example usage we use. I doesn't sort onload since that is done in the backend. Tested this in IE 8/7/6. Wicket.Palette.sortOptions=function(box) { var data = new Array(); for(i =

Re: automatic palette sorting

not sure if this is the best solution but this is how we solved it (basically customized the Palette component to fit our needs). in palette.js include the following function and call in Wicket.Palette.updateRecorder and Wicket.Palette.remove Wicket.Palette.sortOptions=function(box) { v

Re: Wicket merchandise?

I would dig a t-shirt. The logo is wicked :) and I would get a couple for my bosses. - rob -- View this message in context: http://www.nabble.com/Wicket-merchandise--tp19066811p19068428.html Sent from the Wicket - User mailing list archive at Nabble.com.

ModificationWatcher - Cannot track modifications to resource

I have a class => public class WorkspaceResourceStream extends org.apache.wicket.util.resource.AbstractResourceStream and wicket throws info message =>15:58:03.004 [http-8080-3] INFO o.a.w.util.watch.ModificationWatcher - Cannot track modifications to resource I understand its just informationa

Re: Where to find the Wicket DTD file?

MYoung wrote: > > Is it available somewhere? I need it for validation in the Eclipse > Amsteras HTML editor and to get rid of all its warning about wicket tags > in html file. > ...place the following in your HTML template... http://wicket.sourceforge.net/"; xmlns="http://www.w3.org/1999/xht

Re: Wicket for beginners?

tdope21 wrote: > > > I am a fairly new developer and I'm going to be using Wicket on and > upcoming project. Are there any materials for beginners out there covering > Wicket? > > > Tony > http://www.manning.com/dashorst/ Wicket in Action - Excellent Book. Also, download the examples of

Re: We are adopting Wicket in our Organization

igor.vaynberg wrote: > > it would be great if we could see the whitepaper :) > > -igor > I'll see what I can do. - rm3 -- View this message in context: http://www.nabble.com/We-are-adopting-Wicket-in-our-Organization-tp14988751p14989916.html Sent from the Wicket - User mailing list archive

We are adopting Wicket in our Organization

As I've stated before in a previous post, I work a for a company that develops software for the health care industry. It was a battle between JSF/Seam and Wicket as the framework of choice for the rewrite of the company's portal. After a whitepaper written by a colleague of mine that compared th

Re: New MEAP content for Wicket in Action available

Just bought the pdf book and it has been an excellent read so far. Kudos for the good work. Can't wait for the rest of the chapters. - rm3 Martijn Dashorst wrote: > > Last friday two new chapters of the upcoming Wicket in Action have > been released through the Manning early access program.

Re: Presented Wicket to my Company...

onent gives me all the hooks to plug this in so smoothly. > Can't think how I would > have managed this with JSF and JPA. > > So use Wicket for Web and iBatis for ORM. :) > > > > > > > > > > > > > > > > > > robert.mcguinness wrote: >> ...to tell you the truth, it impressed the

Re: Presented Wicket to my Company...

happy with the final solution but lot of xml to > maintain. > It's quicker to start wth JSF than Wicket, but when to start to customize > and use none basic widget,... welcome to hell (of configuration, > documentation,...) > > WARN: it's a 2006 experience. I've not

Presented Wicket to my Company...

...to tell you the truth, it impressed the developers but I didn't get that feeling from the top brass. I am pretty sure we will move towards Seam/JSF/Facelets (we have a presentation on that tech next week given by another developer) since it is "standard". Has anyone here worked with the Seam

Re: Reference to Image in CSS

Nevermind. Eclipse was not publishing the image to the exploded web app in Apache. Once I manually added the image the program worked accordingly. - rm3 robert.mcguinness wrote: > > Amigos: > > I know this questions has been asked before, but maybe with Wicket 1.3 > there

Reference to Image in CSS

Amigos: I know this questions has been asked before, but maybe with Wicket 1.3 there is a different solution (or maybe someone can dumb down the explanation). I have implemented a custom resource locator for the html files in Wicket a la Wiki example. Basically, I strip the prefix "com.company.

Re: I'm giving a Wicket Lunch 'n Learn at my company on the 27th

Short non-wicket question: you mentioned JSF/ SEAM package - what are > the pros and cons for you for this? > > Regards, > > Korbinian > > robert.mcguinness schrieb: >> I finally got a confirmation from my manager to go ahead with the >> presentation. I'm far fr

I'm giving a Wicket Lunch 'n Learn at my company on the 27th

I finally got a confirmation from my manager to go ahead with the presentation. I'm far from a Wicket expert, but I really like the framework and hopefully I will do a good enough job to do the framework some justice. I'll probably be on this board often to get assistance while I build my demo s