Re: Redirect to HTTPS?

2007-09-26 Thread John Patterson
On 26 Sep 2007, at 12:26, Doug Leeper wrote: - All images and resource links are to be accessed via HTTP irregardless if the page itself is to be displayed in HTTP/HTTPS Most browsers will complain when non-secure elements are included on a secured page. This page contains both

Custom URL strategy

2007-10-08 Thread John Patterson
Hi, I want to build a custom url encoder fro bookmarkable pages and have been looking at BookmarkablePageRequestTargetUrlCodingStrategy. Can someone quickly contrast the responsibilities of IRequestTargetUrlCodingStrategy and WebRequestCodingStrategy. From a quick look it seems like

Custom URL strategy

2007-10-08 Thread John Patterson
Hi, I want to build a custom url encoder fro bookmarkable pages and have been looking at BookmarkablePageRequestTargetUrlCodingStrategy. Can someone quickly contrast the responsibilities of IRequestTargetUrlCodingStrategy and WebRequestCodingStrategy. From a quick look it seems like

Re: Custom URL strategy

2007-10-09 Thread John Patterson
pages only and it delegates the encoding/decoding for mounted pages to IRequestTargetUrlCodingStrategy. -Matej On 10/9/07, John Patterson [EMAIL PROTECTED] wrote: Hi, I want to build a custom url encoder fro bookmarkable pages and have been looking

Re: Custom URL strategy

2007-10-09 Thread John Patterson
of this area. John. On 9 Oct 2007, at 01:24, Matej Knopp wrote: IIRC WebRequestCodingStrategy is used for non-mounted pages only and it delegates the encoding/decoding for mounted pages to IRequestTargetUrlCodingStrategy. -Matej On 10/9/07, John Patterson [EMAIL PROTECTED] wrote: Hi, I want

Re: Custom URL strategy

2007-10-09 Thread John Patterson
Nice one. Cheers for your explanations. I am getting there slowly. On 9 Oct 2007, at 14:25, Matej Knopp wrote: Hi, see the response below On 10/9/07, John Patterson [EMAIL PROTECTED] wrote: Hi, As I am figuring out how to create my own IRequestCodingStrategy I have come across a few

Subclassing WebRequestCodingStrategy

2007-10-09 Thread John Patterson
Hi, I seem to be making progress with my custom URL scheme but have hit a small wall. I have subclassed WebRequestCodingStrategy because I want to keep the mountable page behaviour but just enhance it to return my own target if no mounts are found and default processing does not apply.

Re: Subclassing WebRequestCodingStrategy

2007-10-09 Thread John Patterson
IRequestTargetUrlCodingStrategy encoder = getMountEncoder (requestTarget); ... here getMountEncoder() is not final. Cheers, John On 9 Oct 2007, at 15:37, John Patterson wrote: Hi, I seem to be making progress with my custom URL scheme but have hit a small wall. I have subclassed

Re: Subclassing WebRequestCodingStrategy

2007-10-09 Thread John Patterson
it references some package protected classes). -Matej On 10/9/07, John Patterson [EMAIL PROTECTED] wrote: Just a bit more info on the problem... encoding allows me to override the equivalent method: rg.apache.wicket.IRequestTarget) */ public final CharSequence pathForTarget(IRequestTarget

Re: Subclassing WebRequestCodingStrategy

2007-10-09 Thread John Patterson
there. On 9 Oct 2007, at 16:01, Matej Knopp wrote: Thinking about it, probably better (and more solid) approach would be for you to copy the entire class (unless it references some package protected classes). -Matej On 10/9/07, John Patterson [EMAIL PROTECTED] wrote: Just a bit more info

Re: Subclassing WebRequestCodingStrategy

2007-10-09 Thread John Patterson
final. But we do remove the final if someone has a good reason for it. :) Could you please create a jira issue with the finals you need to have removed? Thanks. -Matej On 10/10/07, John Patterson [EMAIL PROTECTED] wrote: Also, there is special case code in WebRequestCodingStrategy

Stateless page creating session

