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

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: 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..

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 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: 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 expec

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"

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 multi

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"); target.addCom

Re: wicketstuff-push is over, wickestuff-dojo-1.1 is born ???

2008-11-18 Thread Rodolfo Hansen
Ok, sorry about the mistake (eclipse didn't see some files missing), it is now fixed in the current trunk. On Wed, Nov 12, 2008 at 8:53 AM, Julien Graglia <[EMAIL PROTECTED]>wrote: > Le samedi 08 novembre 2008 à 08:56 -0400, Rodolfo Hansen a écrit : > > I'm currently using wicketstuff-push on a s

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: 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: 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 mad

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

2008-11-18 Thread Ilja
JWeekend, that's why I made a Quickstart... (-; Unfortunately, I'm not able to demonstrate the problem. My page works fine in the Quickstart. It doesn't in my application. I know you're going to say I have to add more "seemingly unrelated code" until I hit the problem - but my application is not ve

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 w

Re: Markup for a component interior

2008-11-18 Thread John Krasnay
You'll need to do something like this inside your border: form.add(getBodyContainer()); See the Border javadoc for a more detailed explanation. jk On Tue, Nov 18, 2008 at 04:56:09PM -0200, Adriano dos Santos Fernandes wrote: > John Krasnay escreveu: > >You probably want to implement a Border

Re: Compoundpropertymodel with shadow map?

2008-11-18 Thread Nino Saturnino Martinez Vazquez Wael
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 java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import org.apache.wicket.Applicat

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. My

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 a

Re: Validators in 1.4-rc1

2008-11-18 Thread Adriano dos Santos Fernandes
Jeremy Thomerson escreveu: how about new MaximumValidator(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 TextField with a long. Adriano

Re: Validators in 1.4-rc1

2008-11-18 Thread Jeremy Thomerson
how about new MaximumValidator(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 tex

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 pageParam

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 TextField 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. So I had r

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

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: Markup for a component interior

2008-11-18 Thread John Krasnay
You probably want to implement a Border instead of extending Form. jk On Tue, Nov 18, 2008 at 01:36:06PM -0200, Adriano dos Santos Fernandes wrote: > 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 > cont

IFrame and Ajax

2008-11-18 Thread noppy-flex
Hello, My application consists of an panel holding an IFrame and another subpanel. The IFrame has a tree as nested component which has a #onTerminalCodeSelection(AjaxRequestTarget target) method which is called when a node gets selected. On selection components which are placed on the subpanel (i

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]> w

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: tags put by the Form class tags put by who inserted the class on the page In my prototype code, I have all t

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 wi

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

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 fir

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

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 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? https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/wicke

Re: Compoundpropertymodel with shadow map?

2008-11-18 Thread James Carman
You didn't like the ProxyModelManager? https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/wicketopia/src/main/java/org/wicketopia/model/proxy/ProxyModelManager.java On Tue, Nov 18, 2008 at 7:43 AM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > Hi > > Im trying t

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

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)... I

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: 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 s

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

2008-11-18 Thread jWeekend
Ilja (and anyone who doesn't make use of simple Wicket Quickstart projects to help isolate and solve problems or whilst trying things out/learning stuff generally without the distraction/noise/bugs from the rest of your project code), I am not totally surprised that this problem isn't easy to rep

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 a

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: http://127.0.0.1:8080/site/search/wicket:interface/:20:design:search::IFormSubmitListener::/?search7c_hf_0=&..%2F..%2F..%2F..%2Fclient%2Fs

Re: overLIB Integration...

2008-11-18 Thread James Carman
The reason I'm using overLIB is because it's what we used years ago when we originally wrote this code (it was an HTML generation application that we're porting to "live" views with Wicket). You're right, it is pretty basic, but I was just offering it up since I've already done the legwork. I do

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 ur

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: 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 '${nam

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 d

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 filt

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 (http://plugins.le

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: Filtering (textfilter) and other DataTable examples?!

2008-11-18 Thread Kai Mutz
Ned Collyer 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: https://wicket-stuff.svn.sourceforge.net/svnroo

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 pret