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
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
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.
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.
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:
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.
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
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:
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
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
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
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
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
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:
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
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
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.
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
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:
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.
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.
-
Jeremy,
Great work on this BTW. Quick question, any reason why
JavaScriptFilteredIntoFooterHeaderResponse is final? Would like to:
JavaScriptFilteredIntoFooterHeaderResponse javaScriptFooterResponse = new
JavaScriptFilteredIntoFooterHeaderResponse(response, footerBucket) {
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.
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
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/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
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,
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:
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.
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
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
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
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.
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
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,
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:
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:
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:
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);
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
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
}
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
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:
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())
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
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.
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
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.
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
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
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
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) {
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.
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
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
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/;
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
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
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.
), 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
...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
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
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
: 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 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
65 matches
Mail list logo