2007-10-10 Thread John Patterson
Hi, I have created a page and setStatelessHint(true) and made sure all the child components are stateless but an http session is still being created. The method isPageStateless() returns true. Here is the trace where the SEssion is created:

Re: Stateless page creating session

2007-10-10 Thread John Patterson
page (triggers session creation if not already done so) Something is going on here. On 10 Oct 2007, at 18:24, John Patterson wrote: Hi, I have created a page and setStatelessHint(true) and made sure all the child components are stateless but an http session is still being created

Re: Stateless page creating session

2007-10-11 Thread John Patterson
stateless page go to a stateful page (triggers session creation if not already done so) Something is going on here. On 10 Oct 2007, at 18:24, John Patterson wrote: Hi, I have created a page and setStatelessHint(true) and made sure all the child components are stateless but an http session

Jetty classloader

2007-10-11 Thread John Patterson
Hi, I am having problems deploying my app on Jetty getting this message: org.apache.wicket.WicketRuntimeException: Application class com.hello.site.HelloApplication must be a subclass of WebApplication at org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.create

Re: Jetty classloader

2007-10-11 Thread John Patterson
Ooops! Posted too soon... I had simply removed wicket from my pom by mistake and Eclipse had not shown any build errors but did remove the import statement from my Application. Might have to change this setting! On 11 Oct 2007, at 14:37, John Patterson wrote: Hi, I am having problems

Re: Stateless page creating session

2007-10-12 Thread John Patterson
Is there a JIRA issue for the broken stateless support so I know when to update my application? Cheers, John. On 11 Oct 2007, at 00:57, Matej Knopp wrote: Yeah, it's a bug introduced by me recently. Will look at it ASAP. -Matej On 10/11/07, John Patterson [EMAIL PROTECTED] wrote: Also

Re: Stateless page creating session

2007-10-13 Thread John Patterson
There is now: https://issues.apache.org/jira/browse/WICKET-1072 On 12 Oct 2007, at 11:28, John Patterson wrote: Is there a JIRA issue for the broken stateless support so I know when to update my application? Cheers, John. On 11 Oct 2007, at 00:57, Matej Knopp wrote: Yeah, it's a bug

Application scope pages

2007-10-19 Thread John Patterson
HI, Is there anyway to have stateless pages that live in the application scope so I can use AJAX behaviours and other listeners? Failing that, can I turn off storing all pages except for the current active page? Cheers, John.

Re: body onload contribution

2007-10-18 Thread John Patterson
Something I have noticed with renderOnLoad with my site is that it stopped being called after I added some Javascript for banner ads. Maybe their included script replaced the wicket function. I had to revert to using onLoad which makes gives the impression that the maps load more slowly.

Re: Creating google-sitemap for wicket application

2007-10-25 Thread John Patterson
You can also mount whole packages at a time. Or if you have too many packages you can add your own IRequestTargetUrlCodingStrategy and mount that and write your own logic for finding Bookmarkable pages pages with nice URL's. John On 25 Oct 2007, at 09:09, martinf wrote: Hi, basically

AutoCompleteTextField excessive serialisation

2007-10-29 Thread John Patterson
Hi, I am using the AutoCompleteTextField and can see that every keystroke causes the entire page to be serialised and stored which seems a bit excessive. Is there anyway to say that the page has not changed and so don't store it? John

Re: AutoCompleteTextField excessive serialisation

2007-10-29 Thread John Patterson
knows the code better. John On 29 Oct 2007, at 16:56, Igor Vaynberg wrote: autocomplete.setversioned(false) do it? -igor On 10/29/07, John Patterson [EMAIL PROTECTED] wrote: Hi, I am using the AutoCompleteTextField and can see that every keystroke causes the entire page to be serialised

Re: AutoCompleteTextField excessive serialisation

2007-10-29 Thread John Patterson
On 29 Oct 2007, at 17:37, Eelco Hillenius wrote: Is this really just that component that causes the page to serialize? Sounds like a design flaw to me if that is the case... Eelco Definitely just that component causing the page to be marked stateful. An auto complete field is not

