Re: Is there any Color Picker ? like the calendar.DatePicker

2008-02-20 Thread Java Programmer
On Feb 20, 2008 8:28 AM, laiqinyi <[EMAIL PROTECTED]> wrote: > > Is there Color Picker ? > I can choice any color, than return the color code(like FF 00) > thanks > > Mead I don't know if there are ready to use component but nice and functional JS could be found here http://www.dhtmlgoodi

Re: AJAX validation and multiple requests

2008-02-20 Thread Federico Fanton
On Wed, 20 Feb 2008 08:42:14 +0200 Timo Rantalaiho <[EMAIL PROTECTED]> wrote: > I think that we just stored the Component instances in that > case, thogh you should be wary with that and especially with > a repeater it might get difficult. > > A more dynamic way might be to use a marker interface

Re: Is there any Color Picker ? like the calendar.DatePicker

2008-02-20 Thread Sébastien Piller
In the Dojo subproject, there is a DojoColorPicker, but it works not perfectly on my config. Depending on what you want to do with it, it may be useful. Java Programmer a écrit : On Feb 20, 2008 8:28 AM, laiqinyi <[EMAIL PROTECTED]> wrote: Is there Color Picker ? I can choice an

Re: self refreshing table with effects

2008-02-20 Thread okrohne
Hi, I tried QueryStringUrlCodingStrategy and MixedParamUrlCodingStrategy and both are throwing exceptions. I looked at the example in chapter 15.2 , I don't get the point of: ((WebApplication)getApplication()).unmount("cheeses"); ((WebApplication)getApplication()).mountBookmarkablePage("chee

Re: Wicket-security wish list

2008-02-20 Thread Maurice Marrink
You don't use implies yourself. the framework will use it for you. all you have to do is implement the method. For example our implies looks like this (modified for readability) public boolean implies(Subject subject) { if (subject == null) r

Re: (Server-independent) Comet support in Wicket?

2008-02-20 Thread Jörn Zaefferer
On Feb 20, 2008 3:50 AM, Erik van Oosten <[EMAIL PROTECTED]> wrote: > Jörn Zaefferer wrote: > > ... The > > architecture must support several both dependent and independent > > components on a single page which get updated based on server-events, > > be it on schedules or events triggered by other

Multi buttons in ajax form

