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

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

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.

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: 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:

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: 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

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:

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

Wicket 6.0 + JavaScriptFilteredIntoFooterHeaderResponse + CssHeaderItem

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

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 head tag. to target the head

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

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

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:

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

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

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: lt;!DOCTYPE htmlgt; lt;html xmlns:wicket=http://wicket.apache.orggt; -- 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

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:

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. -

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 div wicket:id=repeaterContainer_NOT_wanted or wicket:container wicket:id=repeaterContainer_NOT_wanted -- 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

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:

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

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,

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:

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.

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-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

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

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

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:

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:

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:

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

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 }

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

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:

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())

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

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

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
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

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('lt;div

Re: automatic palette sorting

2010-04-13 Thread robert.mcguinness
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

2010-03-31 Thread robert.mcguinness
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) {

Re: Wicket merchandise?

2008-08-20 Thread robert.mcguinness
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

2008-02-29 Thread robert.mcguinness
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

Re: Wicket for beginners?

2008-02-21 Thread robert.mcguinness
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 the

Re: Where to find the Wicket DTD file?

2008-02-21 Thread robert.mcguinness
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... html xmlns:wicket=http://wicket.sourceforge.net/;

We are adopting Wicket in our Organization

2008-01-20 Thread robert.mcguinness
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

Re: We are adopting Wicket in our Organization

2008-01-20 Thread robert.mcguinness
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 at

Re: New MEAP content for Wicket in Action available

2007-11-07 Thread robert.mcguinness
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...

2007-09-28 Thread robert.mcguinness
), and the DataTable Component 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 developers

Presented Wicket to my Company...

2007-09-27 Thread robert.mcguinness
...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

Reference to Image in CSS

2007-09-26 Thread robert.mcguinness
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

Re: Reference to Image in CSS

2007-09-26 Thread robert.mcguinness
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 is a different

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

2007-09-13 Thread robert.mcguinness
: 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 from a Wicket expert, but I really like the framework and hopefully I

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

2007-09-12 Thread robert.mcguinness
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