Re: browser back button - shouldn't onBeforeRender() execute?

2008-11-18 Thread Timo Rantalaiho
On Mon, 17 Nov 2008, dukehoops wrote: Thanks for your reply. But shouldn't the headers I listed disable caching already? Re-pasting below: Yep, but in the end it's a question of what the browser does. You could experiment with different browser settings. Best wishes, Timo -- Timo Rantalaiho

Re: browser back button - shouldn't onBeforeRender() execute?

2008-11-18 Thread Johan Compagner
no the only realy thing that i know most browser really look it up again is no-store thats why we have that disabled by default: protected void setHeaders(WebResponse response) { response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-cache, max-age=0,

Filtering (textfilter) and other DataTable examples?!

2008-11-18 Thread Ned Collyer
Can someone please post or link to an example of how the filters are meant to work with the data table. Specifically TextFilter or TextFilteredPropertyColumn. I've done some poking around, but its escaping me. I've added the elements to my page - but I'm having little luck. The javadoc is

RE: Filtering (textfilter) and other DataTable examples?!

2008-11-18 Thread Kai Mutz
Ned Collyer mailto:[EMAIL PROTECTED] wrote: Can someone please post or link to an example of how the filters are meant to work with the data table. Specifically TextFilter or TextFilteredPropertyColumn. Check the wicket phonebook example:

RE: overLIB Integration...

2008-11-18 Thread Swinsburg, Stephen
I used overLIB years ago and its pretty basic. What about something like jQuery's cluetip (http://plugins.learningjquery.com/cluetip/demo/) - far more extensible and configurable. Personal preference I guess. Steve -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent:

Re: overLIB Integration...

2008-11-18 Thread Nino Saturnino Martinez Vazquez Wael
Hmm, we do actually have both prototip and mootip integration as stuff projects, and mootip supports ajax retrival of tips.. But the more the merrier I guess? Swinsburg, Stephen wrote: I used overLIB years ago and its pretty basic. What about something like jQuery's cluetip

Re: Two wicket apps

2008-11-18 Thread Anatoly Kupriyanov
As I see it uses Portlet. Is it only way? And as I understand it mounts the portlet on examples url and all other are subfolders of it. But I need main application on root and only one subfolder to admin application. 2008/11/17 Igor Vaynberg [EMAIL PROTECTED]: you have to tell the admin filter

Usage of getString with parameters (model?)

2008-11-18 Thread Eyal Golan
Hi, I have a key in the property file: Reports.ReportTitle.SuspectedConnectionsUserRes = Suspected User-Resource Connections by {0} Pattern Report I want to use getString(Reports.ReportTitle.SuspectedConnectionsUserRes, SOMETHING); to get the value with the {0} substituted. I'm not sure how to do

Re: Usage of getString with parameters (model?)

2008-11-18 Thread Nino Saturnino Martinez Vazquez Wael
Igor wrote something about it in a thread with validators.. But heres my cut: add(new Label(confirmation.content, new StringResourceModel( confirmation.content, this, eventModel))); and in property file: confirmation.content=You are about to create event

Re: Usage of getString with parameters (model?)

2008-11-18 Thread Ernesto Reinaldo Barreiro
Hi Eyal, If you open the Component class you will see a method: public String getString(final String key, final Component component, final IModel? model, final String defaultValue) throws MissingResourceException { } which finds a localizer... an Localizer after locating the key calls to

Re: Two wicket apps

2008-11-18 Thread Anatoly Kupriyanov
Oh. It all works fine! My problem was: I've mounted page as mountBookmarkablePage(signIn, SignIn.class) and I have case insensitive mounts setting. And seems there is a BUG in AbstractRequestTargetUrlCodingStrategy.matches, it doesn't lowercase the mountPath and as results doesn't match with url

nice URL for forms

2008-11-18 Thread Anatoly Kupriyanov
I have a simple search form. with query text field q and go button. I do the form method=get and stateless (as search form shd be I guess). The url becomes:

Re: Usage of getString with parameters (model?)

2008-11-18 Thread Eyal Golan
Nino, Ernesto, Thanks. Ernesto, I actually looked into the code that you showed. I was a bit confused and that's why I asked. I think your solution will help me. Thanks. Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save

Re: nice URL for forms

2008-11-18 Thread Jeremy Thomerson
See this answer from Johan maybe two days ago on the same question: http://www.nabble.com/Simple-GET-based-stateless-form-to20535056.html#a20536810 -- Jeremy Thomerson http://www.wickettraining.com On Tue, Nov 18, 2008 at 6:15 AM, Anatoly Kupriyanov [EMAIL PROTECTED]wrote: I have a simple

Compoundpropertymodel with shadow map?

2008-11-18 Thread Nino Saturnino Martinez Vazquez Wael
Hi Im trying todo a compoundpropertymodel which does not change original values in the original model. I need this since I am updating some stuff in a wizard but I first want to commit when the user confirms in the end of the wizard, and if the model are changed directly the transaction are

Re: ajax busy indicator never stops in IE

2008-11-18 Thread miro
I compared the ajax console difference for IE and firefox the main difference is IE complains about object error IE console INFO: Response parsed. Now invoking steps... ERROR: [object Error] (several of these) INFO: Response processed successfully. INFO: Invoking post-call handler(s)...

Re: Compoundpropertymodel with shadow map?

2008-11-18 Thread Francisco Diaz Trepat - gmail
Nice, I was up to something similar. On Tue, Nov 18, 2008 at 9:43 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi Im trying todo a compoundpropertymodel which does not change original values in the original model. I need this since I am updating some stuff in a wizard

Re: Compoundpropertymodel with shadow map?

2008-11-18 Thread Nino Saturnino Martinez Vazquez Wael
I do.. But if I use it with a detachable model the idea goes a bit away.. Plus I'd like it to be a bit more transparent... Could be me that just not know enough James Carman wrote: You didn't like the ProxyModelManager?

Re: Compoundpropertymodel with shadow map?

2008-11-18 Thread Nino Saturnino Martinez Vazquez Wael
heres the raw and completely untested version of it. probably with a whole bunch of issues...: package zeuzgroup.web.model; import java.lang.reflect.Field; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import org.apache.wicket.Component;

Re: Compoundpropertymodel with shadow map?

2008-11-18 Thread James Carman
You could adapt the proxy model thing (I kind of like the name shadow and I might change mine) to do what you want. You'd need to keep a flag that tells whether or not you've retrieved the value from the destination model. On Tue, Nov 18, 2008 at 9:33 AM, Nino Saturnino Martinez Vazquez Wael

No reaction appear on ajaxSubmitLink

2008-11-18 Thread miata
Hi, I have a problem with submitting form by an AjaxSubmitLink. In fact I try to disabled all field in my form with: field.setEnabled(false); It's work if I use an AjaxLink.click to take effect enabled disabled but it's doesn't work with AjaxSubmitLink.submit. The submit work and react at the

Re: Compoundpropertymodel with shadow map?

2008-11-18 Thread Francisco Diaz Trepat - gmail
Shadows sounds good... :-)f(t) On Tue, Nov 18, 2008 at 11:37 AM, James Carman [EMAIL PROTECTED]wrote: You could adapt the proxy model thing (I kind of like the name shadow and I might change mine) to do what you want. You'd need to keep a flag that tells whether or not you've retrieved the

