VisitChildren and AjaxTabbedPanel

2010-04-22 Thread MattyDE
I have to traverse from the parent of my Tabs through all components in all tabs. As i use now visitChildren i only found the components which are visible on the active tab. Its clear why, cause the other tabs are not loaded with ajax. But are there any way to traverese through ALL Tabs to find

Re: String Resource Loading from DB

2010-04-22 Thread Zilvinas Vilutis
the combination of class, key, locale, style must be unique, so if I have the same keys ( while locale and style is not changing ) - the classname must be unique. So I cannot use this in anonymous classes, as it does not resolve, e.g. page class name Žilvinas Vilutis Mobile: (+370) 652 38353

Re: Strange error

2010-04-22 Thread Dipu
are you using the sysdeo tomcat plugin for eclipse. We had the same issue y'day and doing this fixed the issue - compile the files in the DevLoader.zip and jar it in place it in tomcat/common lib folder. dipu On Wed, Apr 21, 2010 at 1:19 PM, Objelean Alex alex.objel...@gmail.com wrote: Hi! My

Re: Back-button friendly ajax wizard navigation

2010-04-22 Thread Martijn Dashorst
use setResponsePage() to go to the next page when everything is a-ok. Wicket will instruct the browser to redirect to the new page (iirc). Martijn On Wed, Apr 21, 2010 at 11:58 PM, Brian Laframboise brian.laframbo...@gmail.com wrote: Thanks Edward. I was hoping for some means of doing this in a

Re: Strange error

2010-04-22 Thread Dipu
sorry, ignore my previous message ,problem seems to be some thing else On Thu, Apr 22, 2010 at 8:38 AM, Dipu dipu@googlemail.com wrote: are you using the sysdeo tomcat plugin for eclipse. We had the same issue y'day and doing this fixed the issue  - compile the files in the DevLoader.zip

Re: meaning of stricken item in Wicket 1.5 Wish List on the wiki ?

2010-04-22 Thread Joseph Pachod
Martijn Dashorst wrote: striken through means: 1) already happened 2) already happened elsewhere 3) never gonna happen Most items fall in categories 1 and 2 thanks I updated the wiki accordingly best joseph - To

wickestuff-push not working with jetty standalone

2010-04-22 Thread vineet semwal
Hellos, I am using wicketuff-push in a project,i found it nice and used it a lot in a project i am currently working with.. my problem is it's not working when i am using jetty as standalone ie. usual java -jar start.jar i also have port forwarding enabled .. i don't see any long polling in

Re: String Resource Loading from DB

2010-04-22 Thread Josh Glassman
Ah, right... we got around that by not using the class (partly so we could use the same resource strings across different classes). The only other thing I can suggest is to use more unique keys for anonymous classes, though that is clearly not ideal. Maybe someone else knows a better solution.

Re: CSS not loading on WebMarkupContainer refresh

2010-04-22 Thread taygolf
absolutely. I have tried two things and they both work the same way. first using a wicket id add(new StyleSheetReference(stylesheet, CustomerPanel.class, jquery.tooltip.css)); link rel=stylesheet type=text/css wicket:id=stylesheet / and straight html link rel=stylesheet type=text/css

Re: CSS not loading on WebMarkupContainer refresh

2010-04-22 Thread taygolf
ok I just added a label outside of the webmarkupcontainer and added the tooltip stuff to it and it works perfectly. So the problem is the webmarkupcontainer. Everytime it is refreshed through ajax instead of refreshing the entire page, I lose the connection between the css and the html inside

Re: CSS not loading on WebMarkupContainer refresh

2010-04-22 Thread Ernesto Reinaldo Barreiro
Why don't you use something like add(CSSPackageResource.getHeaderContribution(CSS); on the constructor of the panel you are using. Here CSS is CSS = new ResourceReference(...). Wicket will take care of the rest. By the way the only reference I could find to class StyleSheetReference on core

Re: VisitChildren and AjaxTabbedPanel

2010-04-22 Thread Igor Vaynberg
you dont see those components because they are not added to the hierarchy. the tabbed panel only adds the current tab. if you want to traverse them you will have to first create them and then call visit on each tab. a much better solution is to use a javascript-only tab panel so your entire form

