WicketTester and the test of image visibility

2011-02-03 Thread Dmitriy Neretin
Hello everybody! Is the WicketTester method isVisible() the right solution to test if the Image is shown on the webpage? Thank you!

Re: wicket-ajax.js header contribution with script that includes a less than character

2011-02-03 Thread Pedro Santos
What about escape you XML? On Thu, Feb 3, 2011 at 5:56 AM, Randy S. randypo...@gmail.com wrote: Hi all. I have narrowed a problem down to the following scenario: I have a panel with this: wicket:head script if (someVariable 0) { someVariable = 0; } /script /wicket:head This

Re: wicket-ajax.js header contribution with script that includes a less than character

2011-02-03 Thread Matthias Gasser
A time ago I faced a similar problem, but not with wicket... I needed to escape the character somehow, or try to reverse the arguments like: 0 someVariable. see http://www.informit.com/articles/article.aspx?p=1193471seqNum=9 Am 03.02.2011 um 08:56 schrieb Randy S.: Hi all. I have

Re: HTML files not reloading in Netbeans on save - quick hack solution

2011-02-03 Thread Josh Kamau
Thanks. I had the same problem since i switched to netbeans 6.9.1 last week. Your solution has helped. Josh. On Thu, Feb 3, 2011 at 2:32 AM, Joachim Rohde mailingl...@joachimrohde.comwrote: Hi, for those of you who are developing Wicket applications with Netbeans will have encountered the

Re: How to Replace Choose One with Blank () in DropDown

2011-02-03 Thread Ian Marshall
Hi James, Thanks for the tip about Form1.choice1.null=Something Else I was always wondering how to change that text but now I can do it. Thanks again, Ian -- View this message in context:

Re: Multiple Button Problem in Wicket

2011-02-03 Thread Pedro Santos
Hi Steven, I opened a ticket to this problem. I would be very helpful if you send an quickstart also. On Wed, Feb 2, 2011 at 2:26 PM, sheadley3228 steven.head...@cats.usdoj.govwrote: Hello All, I have 3 buttons in my form and have read over the documentation concerning multiple buttons

Re: Multiple Button Problem in Wicket

2011-02-03 Thread Pedro Santos
ops: https://issues.apache.org/jira/browse/WICKET-3417 On Thu, Feb 3, 2011 at 9:02 AM, Pedro Santos pedros...@gmail.com wrote: Hi Steven, I opened a ticket to this problem. I would be very helpful if you send an quickstart also. On Wed, Feb 2, 2011 at 2:26 PM, sheadley3228

Re: Multiple Button Problem in Wicket

2011-02-03 Thread Pedro Santos
Disconsider my last mail, both it was not a bug and I replied in the wrong thread. On Thu, Feb 3, 2011 at 9:02 AM, Pedro Santos pedros...@gmail.com wrote: ops: https://issues.apache.org/jira/browse/WICKET-3417 On Thu, Feb 3, 2011 at 9:02 AM, Pedro Santos pedros...@gmail.com wrote: Hi

isValid and getFeedbackMessage

2011-02-03 Thread Altuğ Bilgin Altıntaş
Hi, Can i change TextField's (FormComponent) valid status and set a custom error message from outside ? Like : TextFieldString txtname = new TextFieldString(..) // setting valid false and custom error message if (!txtname.isValid) { // get custom error message now String error =

Re: wicket-ajax.js header contribution with script that includes a less than character

2011-02-03 Thread Randy S.
Matthias: of course, reversing the options should be the easiest and most obvious workaround. Thank you. Pedro: I could try to escape the . Presumably this would be using its entity lt; but it's not immediately obvious whether that would work because of the various levels of encoding. The entire

JGrowlFeedbackPanel repeates error message if validation called before message is cleared

2011-02-03 Thread fachhoch
I am using JGrowlFeedbackPanel , this feedback panel do not clear previous message , I mean if I hit the submit button and form failed with validation errors this JGrowlFeedbackPaneldisplays the error message , if I hit it before the validation messages is cleared , second time the

Re: Using DataView newItem method to display a BreadCrumbPanel

2011-02-03 Thread shetc
Thanks for the reply Matthew. Unfortunately, I'm not sure how to pass the panel to the target. Putting it within the IBreadCrumbPanelFactory create method seems to have no effect. -- View this message in context:

RE: isValid and getFeedbackMessage

2011-02-03 Thread Wilhelmsen Tor Iver
Can i change TextField's (FormComponent) valid status and set a custom error message from outside ? Like : Normally you write a validator that calls component.error() to set the error message, and add that validator to the FormComponent. As long as it has that error it will count as invalid.

Re: isValid and getFeedbackMessage