2008-02-20 Thread Pierre Gilquin
hi all, I try to have to have 2 buttons in a form. This form is used in an ajax window. in html, they are 2 standards buttons In the panel of the ajax window, I have an AjaxFormSubmitBehavior: form.add(new AjaxFormSubmitBehavior("onsubmit") { protected void onSubmit(AjaxRequestTarget targ

Re: Multi buttons in ajax form

2008-02-20 Thread wicket user
there is a method called findSubmittingButton() regards Dipu On Feb 20, 2008 10:41 AM, Pierre Gilquin <[EMAIL PROTECTED]> wrote: > hi all, > > I try to have to have 2 buttons in a form. This form is used in an ajax > window. > > in html, they are 2 standards buttons > > > > In the panel of the

Re: Wicket Spy?

2008-02-20 Thread Edvin Syse
you can use IResponseFilter to store the generated markup. in a company i used to work for we would store markup for the last page and if the error occured we attached it to the error report - very useful thing to have. Thank you, just what I need :)) ---

Re: Multi buttons in ajax form

2008-02-20 Thread Pierre G
Sorry for the noise, I was able to do it with 2 AjaxButton added on the form. Pierre Pierre G wrote: > > hi all, > > I try to have to have 2 buttons in a form. This form is used in an ajax > window. > > in html, they are 2 standards buttons > > > > In the panel of the ajax window, I have

Combining Ajax and non Ajax pages

2008-02-20 Thread steviezz
I have a panel on my application home page containing 3 related dropdowns - area/country/region. I use AjaxFormComponentUpdatingBehavior to populate the lower dropdowns when a higher one changes - eg: area changes - country and region dropdowns get reset country changes - region dropdown

where is wicket-contrib-tinymce ???

2008-02-20 Thread Maris Orbidans
where is wicket-contrib-tinymce project and svn repo ? it's not even mentioned in this page http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki Maris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: Handle Hibernate transaction in wicket

2008-02-20 Thread Martijn Lindhout
I use Spring's OpenSessionInViewFilter 2008/2/19, Andrew Williams <[EMAIL PROTECTED]>: > > I use onBeginRequest and onEndRequest from the WebRequestCycle, seems > to work well. > > Andy > > On 13 Feb 2008, at 07:59, Sébastien Piller wrote: > > > Hello, > > > > I'm searching for a best practice to

Re: Combining Ajax and non Ajax pages

2008-02-20 Thread wicket user
store the backing model in the session and get it from the session, this will help you retain the state in all the cases Cheers Dipu On Feb 20, 2008 11:38 AM, steviezz <[EMAIL PROTECTED]> wrote: > > I have a panel on my application home page containing 3 related dropdowns > - > area/country/regi

Re: where is wicket-contrib-tinymce ???

2008-02-20 Thread Java Programmer
On Feb 20, 2008 10:42 PM, Maris Orbidans <[EMAIL PROTECTED]> wrote: > where is wicket-contrib-tinymce project and svn repo ? > > it's not even mentioned in this page > > http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wic

Re: Handle Hibernate transaction in wicket

2008-02-20 Thread James Carman
It sounds like you're looking for "transaction-per-request" and not "session-per-request." The "session-per-request" part is easy. Just use the OpenSessionInViewFilter from Spring (as stated by someone else on this thread). The OpenSessionInViewFilter doesn't begin a transaction for you automati

Re: (Server-independent) Comet support in Wicket?

2008-02-20 Thread Erik van Oosten
Jörn Zaefferer wrote: On Feb 20, 2008 3:50 AM, Erik van Oosten <[EMAIL PROTECTED]> wrote: Jörn Zaefferer wrote: ... The architecture must support several both dependent and independent components on a single page which get updated based on server-events, be it on schedules or events tri

Re: where is wicket-contrib-tinymce ???

2008-02-20 Thread Nino Saturnino Martinez Vazquez Wael
its also in maven repo: http://wicketstuff.org/maven/repository/org/wicketstuff/wicket-contrib-tinymce/ Java Programmer wrote: On Feb 20, 2008 10:42 PM, Maris Orbidans <[EMAIL PROTECTED]> wrote: where is wicket-contrib-tinymce project and svn repo ? it's not even mentioned in this page ht

Re: (Server-independent) Comet support in Wicket?

2008-02-20 Thread Stefan Fußenegger
wicketstuff-push might be what you are looking for: wicket cometd support with jetty. but i don't think that anybody has used it with 10k simultaneous users yet. see: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push/ https://wicket-stuff.svn.sourceforge.net/svn

Re: Restarting AjaxTimeBehavior

2008-02-20 Thread Juan Gabriel Arias
Sorry, but... any ideas? Should i create an issue in jira? Thanks! Juan On Feb 19, 2008 12:56 PM, Juan Gabriel Arias <[EMAIL PROTECTED]> wrote: > Hi all, > is there a way to do that? Restart the AjaxTimeBehavior? > > I have a panel, that should update itself when some event occurs. So, i > use A

Re: Restarting AjaxTimeBehavior

2008-02-20 Thread Martijn Dashorst
I don't think anyone has come up with this usecase. So a JIRA would be good, a patch better. Martijn On 2/20/08, Juan Gabriel Arias <[EMAIL PROTECTED]> wrote: > Sorry, but... any ideas? Should i create an issue in jira? > > Thanks! > Juan > > On Feb 19, 2008 12:56 PM, Juan Gabriel Arias <[EMAIL P

Re: Handle Hibernate transaction in wicket

2008-02-20 Thread Nino Saturnino Martinez Vazquez Wael
see blog tutorial on howto set this up with wicket...:) Martijn Lindhout wrote: I use Spring's OpenSessionInViewFilter 2008/2/19, Andrew Williams <[EMAIL PROTECTED]>: I use onBeginRequest and onEndRequest from the WebRequestCycle, seems to work well. Andy On 13 Feb 2008, at 07:59, Sébasti

Re: Handle Hibernate transaction in wicket