Re: CSS not loading on WebMarkupContainer refresh

2010-04-22 Thread taygolf
I am using wicket 1.3.7 currently so I can not use the CSSPackageResource. Is there a way to just use PackageResource? I know that I need to upgrade but right now that is not possible. Also why can't I just add the CSS file to my html with a link and be done with it like this: link

Re: wickestuff-push not working with jetty standalone

2010-04-22 Thread Rodolfo Hansen
Hi, Check the logs and see what the cometd servlet is requiring, This is more of a jetty issue than a problem wicketstuff-push.. You should find something in the jetty mailing lists regarding the requirements for the comet servlet. On Thu, Apr 22, 2010 at 9:24 AM, vineet semwal

Re: Simple TextField Override and A SubmitLink Question

2010-04-22 Thread Brian Mulholland
I have figured out issue #2. My form had a method='get' on it and I have a very large grid with checkboxes in it, so I suspect that I was overflowing the request size. Stupid mistake, but the behavior in no way pointed me towards this. On the observation I made that it seemed to work when I

Lowercasing of attributes

2010-04-22 Thread Elias Holman
Hi all, I am trying to integrate some dojo widgetry using the declarative method of associating DOM elements with dojo components, so I end up declaring markup like: div dojoType=dijit.MenuBar wicket:id=menuBar and the markup parser always converts the 'dojoType' attribute to lowercase, and so

Re: Strip header contributors from Ajax response.

2010-04-22 Thread Igor Vaynberg
wicket will filter duplicate contributions for you and even though they are rendered they are not executed. if you are writing out javascript directly you can set a string id which uniquely identifies the contribution and wicket will also filter by that. -igor On Wed, Apr 21, 2010 at 8:40 PM,

Re: Simple TextField Override and A SubmitLink Question

2010-04-22 Thread Brian Mulholland
Thanks for the response. I have two thoughts. 1) So you would say that expected Wicket best practice would be what? My control is effectively a TextField. Would I extend AbstractTextComponent (which I see has almost every property TextField has) and then add() a TextField and a Label to it, and

Re: Simple TextField Override and A SubmitLink Question

2010-04-22 Thread Igor Vaynberg
i have written a lot of listviews and repeaters and never had to override onrender to render html, this is now how wicket is intended to work. in wicket you attach components to html elements, and the only contract is that certain components expect to be attached to certain elements. for example a

AjaxFormComponentUpdatingBehavior and id attribute