Re: AutoCompleteTextField excessive serialisation

2007-10-29 Thread John Patterson
it from Page.onDetach() should work. So you can set a request cycle metadata if you don't want the page to be serialized and then check for the meta data in page.onDetach(). -Matej Igor Vaynberg wrote / napĂ­sal(a): autocomplete.setversioned(false) do it? -igor On 10/29/07, John Patterson

Re: AutoCompleteTextField excessive serialisation

2007-10-29 Thread John Patterson
For the AutoCompleteTextField I think it would make sense to never store the page and simply make respond(target) final so that the can not be changed. Does anyone really want to change the page state for every key press? If so then that would seem to be the exception rather than the

Re: Stateless page and Pragma no-cache

2007-10-31 Thread John Patterson
want there. -Matej On 10/31/07, John Patterson [EMAIL PROTECTED] wrote: Hi, I notice that Pragma no-cache is set for every WebPage and I cannot see how I can turn it off for my bookmarkable stateless pages could would benefit from being cached. Cheers, John

Re: Stateless page and Pragma no-cache

2007-11-01 Thread John Patterson
On 1 Nov 2007, at 02:38, Johan Compagner wrote: you are right thats not handy. I made it just like we do with resources have a special overridable protected method that is called setHeaders() on WebPage Can you open an jira issue for this so that this is being shown as a change?

onUnload event

2007-11-10 Thread John Patterson
HI, I was wondering why the IHeaderResponse.renderOnBeforeUnloadJavascript was removed. Is the recommended way to do this now to call renderOnEventJavascript ? Cheers, John - To unsubscribe, e-mail: [EMAIL PROTECTED]

Deployment mode Javascript error

2007-11-18 Thread John Patterson
Hello users, I am in the process of deploying a wicket site and found that the cool scriptalicious effect I am using does not work when I am in Deployment mode. In the Safari console it shows: SyntaxError: Parse error http://www.blahblah.com/resources/

TextArea.onComponentTagBody not called

2008-12-09 Thread John Patterson
Hi, I am developing components similar to the EditableLable and noticed that when I replace in the code TextField with a TextArea but the markup remains input type=text no exception was thrown. TextArea has: @Override protected final void onComponentTagBody(final MarkupStream

Re: TextArea.onComponentTagBody not called

2008-12-09 Thread John Patterson
The check is not made because the tag was an OpenClose tag. When I change the type of the tag to Open it is called. -- View this message in context: http://www.nabble.com/TextArea.onComponentTagBody-not-called-tp20916141p20916420.html Sent from the Wicket - User mailing list archive at

Browser auto form filling

2009-02-06 Thread John Patterson
Hi, I use generated forms for a Contact Us page and have noticed that my email address is not automatically filled in for me like on many sites. I guess this is due to the name of the form input being something like rows:0:row:input which Safari has not come across before. Is there any way to

Re: generics

2008-07-14 Thread John Patterson
Craig McIlwee wrote: 2) the wicket web site now suggests the following code for generic components: @SuppressWarnings(unchecked) public final T getModelObject() { return (T)getDefaultModelObject(); } I am just starting to use the new form and it struck me as a little

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-08-03 Thread John Patterson
Just started using the half-way approach and I really miss the type safety of generified Component. 1) Generifying* Wicket [X] Can best be done like currently in the 1.4 branch, where models and components are both generified. I care most about the improved static type checking generified

Re: Is SAFE_CHILD_ID_PATTERN in AbstractRepeater correct, or does it break CSS spec?

2008-08-08 Thread John Patterson
Why are only digits allowed? This stops me using a CompoundPropertyModel. It seems to work fine apart from the warning. igor.vaynberg wrote: On Nov 16, 2007 2:55 PM, Edvin Syse [EMAIL PROTECTED] wrote: Why is container0 a non-safe id, because it contains nondigits like the message

Re: Is SAFE_CHILD_ID_PATTERN in AbstractRepeater correct, or does it break CSS spec?