2008-02-20 Thread Pills
Thank you all for your ideas. At the moment, I handle it manually (transaction and session), and until now, I don't got much problems. I don't want to use anything from spring, as it seems a lot more difficult than anything else in my project. I've put a closeSession on the onAfterRender meth

NoClassDefFoundError with DatePicker on app reload

2008-02-20 Thread Sébastien Piller
Hello, I've a problem with the DatePicker component. Every time I reload my application (in Eclipse -> Run -> 'My project' on MyEclipse Tomcat, or with an application undeploy/redeploy on Tomcat), I got the stacktrace below. java.lang.NoClassDefFoundError: org.apache.wicket.extensions.yui.cale

RE: Spring injecting beans into non-component classes

2008-02-20 Thread Warren
I am getting an NoClassDefFoundError Exception when I try to use InjectorHolder.getInjector().inject(this);. I think I am missing a library or two of some sort. java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Callback I placed cglib, which has net.sf.cglib.proxy.Callback in it, in my classpath

Good news on Wicket in Action

2008-02-20 Thread Erik van Oosten
http://martijndashorst.com/blog/2008/02/20/wicket-in-action-fit-for-production/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Handle Hibernate transaction in wicket

2008-02-20 Thread James Carman
Once you get used to Spring, you'll really appreciate it. I wouldn't write it off as too difficult if I were you. It's definitely worth learning (and it helps your resume; it's in high demand). On 2/20/08, Pills <[EMAIL PROTECTED]> wrote: > > Thank you all for your ideas. > > > At the moment, I

Re: Wicket-security wish list

2008-02-20 Thread Maurice Marrink
Johan is correct, you should use SecurePageLinks or other Links that are protected to prevent users from ever seeing or clicking the link. Maurice On Feb 20, 2008 5:21 PM, Johan Compagner <[EMAIL PROTECTED]> wrote: > Why do you get access denied pages a lot in your app? > I would say a user shoul

Re: Handle Hibernate transaction in wicket

2008-02-20 Thread Sébastien Piller
Yes, I read a bit about Spring some time ago, but atm I'm working on a project that will be released soon. I can't afford to rewrite half my code on the lasts weeks ;) Next time, I'll take some time to getting started with it. I'm sure it's worth, that's what I read all the day. But I must con

Re: Handle Hibernate transaction in wicket

2008-02-20 Thread James Carman
Actually, Spring lets you (more importantly them) not worry about the transaction stuff at all. The person (you, perhaps) who is wiring things together can add in the transaction stuff in the XML file. On 2/20/08, Sébastien Piller <[EMAIL PROTECTED]> wrote: > Yes, I read a bit about Spring some t

Re: AjaxFallbackDefaultDataTable not refreshing in IE6

2008-02-20 Thread Beyonder Unknown
I built a simple app simulating my application, but i cannot reproduce the bug. I noticed that the table header is generated as combo. I encountered a problem before about IE not like span inside an anchor tag. How can I fix this ajax error? ERROR: Error while parsing response: Object requir

Re: Wicket-security wish list

2008-02-20 Thread Johan Compagner
Why do you get access denied pages a lot in your app? I would say a user shouldnt be abe to click on that link in the first place. Only maybe when he tampers with it. But if you have session pages that that shouldnt be a problem. (only bookmakrable pages where a user has to first login for) On 2/1

Re: self refreshing table with effects

2008-02-20 Thread Johan Compagner
Please make a jira issue for this with an example On 2/20/08, okrohne <[EMAIL PROTECTED]> wrote: > > Hi, > > I tried QueryStringUrlCodingStrategy and MixedParamUrlCodingStrategy and > both are throwing > exceptions. I looked at the example in chapter 15.2 , I don't get the point > of: > > ((WebApp

Re: Restarting AjaxTimeBehavior

2008-02-20 Thread Juan Gabriel Arias
Ok, i'll try to do that. Thanks! juan

Re: Custom JavaScript Panel ?