2011-02-03 Thread Altuğ Bilgin Altıntaş
I try to print business exception below the related form components so here is solution i found : final TextFieldString txtName = new TextFieldString(txtName , new PropertyModelString(name, name)) { @Override protected void onRender(MarkupStream

Re: File upload progress bar

2011-02-03 Thread Valentin Avksentyev
No I'm testing on my own machine, with a 300Mb file, in fact Chrome gives me upload feedback, but nothing from the upload progress bar. Here is the code I'm using: I'm overriding newWebRequest in my Application class: @Override protected WebRequest newWebRequest(HttpServletRequest

Re: Regarding AjaxIndicatorAppender and IE

2011-02-03 Thread MZemeck
This may be related to... https://issues.apache.org/jira/browse/WICKET-3321 From: Muro Copenhagen copenha...@gmail.com To: users@wicket.apache.org Date: 02/02/2011 08:19 AM Subject:Regarding AjaxIndicatorAppender and IE Hi, Has anyone experienced problems with IE (v. 8)

Re: wicket-ajax.js header contribution with script that includes a less than character

2011-02-03 Thread Igor Vaynberg
wicket should do this for you. please file a bug. -igor On Thu, Feb 3, 2011 at 6:09 AM, Randy S. randypo...@gmail.com wrote: Matthias: of course, reversing the options should be the easiest and most obvious workaround. Thank you. Pedro: I could try to escape the . Presumably this would be

Re: wicket-ajax.js header contribution with script that includes a less than character

2011-02-03 Thread Emmanouil Batsis
Not sure i understand the issue but I would suggest escaping that to lt; although script contribs could just as well offer an option to wrap a CDATA like script // ![CDATA[ //script code // ]] /script Manos Quoting Igor Vaynberg igor.vaynb...@gmail.com: wicket should do this for you.

Re: RadioChoice keeps null rawInput after required validation?

2011-02-03 Thread Xavier López
Just in case it helps someone else, we've finally managed to understand why we needed to call clearInput() on rc1 after changing its model object, with help from this previous post http://apache-wicket.1842946.n4.nabble.com/Ajax-and-form-handling-and-clearInput-td1866836.html(thanks Alexander,

Re: IndicatingAjaxSubmitLink missing?

2011-02-03 Thread Igor Vaynberg
roll your own, they are pretty trivial. look at the source of IndicatingAjaxLink -igor On Wed, Feb 2, 2011 at 11:51 PM, rolandpeng rolandp...@cht.com.tw wrote: Will any later version of wicket add IndicatingAjaxSubmitLink? It seems this class was missed. Or any other Class similar to this

Re: WicketTester and the test of image visibility

2011-02-03 Thread Igor Vaynberg
visibility can be triggered from a lot of places, isvisible() only checks the visibility flag. the best way to test it is to see if the image tag appears in the rendered markup. -igor On Thu, Feb 3, 2011 at 1:16 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hello everybody! Is the

Re: RadioChoice keeps null rawInput after required validation?

2011-02-03 Thread Xavier López
2011/2/3 Xavier López xavil...@gmail.com Have to say maybe fooled by setModelObject()'s javadoc 'Sets the backing model object; shorthand for getModel().setObject(object).' My fault, didn't see this has already been addressed on https://issues.apache.org/jira/browse/WICKET-2113 , and is

Image Tag Wicket Processing

2011-02-03 Thread Ayodeji Aladejebi
Pleas how can I stop wicket from processing my images and inserting onclick =window.location.href thanks

Re: Image Tag Wicket Processing

2011-02-03 Thread James Carman
Can you create a quickstart that exhibits that behavior? I have never seen this. On Thu, Feb 3, 2011 at 1:34 PM, Ayodeji Aladejebi aladej...@gmail.com wrote: Pleas how can I stop wicket from processing my images and inserting onclick =window.location.href thanks

Re: wicket-ajax.js header contribution with script that includes a less than character

2011-02-03 Thread Randy S.
Thanks, Igor. https://issues.apache.org/jira/browse/WICKET-3420 On Thu, Feb 3, 2011 at 11:01 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: wicket should do this for you. please file a bug. -igor On Thu, Feb 3, 2011 at 6:09 AM, Randy S. randypo...@gmail.com wrote: Matthias: of course,

AjaxLazyLoadPanel question

2011-02-03 Thread Matt Schmidt
I currently have a DataGridView loaded inside of an AjaxLazyLoadPanel, including the service call to get the data. myLazyLoadPanel = new AjaxLazyLoadPanel(id, new CollectionModelPojo()) { public Component getLazyLoadComponent(String markupId) { if(getDefaultModelObject() == null) {

Re: Using DataView newItem method to display a BreadCrumbPanel

2011-02-03 Thread shetc
I seemed to have resolved the issue by adding the page that owns the bread crumb panels as the Ajax target; I do this within the BreadCrumbPanel create method: getPage().setOutputMarkupId(true); target.addComponent(getPage()); -- View this message in context:

double validation with two different values for a text field

2011-02-03 Thread Doug Leeper
I have created a custom zip text field that validates against several country formats, i.e. US and Canada. I have created specific country converters and validators that are utilized by this custom zip field. In my test scenario, I have a valid US address displayed. I then change the

Re: Image Tag Wicket Processing

2011-02-03 Thread Ayodeji Aladejebi
If you have this in your markup: img src=images/tree10.png style=padding-right:4px;vertical-align:text-top; / by the time it renders in wicket by default,it becomes img src=images/tree10.png style=padding-right:4px;vertical-align:text-top;

Re: Image Tag Wicket Processing

2011-02-03 Thread Ayodeji Aladejebi
In the application settings: I used getMarkupSettings().setAutomaticLinking(true); thats all On Fri, Feb 4, 2011 at 2:27 AM, Ayodeji Aladejebi aladej...@gmail.comwrote: If you have this in your markup: img src=images/tree10.png style=padding-right:4px;vertical-align:text-top; / by the

Re: Image Tag Wicket Processing

2011-02-03 Thread Ayodeji Aladejebi
If I set Application Settings to getMarkupSettings().setAutomaticLinking(false); my user interface is scattered as it no longer recognizes my CSS file, then wicket changes my css tags from link href=style/jobex-style.css rel=stylesheet type=text/css / To: link href=../style/jobex-style.css

Re: Image Tag Wicket Processing

2011-02-03 Thread James Carman
Does this happen in a quickstart? Again, I've never seen this before. What I'm trying to do is eliminate variables here. If this happens in an isolated situation, then it's a problem. If not, then it's something in your environment. This sounds very familiar to me, though. Someone on this

Does Wicket 1.5 requires Wicket-auth-roles if I want to use Spring Security 3?

2011-02-03 Thread Phatthara Yotviriyapanit
Hello, I found that the previous version of wicket and spring security integration require the Wicket-auth-roles in order to get them work together. Is this also a requirement for the new version of spring security 3 and wicket 1.5 to use Wicket-auth-roles? Or can we simply use Spring Security 3

Re: Does Wicket 1.5 requires Wicket-auth-roles if I want to use Spring Security 3?

2011-02-03 Thread msj121
I have not used it, but doesn't it stand to reason that it is simpler to decide whether a user can access a certain piece of code in Wicket. That being, because I would presume you can apply the spring security to panels or pages etc... based in wicket, and not spring filters etc Or perhaps I

Re: Using DataView newItem method to display a BreadCrumbPanel

2011-02-03 Thread msj121
Well if you have the Panel Panel pnl = new Panel(breadcumbholder); pnl.setOutputMarkupId(true); and if this panel is made global, then you can add it inside other classes if necessary target.addComponent(pnl); This way you only update the panel and not the entire page shetc wrote:

Re: IndicatingAjaxSubmitLink missing?

2011-02-03 Thread rolandpeng
It's really simple.Thanks for your hint! public abstract class IndicatingAjaxSubmitLink extends AjaxSubmitLink implements IAjaxIndicatorAware { private static final long serialVersionUID = 1L; private final AjaxIndicatorAppender indicatorAppender = new

Re: MarkupId generation

2011-02-03 Thread msj121
Well I think that all of the markup ids being output are based off of the name in wicket:id=name. If memory serves correct so the easiest (ie: less obtrusive) solution is to simply change your tags. Of course tedious if you already had completed your project, so perhaps overriding the code that

Re: Does Wicket 1.5 requires Wicket-auth-roles if I want to use Spring Security 3?

2011-02-03 Thread ookpalm
I found example of Spring Security 3 and Wicket using wicket-auth-roles here https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html But I wonder why we need to use wicket-auth-roles to use Spring Security 3 with Wicket? -- View this message in context:

Re: Does Wicket 1.5 requires Wicket-auth-roles if I want to use Spring Security 3?

2011-02-03 Thread James Carman
Technically, you don't *have* to use it. You can roll your own if you want. It's just much easier with auth-roles, because you have something to start with. On Thu, Feb 3, 2011 at 10:33 PM, ookpalm ookp...@gmail.com wrote: I found example of Spring Security 3 and Wicket using

Re: Does Wicket 1.5 requires Wicket-auth-roles if I want to use Spring Security 3?

2011-02-03 Thread ookpalm
Hello Thanks both of you. I got the idea. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Does-Wicket-1-5-requires-Wicket-auth-roles-if-I-want-to-use-Spring-Security-3-tp3259415p3259473.html Sent from the Users forum mailing list archive at Nabble.com.