2008-08-09 Thread John Patterson
-igor On Fri, Aug 8, 2008 at 7:20 PM, John Patterson [EMAIL PROTECTED] wrote: Why are only digits allowed? This stops me using a CompoundPropertyModel. It seems to work fine apart from the warning. igor.vaynberg wrote: On Nov 16, 2007 2:55 PM, Edvin Syse [EMAIL PROTECTED] wrote: Why

Re: Is SAFE_CHILD_ID_PATTERN in AbstractRepeater correct, or does it break CSS spec?

2008-08-09 Thread John Patterson
webmarkupcontainer(rv.newchildid()); rv.add(item); item.add(componentwithwhateveridyouwant) -igor On Sat, Aug 9, 2008 at 11:09 AM, John Patterson [EMAIL PROTECTED] wrote: Am I OK to continue ignoring the warning? Or will this bite me somewhere else? igor.vaynberg wrote: there are a couple

Page serialisation

2008-08-20 Thread John Patterson
Hi, this might be a really obvious question but... why are pages serialised for every ajax request? I thought the latest page was always stored in the PageMap? -- View this message in context: http://www.nabble.com/Page-serialisation-tp19072319p19072319.html Sent from the Wicket - User

Re: Page serialisation

2008-08-20 Thread John Patterson
. Martijn On Wed, Aug 20, 2008 at 6:13 PM, John Patterson [EMAIL PROTECTED] wrote: Hi, this might be a really obvious question but... why are pages serialised for every ajax request? I thought the latest page was always stored in the PageMap? -- View this message in context: http

Custom PageMap

2008-08-20 Thread John Patterson
Hi, I need to store some kind of multi-request transaction data somewhere and I guess that the PageMap is a better place than the session. I don't see much talk of custom page maps on the list. Are they still a recommended way to store things for a browser window? John -- View this message in

Re: Page serialisation

2008-08-20 Thread John Patterson
It happens in the same thread. jwcarman wrote: Shouldn't the serialization be happening in another thread. Are you seeing performance hits because of it? On Wed, Aug 20, 2008 at 12:30 PM, John Patterson [EMAIL PROTECTED] wrote: Is that the only reason? I imagine most sites

Re: Page serialisation

2008-08-20 Thread John Patterson
, John Patterson [EMAIL PROTECTED] wrote: Is that the only reason? I imagine most sites will be running on one server with no failover. Is there a way to switch the serialisation of the current page off if failover support is not required? Martijn Dashorst wrote: Failover support

Re: Wicket merchandise?

2008-08-20 Thread John Patterson
Time for some coder booty! Yes wicket needs more action. Yiannis Mavroukakis-3 wrote: Girls can be coders too you know :-) Michael Sparer wrote: Sounds cool :-) But I think I wouldn't go further than a mug ... because talking to girls might become a darn lot more difficult if you wear

Re: Page serialisation

2008-08-20 Thread John Patterson
reason for it On Wed, Aug 20, 2008 at 6:30 PM, John Patterson [EMAIL PROTECTED] wrote: Is that the only reason? I imagine most sites will be running on one server with no failover. Is there a way to switch the serialisation of the current page off if failover support

Re: Page serialisation

2008-08-20 Thread John Patterson
Johan Compagner wrote: Ajax request for page A: alter the page in memory (still only in memory, no new version) yes page is altered so new version (ajax version) Normal request for page B: serialise A to disc and place B in memory No now you first do a request to A that can

Re: Custom PageMap

2008-08-20 Thread John Patterson
. Regards, Erik. John Patterson wrote: Hi, I need to store some kind of multi-request transaction data somewhere and I guess that the PageMap is a better place than the session. I don't see much talk of custom page maps on the list. Are they still a recommended way to store things

Re: NotSerializableException: java.util.RandomAccessSubList

2008-08-21 Thread John Patterson
Any object stored in a model must be serializable and your object com.tvh.website.application.external.ApplicationPage$ExternalApplicationBean is not. You can either make it serializable or use a model that finds your ExternalApplicationBean when it loads e.g. LoadableDetachableModel. You can

Re: Paging query relating to IDataProvider and Lucene search