2010-04-22 Thread Alexandros Karypidis
Hi, When I add an AjaxFormComponentUpdatingBehavior to a component (a TextFieldString in particular though I don't think that matters), Wicket assigns an HTML id attribute to the component by taking the wicket:id value I specified and appending a character. So, if my original HTML had:

Re: AjaxFormComponentUpdatingBehavior and id attribute

2010-04-22 Thread Martin Makundi
Hi! You can call component.setMarkupId(component.getId()); ** Martin 2010/4/22 Alexandros Karypidis akary...@yahoo.gr: Hi, When I add an AjaxFormComponentUpdatingBehavior to a component (a TextFieldString in particular though I don't think that matters), Wicket assigns an HTML id attribute

Re: AjaxFormComponentUpdatingBehavior and id attribute

2010-04-22 Thread Alexandros Karypidis
Ok, I get it, thank you. On 22/4/2010 21:55, Martin Makundi wrote: Hi! You can call component.setMarkupId(component.getId()); ** Martin 2010/4/22 Alexandros Karypidisakary...@yahoo.gr: Hi, When I add an AjaxFormComponentUpdatingBehavior to a component (a TextFieldString in particular

Re: AjaxFormComponentUpdatingBehavior and id attribute

2010-04-22 Thread Michael O'Cleirigh
Hello, I can see two options but there are probably others aswell: 1. emit the id value of the input tag so your javascript will be able to find it. 2. change your CSS to style on the class of the tag vs the id. For 1, I would : add a behviour like this to your TextField: new

InheritableThreadLocal holder for Application class

2010-04-22 Thread Objelean Alex
Hi! Is there any particular reason why Application class wouldn't be stored in InheritableThreadLocal instead of ThreadLocal? The problem is that I need to be able to access Application class from a thread created when a button is pressed. Using InheritableThreadLocal instead of ThreadLocal would

Caching static assets from markup

2010-04-22 Thread Phillip B
I have several images and other static assets that are specified in my markup. The images are in an assets folder. Wicket is handling the URL change from relative to absolute. The issue is that there are no cache related headers on the images, so the browser never caches them. Is there a way to

Re: AjaxFormComponentUpdatingBehavior and id attribute

2010-04-22 Thread Jeremy Thomerson
But this isn't suggested. See past threads (there's been a couple just in the last two weeks). -- Jeremy Thomerson http://www.wickettraining.com On Thu, Apr 22, 2010 at 1:55 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! You can call

Re: Strip header contributors from Ajax response.

2010-04-22 Thread Apple Grew
Hi Igor, It is not that duplicates items are getting rendered. What I want is that the Js should be rendered ONLY when rendering in non-Ajax mode. In Ajax mode the Js code should be stripped out. As these Js codes are not executed when in Ajax response so it doesn't make sense to render them

Re: Strip header contributors from Ajax response.

2010-04-22 Thread Igor Vaynberg
amd this bloating has caused a noticeable slowdown in your site's response times? how much latency is it adding to the response? that said, you can always output it using iheaderresponsecontributor and add an check if you are inside ajax or not using request.isajax() -igor On Thu, Apr 22, 2010

RE: Strip header contributors from Ajax response.

2010-04-22 Thread Tim L Casey
In terms of hosting it is measurable. Each byte of request for a million hit site is 10Mbit of line cost. That being said most latency is about connections and not amount of data. At least in terms of speed up I would look first at reducing things like frames, then resources, then size.

Re: Strip header contributors from Ajax response.

2010-04-22 Thread Apple Grew
@Igor I have a very tight budget so the resources are pretty limited, so I need to save the bandwidth wherever possible. BTW I didn't find any class - iheaderresponsecontributor. Regards, Apple Grew my blog @ http://blog.applegrew.com/ On Fri, Apr 23, 2010 at 8:37 AM, Igor Vaynberg

Re: Strip header contributors from Ajax response.

2010-04-22 Thread Igor Vaynberg
if you have a million hit site you can probably afford the hosting :) -igor On Thu, Apr 22, 2010 at 8:16 PM, Tim L Casey tca...@cataphora.com wrote: In terms of hosting it is measurable.  Each byte of request for a million hit site is 10Mbit of line cost. That being said most latency is

Re: Strip header contributors from Ajax response.

2010-04-22 Thread Igor Vaynberg
org.apache.wicket.markup.html.IHeaderContributor -igor On Thu, Apr 22, 2010 at 8:35 PM, Apple Grew appleg...@gmail.com wrote: @Igor I have a very tight budget so the resources are pretty limited, so I need to save the bandwidth wherever possible. BTW I didn't find any class -

Re: Strip header contributors from Ajax response.

2010-04-22 Thread Apple Grew
That's a good point. :) BTW if i implement my own IHeaderContributor how will take advantage of wicket's js code stripper and compressor provided by JavascriptPackageResource? Regards, Apple Grew my blog @ http://blog.applegrew.com/ On Fri, Apr 23, 2010 at 9:46 AM, Igor Vaynberg

Re: Strip header contributors from Ajax response.

2010-04-22 Thread Igor Vaynberg
you use iheadercontributor to write out the url to the resourse, which i think will point to the javascriptpackageresource. -igor On Thu, Apr 22, 2010 at 9:29 PM, Apple Grew appleg...@gmail.com wrote: That's a good point. :) BTW if i implement my own IHeaderContributor how will take advantage

Re: Strip header contributors from Ajax response.

2010-04-22 Thread Apple Grew
ohk... will check. Regards, Apple Grew my blog @ http://blog.applegrew.com/ On Fri, Apr 23, 2010 at 10:08 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: you use iheadercontributor to write out the url to the resourse, which i think will point to the javascriptpackageresource. -igor On