2008-02-20 Thread Beyonder Unknown
Hi Warren, Try this. Have your panel implement IHeaderContributor, and implement the method: /** * This method will call this javascript to set the button to its default state. */ public void renderHead(IHeaderResponse response) { response.renderOnDomReadyJavascript("f

RE: Wicket-security wish list

2008-02-20 Thread Warren
Yes, this would work if you did not need to give the user any type of indication why they can not go to that page. My app is very flexible in that an administrator can adjust security settings based on their company's policies. Say for instance, I have a whole ordering section of my app where a use

RE: Custom JavaScript Panel ?

2008-02-20 Thread Warren
Thanks, I will give it a try. > -Original Message- > From: Beyonder Unknown [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 20, 2008 9:16 AM > To: users@wicket.apache.org > Subject: Re: Custom JavaScript Panel ? > > > Hi Warren, > > Try this. Have your panel implement IHeaderContribu

Tab switching events?

2008-02-20 Thread Michael Mehrle
I have a TabbedPanel (a) that contains two panels which in turn each contain one TabbedPanel (b) and (c). When I switch a tab in (b) or (c) I need to retain the tab selection of (a) in their link logic. I am currently overriding newLink() for all panels using IndexedParamUrlCodingStrategy. One app

Multiple RadioGroups in an Table...can it be done?

2008-02-20 Thread Doug Leeper
I have two columns in a DataView that have two separate radio based values. >From my reading/understanding is that a Radio will traverse up the component tree to find the nearest RadioGroup. If this is correct, how would one have a two radio groups displayed in a DataView? -- View this message

Re: NoClassDefFoundError with DatePicker on app reload

2008-02-20 Thread Gerolf Seitz
i experienced the same issue. i got around it by adding this to my context.xml (big thanks to Nick Heudecker): see http://tomcat.apache.org/tomcat-6.0-doc/config/manager.html gerolf * On Wed, Feb 20, 2008 at 4:46 PM, Sébastien Piller <[EMAIL PROTECTED]> wrote: > Hello, > > I've a problem

Re: NoClassDefFoundError with DatePicker on app reload

2008-02-20 Thread Martijn Dashorst
Probably a bug in the datepicker which tries to initialize a class instance variable upon deserialization. Probably it tries to bind to the Application. Could you file a bug in JIRA? Martijn On 2/20/08, Sébastien Piller <[EMAIL PROTECTED]> wrote: > > Hello, > > I've a problem with the DatePick

Re: need to sanitize uploaded file names before saving?

2008-02-20 Thread Abdul Habra
When I save uploaded files, I never use the client's name of the file. That could cause problems, and could be a security risk. For example, a windows client may have a file name which contains spaces, however on a unix system this will not be a valid file name. Another example if u r

Re: NoClassDefFoundError with DatePicker on app reload

2008-02-20 Thread Martijn Dashorst
Do these two want to look up something Wicket related that is not yet on the classpath? private static final ResourceReference YUI = new JavascriptResourceReference(YuiLib.class, ""); private static final ResourceReference WICKET_DATE = new JavascriptResourceReference(

Re: NoClassDefFoundError with DatePicker on app reload

2008-02-20 Thread Martijn Dashorst
Erhm, are they trying to do something like "Application.get()"? That would cause an exception, causing the initialization to be borked, causing all kinds of runtime errors. It will also explain the NoClassDefFoundError. Martijn On 2/20/08, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > Do these t

Re: NoClassDefFoundError with DatePicker on app reload

2008-02-20 Thread Gerolf Seitz
iirc, YuiLib calls Application.get() to check whether the app is in deployment/development mode. gerolf On Wed, Feb 20, 2008 at 9:26 PM, Martijn Dashorst < [EMAIL PROTECTED]> wrote: > Erhm, are they trying to do something like "Application.get()"? > > That would cause an exception, causing the

need to sanitize uploaded file names before saving?

2008-02-20 Thread Alex Jacoby
I'm saving uploaded files to a directory on the local file system. I was just wondering: would it be possible for someone to give their uploaded file a name like "../../secretdir/passwd" so that they could theoretically clobber another file (if permissions weren't somehow blocking it)? I

Re: NoClassDefFoundError with DatePicker on app reload

2008-02-20 Thread Martijn Dashorst
Then that is the problem and should be fixed. Martijn On 2/20/08, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > iirc, YuiLib calls Application.get() to check whether the app is in > deployment/development mode. > > gerolf > > On Wed, Feb 20, 2008 at 9:26 PM, Martijn Dashorst < > [EMAIL PROTECTED]>

Re: NoClassDefFoundError with DatePicker on app reload

2008-02-20 Thread Martijn Dashorst
BTW, I just had such a scenario on the job, therefore I might be able to pinpoint this quickly. Martijn On 2/20/08, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > Then that is the problem and should be fixed. > > Martijn > > On 2/20/08, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > > iirc, YuiLib call

Re: need to sanitize uploaded file names before saving?

2008-02-20 Thread Alex Jacoby
Good points -- I was munging the filename a bit, but basically leaving it unchanged so that it would be simpler to debug. I'm still curious about the directory traversal thing... I've tried using tamper data to change the filename, but I get a MalformedStreamException each time I try [1].

scriptaculous error - Effect is not defined

2008-02-20 Thread Maris Orbidans
hi I am trying to use wicketstuff-scriptaculous-1.3 latest snapshot but it's not working. I have simply included the jar in my app. Do I need to do anything else to install scriptaculous support ? Maris public class ColumnLinkPanel extends Panel { public ColumnLinkPanel(String id, fin

Re: scriptaculous error - Effect is not defined

2008-02-20 Thread Ryan Sonnek
Yep. If your using the effects directly without any of the Ajax components, you need to manually add the scriptaculous javascript files to your page. add this code to your page and you should be good to go: add(ScriptaculousAjaxBehavior.newJavascriptBinding()); On Thu, Feb 21, 2008 at 12:56 AM,

Re: Spring injecting beans into non-component classes

2008-02-20 Thread Igor Vaynberg
why dont you use maven to manage your dependencies? from cursory look you are missing asm which cglib depends on and wicket-ioc.jar -igor On Wed, Feb 20, 2008 at 7:51 AM, Warren <[EMAIL PROTECTED]> wrote: > I am getting an NoClassDefFoundError Exception when I try to use > InjectorHolder.getInj

Re: AjaxFallbackDefaultDataTable not refreshing in IE6

2008-02-20 Thread Igor Vaynberg
no idea. you cant even reproduce it yourselfand explorer isnt being very informative. there is no problem with a span inside anchor, but a div inside anchor, or a div inside span can do it... -igor On Wed, Feb 20, 2008 at 8:46 AM, Beyonder Unknown <[EMAIL PROTECTED]> wrote: > > I built a si

Re: Tab switching events?

2008-02-20 Thread Igor Vaynberg
On Wed, Feb 20, 2008 at 10:51 AM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > I have a TabbedPanel (a) that contains two panels which in turn each > contain one TabbedPanel (b) and (c). When I switch a tab in (b) or (c) I > need to retain the tab selection of (a) in their link logic. I am > curr

Re: Multiple RadioGroups in an Table...can it be done?

2008-02-20 Thread Igor Vaynberg
radio in its current state wont work. there is a patch in jira but it needs to be reviewed and applied... you can easly roll your own component though that doesnt need a RadioGroup to work... -igor On Wed, Feb 20, 2008 at 11:36 AM, Doug Leeper <[EMAIL PROTECTED]> wrote: > > I have two columns

Re: (Server-independent) Comet support in Wicket?

2008-02-20 Thread Jörn Zaefferer
Thanks Erik and Stefan, that helps a lot. At least I'm now mostly convinced that Jetty 6 continuations are the way to go for Comet support. wicketstuff-push, based on dojo and cometd isn't that convincing though. I can't compile wicketstuff-push because there is no wicketstuff-dojo snapshot, as re

Re: NoClassDefFoundError with DatePicker on app reload

2008-02-20 Thread Gerolf Seitz
should be fixed in trunk. gerolf On Wed, Feb 20, 2008 at 9:31 PM, Martijn Dashorst < [EMAIL PROTECTED]> wrote: > BTW, I just had such a scenario on the job, therefore I might be able > to pinpoint this quickly. > > Martijn > > On 2/20/08, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > Then th

Re: self refreshing table with effects

2008-02-20 Thread Martijn Dashorst
The example as is doesn't make sense in an application, but is necessary in the context of a book explaining what the effect is of a URL encoding strategy: it shows how the same link will render with each URL coding strategy. Therefore it unmounts and mounts. Martijn On 2/20/08, okrohne <[EMAIL P

Re: Opening DynamicWebResource from Button/AjaxButton?

2008-02-20 Thread UPBrandon
As I mentioned in my previous response, I couldn't use getRequestCycle().setRequestTarget() directly because of the way the API works (you can use a ResourceReference but not a Resource.) Instead, I ended up with something like this: new AjaxButton(buttonId, form) { protected void onSubm

Re: need to sanitize uploaded file names before saving?

2008-02-20 Thread Peter Ertl
Why not simply use new java.io.File(client_file_name).getName() ? > Returns the name of the file or directory denoted by this abstract pathname. > This is just the last name in the pathname's name sequence. > If the pathname's name sequence is empty, then the empty string is returned.

Re: need to sanitize uploaded file names before saving?

2008-02-20 Thread Alex Jacoby
I'm now running it through Files.filename() followed by a replaceAll for non-word, non-dot chars. It seems to work OK. Have I overlooked anything? (They can still put a bad extension on the file, but since they're restricted to the data directory of my choosing I'm OK with that.) Thank

Re: Opening DynamicWebResource from Button/AjaxButton?

2008-02-20 Thread Igor Vaynberg
so you want to see the page with updated form values _and_ stream the pdf? why dont you take that url you generated for your resourceref and append it to a window.onload javascript that does window.location=url; -gior On Wed, Feb 20, 2008 at 2:33 PM, UPBrandon <[EMAIL PROTECTED]> wrote: > > A

What is the Wicket way to redirect?

2008-02-20 Thread MYoung
In my Checkout page if there is nothing to checkout, I want to bounce to the ShowCatalog page with an error message. I did it this way: class Checkout extends WebPage { public Checkout() { if (thereIsNothingToCheckout()) { error("You have nothing to checkout");

Re: What is the Wicket way to redirect?

2008-02-20 Thread Igor Vaynberg
s/error/session.error/ s/setresponsepage/throw new restartresponseexception -igor On Wed, Feb 20, 2008 at 2:54 PM, MYoung <[EMAIL PROTECTED]> wrote: > > In my Checkout page if there is nothing to checkout, I want to bounce to the > ShowCatalog page with an error message. I did it this way: >

Problem while updating model within DojoDropDownChoice

2008-02-20 Thread Kai Mütz
Hello list, I am new to wicket and playing around with the DojoDropDownChoice from wicketstuff-dojo-1.3.0-beta. I want to use it similar to a "normal" DropDownChoice component with ChoiceRenderer. But after selecting an entry of the list and submiting the form the model is not updated correctly. T

Problem while updating model within DojoDropDownChoice

2008-02-20 Thread Kai Mütz
Hello list, I am new to wicket and playing around with the DojoDropDownChoice from wicketstuff-dojo-1.3.0-beta. I want to use it similar to a "normal" DropDownChoice component with ChoiceRenderer. But after selecting an entry of the list and submiting the form the model is not updated correctly. T

Re: Tabular form validation problem with checkboxes

2008-02-20 Thread Igor Vaynberg
On Tue, Feb 19, 2008 at 9:04 PM, Martin Makundi <[EMAIL PROTECTED]> wrote: > > in your validate method why dont you iterate over the todo items > > instead of components. isnt that what the checkboxes are bound to? > > The idea is to validate the input before it gets updated into the todo > item

Re: Adding onClick event to form fields

2008-02-20 Thread Igor Vaynberg
input type="textfield" doesnt have an onclick event afaik... -igor On Tue, Feb 19, 2008 at 6:28 PM, givp <[EMAIL PROTECTED]> wrote: > > Hi, > > Sorry for the newbie query. I currently have a form text field and I want to > also be able to click on the field and do other stuff. I'm doing this

Re: Adding onClick event to form fields

2008-02-20 Thread Nick Heudecker
I think just onfocus, onblur and possibly onchange. On Wed, Feb 20, 2008 at 5:14 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > input type="textfield" doesnt have an onclick event afaik... > > -igor > > > On Tue, Feb 19, 2008 at 6:28 PM, givp <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > Sorry

Re: Tabular form validation problem with checkboxes

2008-02-20 Thread Martin Makundi
> a proper solution would be to use a validator or a formvalidator to do > this. generally you never iterate over components to do validation in > wicket. we have good plugin points for you in the form workflow. Judging from the performance of the checkbox, I have a wrong plugin point for the va

Re: Tabular form validation problem with checkboxes

2008-02-20 Thread Igor Vaynberg
this line: textRequired = (Boolean) checkBox.getModelObject(); should not work you are inside a validator, that means models haven not been updated yet. models are only updated once all type conversion/validation succeeds. inside validators you should use formcomponent.getconvertedinput() to read

Need to redirect to the current page upon a page expire - how??

2008-02-20 Thread Chris Lintz
Hi, So i have searched the forums regarding overriding RequestCycle#onRuntimeException(Page page,RuntimeException e) . It seems we are completely stuck because there is no way to determine what page threw a PageExpiredException . What I want to do is this: When my SearchPage expires, and the

Re: Adding onClick event to form fields

2008-02-20 Thread Christian Alejandro Marquez Grabia
Yes...and the right way to do it is not using ajaxlink, but using AjaxFormComponentUpdatingBehaviour("onclick") I tried this on FF, and the mouse events are accepted in text fields...according to the page, accepted in all tags except: base, bdo, br, frame, frameset, head, html, iframe, meta, param

Re: Tabular form validation problem with checkboxes

2008-02-20 Thread Martin Makundi
> inside validators you should use formcomponent.getconvertedinput() to > read the value that will be put into the model if validators succeed. Thousand tnx, this solved the remaining problem. ** Martin - To unsubscribe, e-mai

Re: Settings focus to window opened by javascript appended to AjaxLink

2008-02-20 Thread jeredm
I am having a similar problem in IE, but it does not happen in Firefox. I am popping up a modal dialog and want to set focus on the first text box in the modal when it is opened (id="focusMe"). Here is some code that has been trimmed for simplicity: HTML: JAVA: public void onClick(AjaxReques

Re: Settings focus to window opened by javascript appended to AjaxLink

2008-02-20 Thread Christian Alejandro Marquez Grabia
You should try without the alertit removes the focus when you click the 'Ok' button. Instead you should try something like: onfocus= "this.value = 'focused';" Another method that can be used is select() instead of focus() Rgds, Christian On 2/20/08, jeredm <[EMAIL PROTECTED]> wrote: > > > I

Wicket DTD?

2008-02-20 Thread MYoung
I use the Amateras Eclipse HTML editor, it raises warnings on wicket element. It can register DTD ("Window" > "Preferences" > "Amateras" > "DTD / XMLSchema"). Where is the Wicket DTD? Better yet, anyone exactly how to configure Amateras to know the Wicket namespace? -- View this message in con

Re: self refreshing table with effects

2008-02-20 Thread okrohne
Hi, for the moment I have a workaround as I do not mount the page, but for production this would be mandatory. Is there a chance that this issue will be fixed soon? Another question regarding the AjaxSelfUpdatingTimerBehavior: Is is possible to stop the update timer lets say by a mouse over even

textarea problem

2008-02-20 Thread okrohne
Hi, if I use a textarea like this: all subsequent html markup is shown in the textarea. If I use the textarea in this way everything is okay. Is this a known issue? Thanks, Oliver -- View this message in context: http://www.nabble.com/textarea-problem-tp15606212p15606212.html Sent f

Re: Need to redirect to the current page upon a page expire - how??

2008-02-20 Thread Maurice Marrink
how about using a stateless searchpage? that way you should not get a page expired. Maurice On Thu, Feb 21, 2008 at 1:14 AM, Chris Lintz <[EMAIL PROTECTED]> wrote: > > Hi, > So i have searched the forums regarding overriding > RequestCycle#onRuntimeException(Page page,RuntimeException e) . It