2008-08-21 Thread John Patterson
Why don't you just cache your hits in your dataprovider in the constructor and access it for both size() and iterator(int, int)? I use Lucene for a DataView this way without a problem. rgoodwin wrote: Hello, I'm trying to solve a variation on a standard problem regarding running

Re: NotSerializableException: java.util.RandomAccessSubList

2008-08-21 Thread John Patterson
If you cannot make your application object serializable - which is normal - you need to use my other advice regarding a detachable model to load the ExternalApplicationBean Marieke Vandamme wrote: I'm little confused now. How can I make java.util.RandomAccessSubList Serializable? I'm not

Re: Custom PageMap

2008-08-21 Thread John Patterson
Erik van Oosten wrote: The data is not serializable and is needed in several pages as a part of one transaction - Not serializable: Well that is a hick up. This of course also means that you can not do clustering. I would put the data directly in the HTTP session, or in your own sub

Re: Custom PageMap

2008-08-21 Thread John Patterson
Martijn Dashorst wrote: If you don't want to make the session contain the objects explicitly, because the multistep process is only a small part of your application, you could use session metadata to store the data (temporarily). This does mean that it is serialized with the session, but

Re: Custom PageMap

2008-08-21 Thread John Patterson
Johan Compagner wrote: in 1.3 with the new Disk based store we dont need by default the window detection yes so it is turned off by default. OK, and how do I turn it on? Johan Compagner wrote: Also the detection is pretty good but not completely solid! It will always be very hard

Re: Page serialisation

2008-08-21 Thread John Patterson
and expects to see the previous page as it was after the *last* ajax request, so we need to save and serialize it. -Matej On Wed, Aug 20, 2008 at 7:29 PM, John Patterson [EMAIL PROTECTED] wrote: Johan Compagner wrote: Ajax request for page A: alter the page in memory (still only

Re: Page serialisation

2008-08-21 Thread John Patterson
Thanks for the explanation Matej. Makes perfect sense. Matej Knopp-2 wrote: I was thinking about implementing it like this. But, it would make code that is already complicated even more complicated. What's worst, it wouldn't work in clustered environment where you need to send the page

MetaData Type

2008-08-21 Thread John Patterson
Hi fellow wicketeers, I was wondering why Application.setMetaData() is defined to take an Object and not a T or ? extends T. I'm sure there's probably a good reason for it... just wondering. -- View this message in context: http://www.nabble.com/MetaData-Type-tp19091075p19091075.html Sent from

Re: Page serialisation

2008-08-21 Thread John Patterson
) but with limited backbutton support (no page versioning, only certain amount of pages in memory). I hoped for full back button support for ajax... -Matej On Wed, Aug 20, 2008 at 7:14 PM, John Patterson [EMAIL PROTECTED] wrote: But all access to the session is serialised? I don't

Re: Unable to find component with id

2008-08-21 Thread John Patterson
That can't be the markup that generated that error because there is no tag in it with a wicket:id=label which the error message is complaining about. But you also do not add a tag for exampleTitle which you add here add(new Label(exampleTitle, exampleTitle)); Basically, every

AJAX refresh of ListView in Form

2008-08-22 Thread John Patterson
Hi, I have a ListView in a table that can have rows dynamically added with AJAX. When I add a row and enter a value, then add another row the first row is reset to an empty value. Do I need to submit the form for each AJAX request to send the new values to the server? Thanks, JD -- View this

Re: AJAX refresh of ListView in Form

2008-08-22 Thread John Patterson
to the server and server should be able to identify such request and do the needful. So in your AJAX request handler, you need to get the new values and add them, however you need to. Its that simple. John Patterson wrote: Hi, I have a ListView in a table that can have rows dynamically added

Re: AJAX refresh of ListView in Form

2008-08-23 Thread John Patterson
. I don't really understand why ListView uses the same id for each item. I notice that a RepeatingView does not have the same issue as ListView of re-using the same id. Is it possible to use AJAX to insert a sibbling element into the list? John Patterson wrote: Hi, I have a ListView in a table

Re: Wicket merchandise take 2

