Re: Proper resource versioning

2013-03-28 Thread Pointbreak
I don't think there's anything wrong with serving resources from the webapp-folder, and making the webapp container (e.g. jetty) responsible for serving them instead of Wicket. Most webapp containers will serve static resources much more efficiently than any servlet-based (including Wicket's)

Re: AjaxButton doesn't work in WebMarkupContainer

2013-03-28 Thread Pointbreak
Well the error messages kind of gives it away, doesn't it? But to explain further: setDefaultFormProcessing(false) doesn't mean the button can be placed outside a a form. It means that the default validation and submit behavior of the form is not executed when pressing the button. Why do you want

Re: Serverside caching of IResource's that are expensive to generate

2013-03-27 Thread Pointbreak
route as you, caching LessSource, but made my own threadsafe LessSource implementation for that (and also to @imports much much more flexible). On Tue, Mar 26, 2013 at 11:29 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: Thanks! Just FYI: with Less4j it's actually quite easy

Re: Serverside caching of IResource's that are expensive to generate

2013-03-26 Thread Pointbreak
solution could ever be. On Mon, Mar 25, 2013 at 5:01 PM, Pointbreak pointbreak+wicketst...@ml1.netwrote: I have implemented a LessCssResource (it generates a CSS resource from Less source files) + LessCssResourceReference. Since computing the CSS is expensive, I would like to cache

Re: Serverside caching of IResource's that are expensive to generate

2013-03-26 Thread Pointbreak
wrote: Wicket has a CachingResourceStreamLocator that caches the resource streams. here's my wicket less implementation, could be helpful too: https://github.com/l0rdn1kk0n/wicket-bootstrap/tree/master/bootstrap-less Am 26.03.2013 um 01:01 schrieb Pointbreak pointbreak+wicketst...@ml1.net

Re: Serverside caching of IResource's that are expensive to generate

2013-03-26 Thread Pointbreak
/wicket-bootstrap/tree/master/bootstrap-less Am 26.03.2013 um 01:01 schrieb Pointbreak pointbreak+wicketst...@ml1.net : I have implemented a LessCssResource (it generates a CSS resource from Less source files) + LessCssResourceReference. Since computing the CSS is expensive, I would

Serverside caching of IResource's that are expensive to generate

2013-03-25 Thread Pointbreak
I have implemented a LessCssResource (it generates a CSS resource from Less source files) + LessCssResourceReference. Since computing the CSS is expensive, I would like to cache the generated CSS on the server, once generated. It is unclear to me whether Wicket has mechanisms to do this. I

Question about name suffix that wicket appends to ResourceReferences

2013-03-22 Thread Pointbreak
When rendering the header items for packeded resource references, wicket appends a suffix like -ver-1363953702887 to the name of the resource. Can somebody point me add the place in the code where this suffix is generated and/or document if/how this could be disabled (preferably on a case by case

Re: Question about name suffix that wicket appends to ResourceReferences

2013-03-22 Thread Pointbreak
Thanks! On Fri, Mar 22, 2013, at 14:07, Thomas Götz wrote: Please have a look at FilenameWithVersionResourceCachingStrategy. -Tom On 22.03.2013, at 14:01, Pointbreak pointbreak+wicketst...@ml1.net wrote: When rendering the header items for packeded resource references, wicket

Re: Prioritize header items in html templates

2013-03-19 Thread Pointbreak
. wicket:head is just a convenience. The full power is in the Java based header contributors. On Tue, Mar 19, 2013 at 2:42 PM, Pointbreak pointbreak+wicketst...@ml1.netwrote: Is there a way (in Wicket 6) to prioritize items in wicket:head/head elements to get them inside the head of the final

Re: Wicket Session Expiration - Ajax interactions

2013-01-21 Thread Pointbreak
Why don't you just keep the session alive as long as the user has an ajax page open? You can easily do this by letting the page do a timed ajax call to the server every x minutes, where x is slightly less than your session timeout. On Mon, Jan 21, 2013, at 17:56, sthomps wrote: I'm currently in

Re: Call Wicket repeatedly from JQplot (Jquery based) graphing framework

2012-10-31 Thread Pointbreak
With that code the javascript should be added to the markup (which is easy to check if you view the source form your browser). Your problem is that the generated javascript is incorrect: you have no closing ['] after the url. That would have shown up if you opened the page in Firebug with Scripts

Re: Custom CSS for Feedback message is broken in 1.5

2012-10-29 Thread Pointbreak
[X] Other suggestion: don't have a class on the span, or even better, don't have the span element at all inside the list-item For any customisations beyound this, just create your own FeedbackPanel, it's easy and gives complete control. On Sun, Oct 28, 2012, at 17:03, Sebastien wrote: Hi, To

Re: [DISCUSS] Security Frameworks

2012-10-18 Thread Pointbreak
[X] I use Shiro Because it's simple in use and simple to integrate with Wicket or other frameworks, but still powerful enough for most security related tasks. And because I liked it more than Spring Security three years or so ago. I think Spring Security is more feature complete out of the box

Re: Wicket and jQuery UI

2012-10-02 Thread Pointbreak
It's a very long time ago that I looked at the API's, so it's likely things have changed since that time. But the problem I had with both products is that they are mostly component based API's (meaning they offer an Accordion component, Autocomplete component, etc.). Imho, a much more flexible

Re: Wicket and jQuery UI

2012-10-02 Thread Pointbreak
it for many projects so far). That's obviously very subjective. It looks like an impressive library nonetheless! On Tue, Oct 2, 2012, at 15:30, Sébastien Gautrin wrote: Hi Pointbreak, At least for wicket-jquery-ui, it offers also pure behaviours integration for jquery extensions that are pure

Re: Wicket rendering jquery late

2012-09-26 Thread Pointbreak
If your panel depends on jquery, you should render the reference to jquery also in your panel. On Wed, Sep 26, 2012, at 13:40, Oscar Besga Arcauz wrote: Hi wickers ! I've a problem with wicket and jquery resource rendering. My webpage has many panels wich uses jquery, and they have

Re: Best practices for passing configurations, such as Facebook app_id, to JavaScript

2012-08-29 Thread Pointbreak
I would use PackageTextTemplate to render the javascript, e.g. put your javascript in MyPage.js along with the other templates, and use ${facebookId} for the id, then add this to your class: @Override public void renderHead(IHeaderResponse response) { super.renderHead(response);

Re: page version and forms

2012-08-21 Thread Pointbreak
The tree node selections are fully handled by ajax requests, so they will (obviously) never change the url of the page. Change the selection of e.g. the dropdown for Content, and you will see that the url changes. There are ways to have forms without version/id information in the URL. Search this

Re: Wicket tags in output markup may change styles

2012-08-21 Thread Pointbreak
You should at least escape your ':', i.e. something like: BODY WICKET\:MESSAGE * { } But I doubt it will work on any browser. If you really want to keep the wicket:message tags (imho you're better of without them), you could wrap them in another container (div/span) and use that conatiner as a

Re: Wicket Application on GoDaddy

2012-04-03 Thread Pointbreak
You probably have another webapp already mounted as root context (in your webapps/ROOT). You obviously can't have two webapps under the root... On Tue, Apr 3, 2012, at 09:31, Satrix wrote: I changed the name of WAR file to ROOT.war but no luck now it's www.domain.com/ROOT/home :/ From what I

Using AbstractAjaxBehavior.getCallbackUrl during page construction

2012-03-22 Thread Pointbreak
We have recently upgraded our application from Wicket 1.4 to Wicket 1.5. One problem we encounter is with Ajax handlers we have that use AbstractAjaxBehavior.getCallbackUrl to bind serverside code to actions in the browser. I have been debugging this, and the problem seems to be that the

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Sun, Mar 18, 2012, at 20:00, Igor Vaynberg wrote: i think there is some confusion here. wicket 1.4 had page ids. it also had page versions. in 1.5 we simply merged page id and page version into the same variable - page id. this made things much simpler and also allowed some usecases that

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Sun, Mar 18, 2012, at 20:00, Igor Vaynberg wrote: i think there is some confusion here. wicket 1.4 had page ids. it also had page versions. in 1.5 we simply merged page id and page version into the same variable - page id. this made things much simpler and also allowed some usecases that

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 08:23, Igor Vaynberg wrote: On Thu, Mar 22, 2012 at 7:59 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Sun, Mar 18, 2012, at 20:00, Igor Vaynberg wrote: i think there is some confusion here. wicket 1.4 had page ids. it also had page versions. in 1.5 we

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 09:49, Igor Vaynberg wrote: On Thu, Mar 22, 2012 at 8:54 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Thu, Mar 22, 2012, at 08:23, Igor Vaynberg wrote: On Thu, Mar 22, 2012 at 7:59 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Sun, Mar 18

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 10:56, Igor Vaynberg wrote: On Thu, Mar 22, 2012 at 10:20 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Thu, Mar 22, 2012, at 09:49, Igor Vaynberg wrote: On Thu, Mar 22, 2012 at 8:54 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Thu, Mar 22

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 11:42, Igor Vaynberg wrote: On Thu, Mar 22, 2012 at 11:37 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Thu, Mar 22, 2012, at 10:56, Igor Vaynberg wrote: On Thu, Mar 22, 2012 at 10:20 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Thu, Mar 22

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 11:42, Igor Vaynberg wrote: On Thu, Mar 22, 2012 at 11:37 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Thu, Mar 22, 2012, at 10:56, Igor Vaynberg wrote: On Thu, Mar 22, 2012 at 10:20 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Thu, Mar 22

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 12:05, Igor Vaynberg wrote: On Thu, Mar 22, 2012 at 11:55 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Thu, Mar 22, 2012, at 11:42, Igor Vaynberg wrote: On Thu, Mar 22, 2012 at 11:37 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Thu, Mar 22

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 12:30, Igor Vaynberg wrote: On Thu, Mar 22, 2012 at 12:24 PM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Thu, Mar 22, 2012, at 12:05, Igor Vaynberg wrote: On Thu, Mar 22, 2012 at 11:55 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Thu, Mar 22

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 12:30, Igor Vaynberg wrote: On Thu, Mar 22, 2012 at 12:24 PM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Thu, Mar 22, 2012, at 12:05, Igor Vaynberg wrote: On Thu, Mar 22, 2012 at 11:55 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Thu, Mar 22

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 14:34, Igor Vaynberg wrote: On Thu, Mar 22, 2012 at 1:58 PM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Thu, Mar 22, 2012, at 12:30, Igor Vaynberg wrote: On Thu, Mar 22, 2012 at 12:24 PM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Thu, Mar 22

Re: What real life scenario calls for page ID?

2012-03-22 Thread Pointbreak
On Thu, Mar 22, 2012, at 15:46, Igor Vaynberg wrote: On Thu, Mar 22, 2012 at 3:39 PM, heikki tropic...@gmail.com wrote: What's the point in refreshing if it returns exactly the same page as before ? it allows components such as datatables and others that pull data from the database to

Re: What real life scenario calls for page ID?

2012-03-20 Thread Pointbreak
. jira please. This is already the case, no need of a ticket for this. If there is no ?5 then Wicket creates ?0 and shows it. The problem Pointbreak actually mean is that userA may have opened ?5 in his session, copy the url and give it to userB, but userB also already have its own session

Re: What real life scenario calls for page ID?

2012-03-20 Thread Pointbreak
On Tue, Mar 20, 2012, at 10:40, Martin Grigorov wrote: On Tue, Mar 20, 2012 at 10:38 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: Yes (sort of) except you don't need two users. Just bookmark a page with a version/id e.g. ?5, close the sessions, open a new session, do some

Re: What real life scenario calls for page ID?

2012-03-20 Thread Pointbreak
On Tue, Mar 20, 2012, at 10:50, Martin Grigorov wrote: On Tue, Mar 20, 2012 at 10:45 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: On Tue, Mar 20, 2012, at 10:40, Martin Grigorov wrote: On Tue, Mar 20, 2012 at 10:38 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: Yes (sort

Re: What real life scenario calls for page ID?

2012-03-19 Thread Pointbreak
It's a problem when users bookmark it. Because ...?5 this session is an entirely other page as ...?5 in another session tomorrow. On Mon, Mar 19, 2012, at 11:53, Girts Ziemelis wrote: On 2012-03-19 02:46, Paolo wrote: I support you! I implemented class NoVersionMount thanks to pointbreak

Re: I don't want url page count parameter: localhost:8080/context/?0

2012-03-18 Thread Pointbreak
Create a class NoVersionMount: /** * Provides a mount strategy that drops the version number from * stateful page urls. */ public class NoVersionMount extends MountedMapper { public NoVersionMount(String path, Class? extends IRequestablePage pageClass) { super(path,

Wicket 1.5 rewrites template content - imho should not

2012-02-21 Thread Pointbreak
I have recently upgraded from Wicket 1.4.14 to 1.5.4. One issue that I encountered is that script tags in panel templates are rewritten by Wicket, even when the script tags in question have no wicket handlers attached to them. I.e. the following panel template (notice that there are no wicket:id

Re: Updating a component from custom thread or why getRequestCycle returns null

2012-02-21 Thread Pointbreak
You will still need client initiated requests to get your non-stop-updates from the page/component to the browser. Hence, just separate the work (which you can do continuously in your thread) from the page rendering (which will need to be initiated by a browser request whatever you do). Will make

Re: Wicket 1.5 rewrites template content - imho should not

2012-02-21 Thread Pointbreak
See https://issues.apache.org/jira/browse/WICKET-4425 On Tue, Feb 21, 2012, at 14:01, Martin Grigorov wrote: Hi, Agree. Wicket should not do this in this case. File a ticket with a quickstart. On Tue, Feb 21, 2012 at 1:42 PM, Pointbreak pointbreak+wicketst...@ml1.net wrote: I have

Re: WiQuery vs JQWicket

2011-11-23 Thread Pointbreak
I've never used either framework, but your question made me curious again. (Years ago I evaluated the existing wicket-jquery integrations and wasn't happy with how they were designed. Since than I've always just used jquery inside wicket, it's not that hard for simple designs, and for complex

Re: An extensive RIA technology comparison matrix including Wicket

2011-10-26 Thread Pointbreak
That's actually accurate, as Martin already explained, Wicket has no provisions for client side Java based programming. To be honest, I don't think the comparison matrix is that bad. I would consider a framework like Vaadin over Wicket if all I wanted a typical desktop style only (menu bar,

Re: Servlet and Wicket

2011-09-28 Thread Pointbreak
No that was not was I was saying. I am just advising you to let Wicket manage complete pages, instead of parts of pages composed within another servlet architecture. I would give you the same advise if you were using JSF instead. On Tuesday, September 27, 2011 11:58 AM, koha...@gmail.com

Re: Servlet and Wicket

2011-09-27 Thread Pointbreak
On Monday, September 26, 2011 8:39 PM, koha...@gmail.com koha...@gmail.com wrote: We have to have the Servlets in front due to current connection from IIS and Apache. That doesn't make any sense. For IIS and Apache it really doesn't matter at all. Here is what the architecture of my

Re: wicket-spring version

2011-09-27 Thread Pointbreak
Don't use wicket-spring-annot, just wicket-spring. On Tuesday, September 27, 2011 3:15 AM, boy_oh_boy muralih...@gmail.com wrote: Hello, Very new to Wicket. Trying to integrate an existing Spring application with the latest Wicket release. Versions: Wicket - 1.5.0 SpringFramework -

Re: adding resources after ajax swap

2011-09-22 Thread Pointbreak
Of course you could also just load the scripts in your page instead of via ajax... just my 2cnts. On Thursday, September 22, 2011 3:18 PM, Steve Lowery slow...@gatessolutions.com wrote: Is that a filter on my end? Would that go before or after my wicket filter mapping? Any helpful resources

Re: wicket is secure by default. why use spring security?

2011-09-19 Thread Pointbreak
You're taking the statement Wicket is Secure by default out of its context. The full statement is Wicket is secure by default. URLs do not expose sensitive information and all component paths are session-relative. Explicit steps must be taken to share information between sessions. Furthermore URL

Re: How to update @SpringBean proxy?

2011-08-29 Thread Pointbreak
What you are saying doesn't make sense. The SpringBean proxy doesn't cache anything, so would still proxy all method calls to the original bean. If you are not seeing updated values in that bean, there is something else going on. Unless with update you mean that you replace the original bean with

Re: wicketstuff tinymce development

2011-07-28 Thread Pointbreak
According to: http://tinymce.moxiecode.com/tryit/multiple_configs.php Mode should be switched to textareas our current implementation provide exact only. Why would you want to use textareas matching when using TinyMce in Wicket? Attach a TinyMceBehavior to each Wicket component that

Re: Differences development vs deployment mode, hierarchy errors

2011-05-24 Thread Pointbreak
The differences are implemented in Application.configure(), so check there for how deployment and development mode differ. I am not aware of any differences in how Wicket handles the component hierarchy. The hierarchy in your java-implementation either is or is not consistent with the hierarchy in

Why does wicket use Serializable contracts in generics?

2011-03-29 Thread Pointbreak
For example in Session there is the method: public final M extends Serializable M getMetaData(final MetaDataKeyM key) This makes it seriously difficult to use this methods for retrieving vales that have e.g. a MetaDataKeyCollectionString, since Collection does not extend Serializable (although

Re: dynamic child in container

2011-03-29 Thread Pointbreak
This is definitely possible. The easy way is to do ajaxRequestTarget.addComponent(theParentComponent); the drawback being that tho whole parent component will be redrawn, including childs that were already on the page. If that is not acceptable, you could use javascript to first create a child

Re: dynamic child in container

2011-03-29 Thread Pointbreak
That's what I thought you meant (ajax). If you want to add a dynamic number of components during normal page construction, you should have a look at wicket repeaters, e.g. RepeatingView. There are plenty examples for how to use those. On Tue, 29 Mar 2011 17:28 +0200, kamiseq kami...@gmail.com

Re: chrome + wicket ajax + back button = problem?

2010-10-11 Thread Pointbreak
See https://issues.apache.org/jira/browse/WICKET-923 for a solution. On Mon, 11 Oct 2010 09:31 -0500, Ryan Crumley crum...@gmail.com wrote: I have (I am using MixedParamHybridUrlCodingStrategy) however in this case the browser is not contacting the server on back button click so the

Re: Saving a component in session

2010-09-23 Thread Pointbreak
You really don't want to save a component in a session. A component has its own lifecycle, tied to pagerequests, and its own scope tied to its parent components and the page it is part of. From what I understand of your story, what you should do is write your own component that wraps a Label or an

Re: Strip header contributors from Ajax response.

2010-04-23 Thread Pointbreak
if (!AjaxRequestTarget.get()) renderMyJavascript(); On Thu, 22 Apr 2010 09:10 +0530, Apple Grew appleg...@gmail.com wrote: I have a component which contributes Js headers. This component is also rendered by AjaxRequestTarget. The problem is that when rendering ajax response the Js codes

RE: Hibernate - OSIV

2010-04-02 Thread Pointbreak
With OSIV every user will have a different hibernate-session, hence a different hibernate object, so your example would work. But your approach is wrong. For your example I would make a SurveyResult object that holds a reference to your hibernate Survey object. Problem solved. No need to play

Re: InMethod Grid: resizing rowcount

2010-03-16 Thread Pointbreak
On Mon, 15 Mar 2010 16:06 +0100, Thierry Peng p...@glue.ch wrote: Pointbreak schrieb: On Mon, 15 Mar 2010 15:06 +0100, Thierry Peng p...@glue.ch wrote: Pointbreak schrieb: The public interface of the inmethod DataGrid/DefaultDataGrid does not seem to provide functionality

InMethod Grid: resizing rowcount

2010-03-15 Thread Pointbreak
The public interface of the inmethod DataGrid/DefaultDataGrid does not seem to provide functionality to expand the number of rows after an ajax-call that e.g. adds data to the underlying datasource. Is there a way to tell the DataGrid that the underlying datasource may have changed, to the effect

Re: InMethod Grid: resizing rowcount

2010-03-15 Thread Pointbreak
On Mon, 15 Mar 2010 15:06 +0100, Thierry Peng p...@glue.ch wrote: Pointbreak schrieb: The public interface of the inmethod DataGrid/DefaultDataGrid does not seem to provide functionality to expand the number of rows after an ajax-call that e.g. adds data to the underlying datasource

Re: maven, eclipse and wicket

2009-03-23 Thread Pointbreak
Right-click project - Maven - Download sources You can see for which jar's m2eclipse has downloaded sources via the icon displayed in front of the jar under Maven dependencies in the project explorer. On Mon, 23 Mar 2009 12:23 -0500, Luther Baker lutherba...@gmail.com wrote: I am having a

Re: maven, eclipse and wicket

2009-03-23 Thread Pointbreak
I guess that if you use mvn jetty:run, maven will deploy your application (including the dependent jars). Thus it is not directly using the jars in the maven repo, but the deployed copies, therefore eclipse would be unable to find the sources. You could make a Start.java that just starts jetty (I

Re: Wicket Problems On Ubuntu

2009-03-17 Thread Pointbreak
Your LoginPage.html has special (non-ascii) characters, and is stored in another encoding than you read it (probably a windows encoding). Save it in e.g. UTF-8, and tell wicket to use UTF-8 as the encoding for reading page templates. Or replace your special characters with HTML codes for those

Re: resource cacheable firefox/opera

2009-03-10 Thread Pointbreak
You use the same url for different images? Firefox uses a memory cache in addition to a disk cache. Check what headers are send with your image. No-store and no-cache headers will NOT prevent firefox3 from using its memory cache (at least not with pages). Your best bet is to use different urls.

Re: tinymce question: how to switch default language?

2009-03-07 Thread Pointbreak
The default language is based on the locale of the session. Which is normally what you want (because it is influenced by the browser preferences, and the same as what wicket is using). You can override it by passing a language as second argument in the TinyMCESettings constructor. On Sat, 07 Mar

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Pointbreak
You are missing the point. With a string it will work, because the elements will actually be the same string objects, so the String.equals and the overridden compare method will give the same results in the example. Johan's point is that while set1.removeAll() is called, it is not the compare

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Pointbreak
Sorry, I have to correct myself. According to the API-docs, the compare method in a TreeSet must be consistent with equals. In Johan's example it is not. On Thu, 05 Mar 2009 13:36 +0100, Pointbreak pointbreak+wicketst...@ml1.net wrote: You are missing the point. With a string it will work

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Pointbreak
That is completely stupid With a comparator you just OVERRIDE the equals, thats the whole point! johan On Thu, Mar 5, 2009 at 13:44, Pointbreak pointbreak+wicketst...@ml1.netpointbreak%2bwicketst...@ml1.net wrote: Sorry, I have to correct myself. According to the API-docs, the compare method

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Pointbreak
That is completely stupid With a comparator you just OVERRIDE the equals, thats the whole point! johan On Thu, Mar 5, 2009 at 13:44, Pointbreak pointbreak+wicketst...@ml1.net pointbreak%2bwicketst...@ml1.net pointbreak%2bwicketst...@ml1.net pointbreak%252bwicketst

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Pointbreak
Dave, you are missing the point completely. The issue raised by Johan is that if you call TreeSet.removeAll(otherSet), then in some cases the comperator/equals contract of otherSet is used, in other cases the comperator/equals contract of the treeset. Which is a bit strange, and even by Sun

Re: error messages due to hack/search-bots

2008-12-22 Thread Pointbreak
Not an answer to your question, but why fight this kind of stuff? It's an invalid request, so it should result in an error. If you don't want these entries in your log, you could just add a filter to your logger (e.g. filtering out error messages from

Re: TinyMCE ajax load

2008-12-17 Thread Pointbreak
If by load with ajax you mean that the javascript sources are loaded on ajax requests, instead of with the initial page, then no, that is not supported. The ajax parameter that was available in old 1.3 snapshots did not work properly. It has been removed for some time now (also in latest

RE: how to reuse a label in the same page?

2008-12-12 Thread Pointbreak
- No you will not save a lot of memory. Wicket components are fairly small. Memory usage will/should mostly be in the application models, and they are easy to share between components. - It will introduce a complexity nightmare with no real benefits (imho) in the framework though. On Fri, 12

Re: TinyMCE init method rendering twice

2008-12-09 Thread Pointbreak
); setToolbarLocation(TinyMCESettings.Location.top); setStatusbarLocation(null); setVerticalResizing(true); setHorizontalResizing(true); } } Any idea of how to remove those toolbars? Thanks, Josh pointbreak+wicketstuff wrote: You seem to be using an old version

Re: TinyMCE init method rendering twice

2008-12-08 Thread Pointbreak
You seem to be using an old version of tinymce. AFAIK, the latest version does not use mode: specific_textareas, but mode: exact in the tinyMCE.init call. Update to the latest version, and you should be fine I guess. You can remove the statusbar via TinyMceSettings.setStatusbarLocation(null)

Re: Clearing Cache after Logout

2008-12-04 Thread Pointbreak
That you get back to your last page when hitting the back button has nothing to do with Wicket. It's just what browsers do when you hit the back button. I guess you are using firefox (3), and firefox 3 will show a page from its in-memory cache, even if the page headers tell it the page is expired

Re: Progress Bar

2008-11-12 Thread Pointbreak
http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html On Wed, 12 Nov 2008 12:37:07 -0300, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] said: Hi all, I am using the progress bar found at extensions. Is it possible to translate the words of the message that appear at

Re: Default locale / resource language problem

2008-11-07 Thread Pointbreak
custom validators was en_EN. Is there a way to force the locale of the session globaly so I don't have to check the session's locale on each page? On 11/7/08, Pointbreak [EMAIL PROTECTED] wrote: You have to set an explicit locale for your session (call setLocale() in the session) to force

Re: Default locale / resource language problem

2008-11-07 Thread Pointbreak
You have to set an explicit locale for your session (call setLocale() in the session) to force a language. Defaultlocale is just what it says it is: a default. Your browser probably asks for englis pages (see your browser settings). On Fri, 7 Nov 2008 14:06:46 +0100, Rutger Jansen [EMAIL

Re: Basic print.css question

2008-11-07 Thread Pointbreak
Is this a quiz? Your #navlist is not inside a #footer and your #noprint is not an id but a class. On Thu, 6 Nov 2008 19:55:37 -0500, Jim Pinkham [EMAIL PROTECTED] said: Sorry this isn't so wicket specific, but I think I'm doing this media type thing correctly - what am I missing? Here's the

Re: wicket and 508 compilance

2008-10-28 Thread Pointbreak
I don't understand why you keep insisting that a title attribute should always be included in an anchor. In most cases the text within the anchor tag is enough information for what the purpose of the link is, certainly if you think a minute about that text. In such cases a title attribute will

Re: AjaxRequestTarget is null in Internet Explorer 6

2008-09-22 Thread Pointbreak
Override onClick for your link. Your code defines an onClick in the panel, it doesn't override your Link's onclick. On Mon, 22 Sep 2008 03:16:47 -0700 (PDT), mahone9 [EMAIL PROTECTED] said: I still have that problem and why is sb. responding to another thread... mahone9 wrote:

IgnoreAjaxRequestException/EmptyAjaxRequestTarget: a way around it?

2008-09-18 Thread Pointbreak
I have a page that in a piece of javascript code does some updates to the page dom, and then does a wicketajaxpost request. This all works fine, unless the dom updates trigger loading of page-bound resources (e.g. images). As it turns out wicket detects during the ajax requests that other requests

DynamicImageResource and urls

2008-09-16 Thread Pointbreak
I am trying to attach a number of on the fly created images to a page. The images are created by a subclass of DynamicImageResource. They need to be referenced from html code that is not part of a page template (i.e. I do not use an img tag in the page template with an webcomponent that references

Re: Automated testing of Wicket applications

2008-09-12 Thread Pointbreak
Also, have you successfully tested Ajax applications using Selenium-RC and Junit? I have, and Selenium works really well for testing wicket ajax applications. Only thing I had to do was to add a script to the pages that helps selenium figure out when ajax requests are finished. See this

Associating label tags with input elements in RepeatableViews etc.

2008-09-09 Thread Pointbreak
Hi, Is there an easy way to set the for attribute of a label tag to the (generated) markup id of an form input element? I cannot set the for attr. directly in the html template, because the id's are generated dynamically by wicket (because part of RepeatableViews). Right now I am doing it

Making a Behavior that adds a script after a component?

2008-09-05 Thread Pointbreak
I have a couple of behaviors that add javascript to the header of a document, to change attributes or add event scripts to components (using jquery onready, but that's not the point). This all works fine. There is just one problem: when I use such components in an ajax request/response, it won't

Re: Making a Behavior that adds a script after a component?

2008-09-05 Thread Pointbreak
Perfect. Thanks! On Fri, 5 Sep 2008 15:53:12 +0200, Matej Knopp [EMAIL PROTECTED] said: if you use renderOnDomReadyJavascript method of IHeaderResponse it will be invoked after ajax request. -Matej On Fri, Sep 5, 2008 at 3:41 PM, Pointbreak [EMAIL PROTECTED] wrote: I have a couple

Re: controlling td colspan=? number with wicket?

2008-08-27 Thread pointbreak+wicketstuff
google and find http://cwiki.apache.org/WICKET/how-to-modify-an-attribute-on-a-html-tag.html On Wed, 27 Aug 2008 20:52:56 +0100, Sami [EMAIL PROTECTED] said: Hello, I have been trying to control the colspan in a table but no luck :( any one has an example of how to do it? code:

Re: Ajax validation error messages

2008-08-27 Thread pointbreak+wicketstuff
Why not just put a filter on your 'global' feedbackpanel and filter out the messages that you already display for each component? E.g. I have the following code in a form: private void addGlobalSubmitPanel() { final ListFormComponent components = getFormComponents(); final

Re: Links Issue with TinyMce

2008-08-26 Thread pointbreak+wicketstuff
enough, there were 1.5 dependencies, and the compile failed as well. The dependencies I found: UUID in TinyMceSettings.java StringBuilder TinyMceBehavior.java Any recommendations as to how I can work around this? pointbreak+wicketstuff wrote: FWIW, I cannot reproduce your problem

Re: Links Issue with TinyMce

2008-08-25 Thread pointbreak+wicketstuff
FWIW, I cannot reproduce your problem in the latest tinymce snapshot. The latest snapshot has tinymce updated to version 3.1.0.1, so that might solve your problem. Otherwise you may have more luck posting your problem in the tinymce forums, as the plugin really doesn't do anything special to

Getting copy of html source

2008-08-21 Thread pointbreak+wicketstuff
Hi, Is there an easy way to retrieve a copy of the html that is send to the browser as part of a response. I would like to be able to e.g. send the source of requested pages to an xhtml validating parser when the website is run in development mode. Any suggestions?