Re: No reaction appear on ajaxSubmitLink

2008-11-18 Thread Martijn Dashorst
Try overriding onError as well and add a feedback panel to your ajax request target in the onError. Martijn On Tue, Nov 18, 2008 at 3:38 PM, miata [EMAIL PROTECTED] wrote: Hi, I have a problem with submitting form by an AjaxSubmitLink. In fact I try to disabled all field in my form with:

Markup for a component interior

2008-11-18 Thread Adriano dos Santos Fernandes
I have a generic Form component (extends Form) and it adds child components to this. But where I place this form, I need to specify more content for the form interior. Kind of: form ... tags put by the Form class tags put by who inserted the class on the page /form In my prototype

Re: No reaction appear on ajaxSubmitLink

2008-11-18 Thread miata
It's work !!! It's seem to be the model attachment to the form that problem... thanks Martijn Dashorst wrote: Try overriding onError as well and add a feedback panel to your ajax request target in the onError. Martijn On Tue, Nov 18, 2008 at 3:38 PM, miata [EMAIL PROTECTED] wrote:

Re: Markup for a component interior

2008-11-18 Thread Martijn Dashorst
Extract the form to a Panel and publish the onSubmit() listener there: MyFormPanel extends Panel { MyFormPanel(...) { add(new MyGenericForm(...) { public void onSubmit() { MyFormPanel.onSubmit(); } } } abstract void onSubmit(); }

Re: swarm wicket 1.4

2008-11-18 Thread danelav
I am wondering the same thing. The most information I've found is here: http://www.nabble.com/WASP-SWARM-status-td20318330.html . It sounds like Wayne Pope may be taking up the torch. Marc Ende-2 wrote: Hi, currently I'm using swarm securing some webpages build on wicket. Now, that's

Validators in 1.4-rc1

2008-11-18 Thread Adriano dos Santos Fernandes
I had this in 1.4-m3 working: long value = ...; textField.add(NumberValidator.maximum(value)); My textField is instantiated as TextFieldInteger and declared as TextField?, so I put a long validation for a Integer TextField. It also works in 1.4-rc1, but NumberValidator is deprecated.

Re: Loosing page parameters after submit

2008-11-18 Thread Jörn Zaefferer
That's how it is isn't really that much helpful, there's always a workaround, isn't there? In thise case, saving the pageparameters in the form constructor and using them to set the response page onSubmit helps. Something like this: class MyForm extends Form { private PageParameters

Re: Validators in 1.4-rc1

2008-11-18 Thread Jeremy Thomerson
how about new MaximumValidatorInteger(value)? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Nov 18, 2008 at 11:37 AM, Adriano dos Santos Fernandes [EMAIL PROTECTED] wrote: I had this in 1.4-m3 working: long value = ...; textField.add(NumberValidator.maximum(value)); My

Re: Validators in 1.4-rc1

2008-11-18 Thread Adriano dos Santos Fernandes
Jeremy Thomerson escreveu: how about new MaximumValidatorInteger(value)? The problem is that I'm iterating on a list of unknown text fields. And the maximum value is from a Entity using Hibernate Annotation. So it seems a valid case to validate a TextFieldInteger with a long. Adriano

Re: overLIB Integration...

2008-11-18 Thread TahitianGabriel
I'd love to have that code too. Very interesting indeed. jwcarman wrote: If anyone's interested, I can put it in wicketstuff. -- View this message in context: http://www.nabble.com/overLIB-Integration...-tp20547530p20564951.html Sent from the Wicket - User mailing list archive at

Re: Markup for a component interior

2008-11-18 Thread Adriano dos Santos Fernandes
John Krasnay escreveu: You probably want to implement a Border instead of extending Form. Border is exactly what I was looking for. But I'm having problems [Cannot modify component hierarchy after render phase has started (page version cant change then anymore)] with component hierarchies.

Noob question: Wicket and statefull/stateless

2008-11-18 Thread Casper Bang
Pardon the (possible stupid) question, I'm new to Wicket but is quite excited about the simplicity it seems to promote over JSF. What's the usual way of pushing context on to a website and have it passed along, such as to remain stateless? In JSF you would typically create some hidden inputs

Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-18 Thread Jeremy Thomerson
Copy the quickstart back to your application and VIOLA! Fixed! :) It seems that there is still something in your application that is causing this - try to do a diff and see what differences exist. On Tue, Nov 18, 2008 at 1:24 PM, Ilja [EMAIL PROTECTED] wrote: JWeekend, that's why I made a

Re: Compoundpropertymodel with shadow map?

2008-11-18 Thread Francisco Diaz Trepat - gmail
[+] on proposition shadow On Tue, Nov 18, 2008 at 4:16 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: And heres the result in all its glory, should I create jira issue and attach the code?.. : package zeuzgroup.web.model; import java.lang.reflect.Field; import

Re: ajax busy indicator never stops in IE

2008-11-18 Thread miro
did a simple test of this problem java code for adding a link add(new IndicatingAjaxLink(test_link){ public void onClick(AjaxRequestTarget target) { System.out.println(link clicked);

Re: ajax busy indicator never stops in IE

2008-11-18 Thread miro
i gave the wrong code here again code to add link add(new IndicatingAjaxLink(test_link){ public void onClick(AjaxRequestTarget target) { System.out.println(link clicked);

resource mapping and dot in url

2008-11-18 Thread ak
Hello, I have IIS forwarding request to weblogic 10.3 where my wicket-app resides. We had tough time figuring out why our app wouldn't run as expected when it is served from IIS. Ajax, js and css failed to load properly. After strenuous analysis, looks like the problem was with not allowing

Invalid URLPatternSpec for Ajax Calls in Wicket Portlet

2008-11-18 Thread prasana
Hi all, We are running Wicket Portlet in Jetspeed Portal deployed in Glassfish. But whenever we make a Ajax calls, it results in There are some problems in the request: invalid URLPatternSpec|# in the server log file and Ajax Debug windows shows ERROR: Received Ajax response with code: 400 The

Re: resource mapping and dot in url

2008-11-18 Thread Martijn Dashorst
What is the security issue of having org.apache.wicket in your url? Martijn On Tue, Nov 18, 2008 at 10:51 PM, ak [EMAIL PROTECTED] wrote: Hello, I have IIS forwarding request to weblogic 10.3 where my wicket-app resides. We had tough time figuring out why our app wouldn't run as expected

RE: Filtering (textfilter) and other DataTable examples?!

2008-11-18 Thread Ned Collyer
Thanks very much. Wicket just gets better and better hey ;) Kai Mütz wrote: Ned Collyer mailto:[EMAIL PROTECTED] wrote: Can someone please post or link to an example of how the filters are meant to work with the data table. Specifically TextFilter or TextFilteredPropertyColumn.

Re: ajax busy indicator never stops in IE

2008-11-18 Thread Nino Saturnino Martinez Vazquez Wael
Miro Putting the system out print will only confirm that the ajax call are made from server side, your problem are clientside on IE, somethings not right with ie.. Could you prepend and append alert('before') and after alert('before') to the ajax target..? and tell if both calls are made..?