2008-08-25 Thread John Patterson
We should also link from the t-shirts to the wiki... hang on I'm confusing my realities again. Real world right? Nino.Martinez wrote: I guess we should link to the merchandise page from the wiki also? James Carman wrote: The proceeds should benefit the ASF, not a random charity. On

Page models

2008-08-27 Thread John Patterson
Hi, in almost all my pages I set a model for the page and then need to retrieve it using the un-typesafe getDefaultModel(). Or I implement a typesafe getModel(). I was just wondering if others really normally use pages without models? If not maybe Page should be generified? JD -- View this

Re: Page models

2008-08-27 Thread John Patterson
Yeah guess I will do that. was just wondering if I was in the minority using models in my pages. igor.vaynberg wrote: you can always create your own subclass that is generified, and use that -igor On Wed, Aug 27, 2008 at 3:17 AM, John Patterson [EMAIL PROTECTED] wrote: Hi, in almost

Re: Stateless AJAX links

2008-10-27 Thread John Patterson
aditsu wrote: Anyway, everything is working now, but I wanted some answers to those questions. I am very interested in what you have achieved here. Is there any chance you could summarise what you had to do to get stateless AJAX links to work? Perhaps just a post to this topic or even

Re: Extend layout of a page

2009-04-11 Thread John Patterson
ptrash wrote: Hi, can you explain a liitle bit what exactly you mean? nino martinez wael wrote: you could do something like composition by doing inheritance and repeaters... For your composite pages to know where to put their components in the flow of the page you either

Re: Form Components With Built In Feedback

2009-05-14 Thread John Patterson
Why would you use IComponentBorder instead of IBehaviour? igor.vaynberg wrote: use IComponentBorder and then simply add it to each form component or subclass formcomponents and add it in the constructor, eg textfield.add(new fieldborder()); -igor public class FieldBorder implements

Re: Form Components With Built In Feedback

2009-05-14 Thread John Patterson
Good point! I had never seen IComponentBorder before so was just poking around and saw that to me it seems to do the same thing as IBehaviour... but less. So I thought I am probably missing some key difference. igor.vaynberg wrote: why not? -igor -- View this message in context:

Re: Bookmarkable fallback ajax link

2009-05-17 Thread John Patterson
I disabled session ids on links so that bots wouldn't index every page with a sessionid. I read somewhere that although googlebot can and does index pages with session ids, it doesn't really like them and will probably index less of them than it otherwise would. Perhaps this is no longer the

Re: Bookmarkable fallback ajax link

2009-05-17 Thread John Patterson
I have already tried setting the stateless hint to true, which is the same as using a Bookmarkable link. The problem is that if any behaviour has a stateless hint of false, it overrides your links hint. Jeremy Thomerson-5 wrote: Is your Ajax link redirecting you to another page? Or is it

Re: Bookmarkable fallback ajax link

2009-05-17 Thread John Patterson
urls would be a better solution. John Patterson wrote: I disabled session ids on links so that bots wouldn't index every page with a sessionid. I read somewhere that although googlebot can and does index pages with session ids, it doesn't really like them and will probably index less

Re: Bookmarkable fallback ajax link

2009-05-18 Thread John Patterson
I guess, like you say, it would not be so useful. I was thinking that when googlebot reads the link and comes back to index the page a week later it would not get a Page Expired message if the link was bookmarkable. But probably best to only index the original page anyway and provide another

Re: Wicket Web Beans 1.1 and Wicket 1.4

2009-05-20 Thread John Patterson
I just tried it out on 1.4 with no problems. It took about 2 minutes to edit the source - mainly by changing getModel() to getDefaultModel() etc Dan Syrstad-2 wrote: I think Daniel was going to start work on the Wicket 1.4 migration on the trunk sometime in the near future. Currently the

Re: Adding attribute to body tag

2009-06-24 Thread John Patterson
Martin Funk-3 wrote: not to my knowledge it works in trunk just like that. I have trunk and still cannot add an attribute to the body tag. In my page constructor I have add(new BodyTagAttributeModifier(class, Model.of(johniscool), this)); but the attribute

Re: Adding attribute to body tag

2009-06-24 Thread John Patterson
I can see what I was doing wrong now. I simply needed to add a wicket:id attribute to the body and create a webmarkup container for the body tag. For some unknown reason I assumed the body tag was already attached to the Page. JD -- View this message in context:

Submit form with ajax on enter

2009-06-24 Thread John Patterson
Hi, I have a single text box which I wan to be submitted by ajax when either the enter key is pressed or a submit button clicked. Is there an easy way to submit the form or just the input when the return key is hit? Thanks, John

Re: Submit form with ajax on enter

2009-06-25 Thread John Patterson
Thanks, I can see now that the presence of the AjaxButton intercepts the form submit and does exactly what I need. vineet semwal wrote: you can use AjaxButton,AjaxFallbackButton,IndicatingAjaxButton. -- View this message in context:

Re: Submit form with ajax on enter

2009-06-25 Thread John Patterson
script to capture the enter key and... do something. But is there an easy out of the box way? John Patterson wrote: Thanks, I can see now that the presence of the AjaxButton intercepts the form submit and does exactly what I need. vineet semwal wrote: you can use AjaxButton

Re: Submit form with ajax on enter

2009-06-26 Thread John Patterson
Just to add some closure to this traumatic coding problem I added a simple inline event handler like this findTextField = new TextFieldString(query) { @Override protected void onComponentTag(ComponentTag tag)

Re: Submit form with ajax on enter

2009-06-26 Thread John Patterson
The first handler, which works for most cases, is missing the .click() method -- View this message in context: http://www.nabble.com/Submit-form-with-ajax-on-enter-tp24196732p24216221.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Submit form with ajax on enter

2009-06-30 Thread John Patterson
It is being used indirectly through AjaxButton. Unfortunately AjaxFormSubmitBehavior cannot be used directly on the form to listen for onsubmit Emanuele Gesuato-2 wrote: Why not using AjaxFormSubmitBehavior ? -- View this message in context:

Ajax indicator turning off

2009-07-25 Thread John Patterson
Hi, I notice that when I have two ajax requests overlapping the indicator is turned off when the first one completes. Start AJAX request A - turns on the indicator Start AJAX request B Return AJAX request A - turns off the indicator Return AJAX request B Would a possible solution be to

Re: Ajax indicator turning off

2009-07-28 Thread John Patterson
paolo di tommaso wrote: Yep, intercept the ajax call and inc/dec a counter -- paolo Although I could correct the indicator behaviour in all my own AJAX components, it would probably make more sense to incorporate it into wickets default AJAX behaviour. If people think it makes sense I

Re: Ajax indicator turning off

2009-07-28 Thread John Patterson
Erik van Oosten wrote: This seems like something that warrants a new Jira issue. Regards, Erik. Patch submitted https://issues.apache.org/jira/browse/WICKET-2401 -- View this message in context: http://www.nabble.com/Ajax-indicator-turning-off-tp24655744p24697620.html Sent

Re: Submit form with ajax on enter

2010-02-04 Thread John Patterson
MattyDE wrote: Any other hints for this right now? I want to submit an ajax-Form by hiting enter in Textfield, but i want wicket to call the same Method as i defiend in AjaxButton ... any ideas? Thanks a lot in Advance If I remember correctly, my patch was applied so you can now

Re: How to determine absolute URL of a mounted page?

2007-11-25 Thread John Patterson
On 25 Nov 2007, at 13:01, Johan Compagner wrote: If you virtual host in apache on a server (local ip 10.0.0.1) it will rewrite the url and give it to tomcat Then the request url is really http://10.0.0.2:8080/myapp1context/XX I use Apache as a proxy and have got past this issue by using

Re: How to determine absolute URL of a mounted page?

2007-11-25 Thread John Patterson
On 25 Nov 2007, at 15:26, Johan Compagner wrote: also the port? Yes the port is also contained in the host header so it works fine - as if the proxy was not there at all. I know that Jetty always respects the host header.

Resource locale problem

2007-11-29 Thread John Patterson
Hi, I have a link tag in the head for a css file and the generated link includes the locale. Sometimes this is mystyles_en_US.css and sometimes mystyles_en_GB.css. When it is the later, the file is not found. How should I configure this correctly? Can I disable the locale from being

Re: Resource locale problem

2007-12-02 Thread John Patterson
I have upgraded to the latest trunk and the problem still exists On 30 Nov 2007, at 01:40, Johan Compagner wrote: What kind of resource is that? I have simply used a link tag in the head and wicket is creating the resource. I can see that it is a PackageResource. Normally package

Wicket id in component

2008-03-01 Thread John Patterson
Hi, I haven't really thought this through but I was thinking that if the id of a component was not a member of a Component but set by the parent of the component then child components could be passed to the constructor of the parent. Instead of Component a = new Component(aid);

Re: Wicket id in component

2008-03-02 Thread John Patterson
On 2 Mar 2008, at 15:29, Igor Vaynberg wrote: a) components need to know their ids, they use them to generate markup id, etc. it could be passed to child.render(id) b) it is a space optimization. an array of components each with their own id is cheaper on ram/serialization space then a

Re: Wicket id in component

2008-03-02 Thread John Patterson
On 2 Mar 2008, at 16:13, Igor Vaynberg wrote: On Sun, Mar 2, 2008 at 12:43 AM, John Patterson [EMAIL PROTECTED] wrote: On 2 Mar 2008, at 15:29, Igor Vaynberg wrote: a) components need to know their ids, they use them to generate markup id, etc. it could be passed to child.render(id

Re: Question on component hierarchy

2008-04-09 Thread John Patterson
You would also need to setVisible(false) on the WMC or wicket would throw an exception at the missing child components. I use a simple class InvisibleComponent for this. Eric Rotick wrote: One more thing that was suggested in class. Is it possible to define a Panel which had all suitable

RE: Removing the jsessionid for SEO

2008-04-12 Thread John Patterson
Dan Kaplan-3 wrote: Google jsessionid SEO for more. Most of the results tell you to get rid of the jsessionid. Granted, it doesn't seem google has specifically mentioned this either way so all these comments are rumors. But the fact of the matter is Google *DOES* index your urls with

Alternative method to initialise page

2008-04-17 Thread John Patterson
Hi, I am extending the PagingNavigatation and need to access some member variables to create my page links. Because these links are created in PagingNavigatation's constructor me subclasses newPagingNavigationLink() method is called before my subclasses member variables are initialised. I

Re: Alternative method to initialise page

2008-04-17 Thread John Patterson
John Patterson wrote: Hi, I am extending the PagingNavigatation and need to access some member variables to create my page links. Because these links are created in PagingNavigatation's constructor me subclasses newPagingNavigationLink() method is called before my subclasses member

Re: Alternative method to initialise page

2008-04-26 Thread John Patterson
you could try and copy paste the classes into your own project and then modify them. Maurice On Thu, Apr 17, 2008 at 12:14 PM, John Patterson [EMAIL PROTECTED] wrote: John Patterson wrote: Hi, I am extending the PagingNavigatation and need to access

Re: Alternative method to initialise page

2008-04-26 Thread John Patterson
On 4/26/08, John Patterson [EMAIL PROTECTED] wrote: Cool. I can see that you now and the links in onBeforeRender(). So is this the recommended approach for creating extendible components? What are the reasons to not to add all child components in this method? igor.vaynberg wrote

Re: Alternative method to initialise page

2008-04-26 Thread John Patterson
Sorry, I did find a discussion which was related [1] which ended with Igor saying: yes, but its also easy to fix. Just don't call any overridible methods inside constructors. And for everything else there is onbeforerender() If this is the recommended way to write extendible components I could

Re: Alternative method to initialise page

2008-04-26 Thread John Patterson
John Krasnay wrote: This rule is too strict. Another way to avoid calling overridable methods from the constructor is to use a model: Models are fine for providing dynamic values but do not help you customise components by extension. For example, to provide a different type of link to

  1   2   >