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.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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  wrote:
>
> 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: 
> http://apache-wicket.1842946.n4.nabble.com/Does-Wicket-1-5-requires-Wicket-auth-roles-if-I-want-to-use-Spring-Security-3-tp3259415p3259426.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/Does-Wicket-1-5-requires-Wicket-auth-roles-if-I-want-to-use-Spring-Security-3-tp3259415p3259426.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: MarkupId generation

2011-02-03 Thread msj121

Well I think that all of the markup ids being output are based off of the
 in "wicket:id=". 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
generates the markup id. Not sure, but an interesting question.

Matthew
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/MarkupId-generation-tp3258525p3259445.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
AjaxIndicatorAppender();

public IndicatingAjaxSubmitLink(String id) {
super(id, null);
add(indicatorAppender);
}

public IndicatingAjaxSubmitLink(String id, Form form) {
super(id, form);
add(indicatorAppender);
}

/**
 * @see
org.apache.wicket.ajax.IAjaxIndicatorAware#getAjaxIndicatorMarkupId()
 */
public String getAjaxIndicatorMarkupId() {
return indicatorAppender.getMarkupId();
}
}
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/IndicatingAjaxSubmitLink-missing-tp3257456p3259444.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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:
> 
> 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: 
http://apache-wicket.1842946.n4.nabble.com/Using-DataView-newItem-method-to-display-a-BreadCrumbPanel-tp3252215p3259442.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
misunderstand spring security method of checking user permissions on
content.

Just my guess, but like I said, I know close to nothing on the topic, I only
perused it once a while ago.

Matthew
-- 
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-tp3259415p3259440.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 directly
with Wicket 1.5?

Thanks
Ookpalm


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 list asked a question about having the images
clickable automatically before.

On Thu, Feb 3, 2011 at 8:27 PM, Ayodeji Aladejebi  wrote:
> If you have this in your markup:
>
>  style="padding-right:4px;vertical-align:text-top;" />
>
> by the time it renders in wicket by default,it becomes
>
>   style="padding-right:4px;vertical-align:text-top;"
> onclick="window.location.href='images/tree10.png';return false;"/>
>
> As simple as that
>
> Any tips
>
>
>
> On Thu, Feb 3, 2011 at 7:38 PM, James Carman 
> wrote:
>
>> 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 
>> wrote:
>> > Pleas how can I stop wicket from processing my images and inserting
>> onclick
>> > ="window.location.href"
>> >
>> > thanks
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> Aladejebi Ayodeji A.,
> DabarObjects Solutions
> Phone: +234 9 875 1763
> Mobile: +234 803 589 1780
> Email: d...@dabarobjects.com
> Web: www.dabarobjects.com
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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



To:



and my CSS files stop resolving

I will appreciate any help with this

On Fri, Feb 4, 2011 at 2:29 AM, Ayodeji Aladejebi wrote:

> In the application settings: I used
>
> getMarkupSettings().setAutomaticLinking(true);
>
> thats all
>
>
> On Fri, Feb 4, 2011 at 2:27 AM, Ayodeji Aladejebi wrote:
>
>> If you have this in your markup:
>>
>> > style="padding-right:4px;vertical-align:text-top;" />
>>
>> by the time it renders in wicket by default,it becomes
>>
>>  > style="padding-right:4px;vertical-align:text-top;"
>> onclick="window.location.href='images/tree10.png';return false;"/>
>>
>> As simple as that
>>
>> Any tips
>>
>>
>>
>> On Thu, Feb 3, 2011 at 7:38 PM, James Carman 
>> wrote:
>>
>>> 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 
>>> wrote:
>>> > Pleas how can I stop wicket from processing my images and inserting
>>> onclick
>>> > ="window.location.href"
>>> >
>>> > thanks
>>> >
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>>
>>
>


Web: www.dabarobjects.com


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

> If you have this in your markup:
>
>  style="padding-right:4px;vertical-align:text-top;" />
>
> by the time it renders in wicket by default,it becomes
>
>   style="padding-right:4px;vertical-align:text-top;"
> onclick="window.location.href='images/tree10.png';return false;"/>
>
> As simple as that
>
> Any tips
>
>
>
> On Thu, Feb 3, 2011 at 7:38 PM, James Carman 
> wrote:
>
>> 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 
>> wrote:
>> > Pleas how can I stop wicket from processing my images and inserting
>> onclick
>> > ="window.location.href"
>> >
>> > thanks
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
>


Re: Image Tag Wicket Processing

2011-02-03 Thread Ayodeji Aladejebi
If you have this in your markup:



by the time it renders in wicket by default,it becomes

 

As simple as that

Any tips



On Thu, Feb 3, 2011 at 7:38 PM, James Carman wrote:

> 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 
> wrote:
> > Pleas how can I stop wicket from processing my images and inserting
> onclick
> > ="window.location.href"
> >
> > thanks
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 875 1763
Mobile: +234 803 589 1780
Email: d...@dabarobjects.com
Web: www.dabarobjects.com


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 country that has a AjaxFormComponentUpdatingBehavior which 
sends back the zip and state fields.  Note: zip field has a model reference of 
the country value which determines which validator/converter to use.

I change the zip to be a valid Canadian zip (A#A #A#) and submit the changes.

In my debug statements, I see the new value is parsed and validated with no 
error detected.

But what is interesting, the previous US zip value is also being validated 
which 
causes an unexpected.

Where did this zip value come from?  Did I forget to change/refresh a 
value/component?

Any help is much appreciated.

Thanks
- Doug

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: 
http://apache-wicket.1842946.n4.nabble.com/Using-DataView-newItem-method-to-display-a-BreadCrumbPanel-tp3252215p3259004.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 CollectionModel()) {
public Component getLazyLoadComponent(String markupId) {
if(getDefaultModelObject() == null) {
setDefaultModelObject(myPojoService.readAll());
}
return new MyDataGridView(markupId, getDefaultModel()); //ignoring
casting for simplicity
}
}

That works great for loading the page before the service call is complete.

But now I need to add a DropDownChoice to change the collection in the data
grid via Ajax after the page is loaded. Is there anyway to get the
DataGridView to be replaced with an Ajax indicator (like on page load)
during an Ajax "onchange" event for the DropDownChoice? I've added an Ajax
indicator to the DropDownChoice, but I would like the same behavior I get on
page load for the AjaxLazyLoadPanel.

This is what I have for the drop down for starters:

myDropDownChoice.add(new AjaxFormComponentUpdateBehavior("onchange") {
protected void onUpdate(AjaxRequestTarget target) {
if(myDropDownChoice.getModelObject().equals(foo)) {
myLazyLoadPanel.setDefaultModelObject(myPojoService.readFoo());
}
//check other selections
   target.addComponent(myLazyLoadPanel);
}
}

I may be looking at this entirely wrong... Any suggestions?


Re: wicket-ajax.js header contribution with

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

> wicket should do this for you. please file a bug.
>
> -igor
>
> On Thu, Feb 3, 2011 at 6:09 AM, Randy S.  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 using its
> > entity < but it's not immediately obvious whether that would work
> because
> > of the various levels of encoding. The entire header contribution is in a
> > CDATA for the XHR so it would not get decoded there. I'm away from the
> > project at the moment but I will try this later.
> >
> > Anyway, I will submit it as a bug and may be able to offer some insight
> into
> > the reason and possible fix. I suspect it has to do with crazy
> > (browser-specific) hoop jumping in wicket-ajax.js's processing of the
> ajax
> > response. That looks like a good bit of volatile code to make it work as
> > well as it does.
> > On Feb 3, 2011 4:18 AM, "Matthias Gasser" 
> wrote:
> >> 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=1193471&seqNum=9
> >>
> >>
> >>
> >> Am 03.02.2011 um 08:56 schrieb Randy S.:
> >>
> >>> Hi all. I have narrowed a problem down to the following scenario:
> >>>
> >>> I have a panel with this:
> >>>
> >>> 
> >>> 
> >>> if (someVariable < 0) {
> >>> someVariable = 0;
> >>> }
> >>> 
> >>> 
> >>>
> >>> This script fails to execute when the panel is loaded by ajax. If I
> > replace
> >>> the less than character "<" with equals "==", then it executes (but of
> >>> course, this is not what I need).
> >>>
> >>> I tested this in Firefox 4.0b10 and Chrome 8.
> >>>
> >>> I have searched a lot for others facing this issue, and also tried to
> dig
> >>> through wicket-ajax.js, but it is time to ask here in case it is a
> known
> >>> issue.
> >>>
> >>> I 'm sure I can put the code into a separate JS file as a workaround
> but
> > I
> >>> wanted to save another network hop. Another solution would be to embed
> > the
> >>> script in  rather than , but that has the
> >>> disadvantage of re-sending the script with the panel content when the
> > panel
> >>> is re-used on the same page.
> >>>
> >>> Thanks for any help/info.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


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  wrote:
> Pleas how can I stop wicket from processing my images and inserting onclick
> ="window.location.href"
>
> thanks
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: RadioChoice keeps null rawInput after required validation?

2011-02-03 Thread Xavier López
2011/2/3 Xavier López 

> 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 specific of 1.3.

Cheers,
Xavier


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
 wrote:
> Hello everybody!
>
> Is the WicketTester method isVisible() the right solution to test if the
> Image is shown on the webpage?
>
> Thank you!
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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  wrote:
>
> Will any later version of wicket add IndicatingAjaxSubmitLink?
> It seems this class was missed. Or any other Class similar to this
> IndicatingAjaxSubmitButton, but only for link?
> Thank you.
>
> Roland.
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/IndicatingAjaxSubmitLink-missing-tp3257456p3257456.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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, Igor)

1. When selecting 'no' and submitting the form without providing a value to
rc1, the required validation prevents form submission. An empty string
remains as rc1's rawinput as that's the last user inputted value.
2. When selecting 'yes', an ajax updating behavior fires on the yes/no
radiochoice. Rc1's rawInput remains empty.
3. In the behavior's onUpdate(), we set rc1's model object by means of only
modifying the backing entity (it had a propertymodel). This is the key
point, we weren't aware that rc1#setModelObject() would clear input
automatically by calling modelChanged().
4. At render time, rc1#getValue() got the empty input that the last form
submission left, and using that one to set the selected option.

Oh, my, I've been thinking this whole time that setModelObject() was
equivalent to doing getModel().setObject(). Have to say maybe fooled by
setModelObject()'s javadoc 'Sets the backing model object; shorthand for
getModel().setObject(object).'

Cheers,
Xavier

2011/1/26 Igor Vaynberg 

> clearinput() is a good way to deal with it, but the component should
> still set no_raw_input if it is submitted in a disabled state. please
> file a jira issue, preferably with a quickstart.
>
> -igor
>
> On Wed, Jan 26, 2011 at 3:05 AM, Xavier López  wrote:
> > Hi,
> >
> > I've got a form with a required radiochoice to select among some options.
> > I've also got a yes/no radiochoice that selects a given option on rc1 and
> > disables it when 'yes' is selected. When 'no' is selected, rc1 is set to
> > enabled and its model object is cleared.
> >
> > The enabling/disabling of rc1 and its modelobject set is done in the
> > onUpdate() method of an AjaxFormChoiceComponentUpdatingBehavior on the
> > yes/no radiochoice.
> >
> > It's working fine, except in the following situation: 'no' is selected
> and
> > rc1 has no value set. Then the required validation prevents the form
> > submission. After that, if I select 'yes' on the yes/no radiochoice, it
> > enables rc1 and sets its model object successfully, but, to my surprise,
> the
> >  has no value selected when rendering the HTML.
> >
> > After debbuging through rc1#onComponentTagBody(), I've found that
> getValue()
> > returns null, because rawInput is null (and not NO_RAW_INPUT), that's why
> > there's no radio selected. I suspect rawInput is null because of last
> > submitting rc1 with no value selected (when the required validation
> fails).
> > I managed to get around this by calling rc1.clearInput() on the ajax
> > behavior.
> >
> > Just want to know if i'm right about these thoughts, because I feel
> > something wrong here, and if calling clearInput() is a good way of
> dealing
> > with this.
> >
> > Thank you for your feedback!
> > Xavier
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


MarkupId generation

2011-02-03 Thread Uwe Schäfer

hi

i´m on a wicket app that is to be ajaxy included in 3rd-party 
html-pages. i fear that wicket created markup-ids may interfere with ids 
already in the page.

for that reason i´d love to prefix the wicket-generated ones.

Component.getMarkupId(boolean createIfDoesNotExist) prefixes with

String markupIdPrefix = "id";

would it be possible to get an application-wide prefix instead, 
defaulting to "id"?


wicket version used is 1.4.9. forgive me if that is changed already.

cu uwe

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket-ajax.js header contribution with

2011-02-03 Thread Emmanouil Batsis


Not sure i understand the issue but I would suggest escaping that to  
< although script contribs could just as well offer an option to  
wrap a CDATA like



// 


Manos

Quoting Igor Vaynberg :


wicket should do this for you. please file a bug.

-igor

On Thu, Feb 3, 2011 at 6:09 AM, Randy S.  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 using its
entity < but it's not immediately obvious whether that would work because
of the various levels of encoding. The entire header contribution is in a
CDATA for the XHR so it would not get decoded there. I'm away from the
project at the moment but I will try this later.

Anyway, I will submit it as a bug and may be able to offer some insight into
the reason and possible fix. I suspect it has to do with crazy
(browser-specific) hoop jumping in wicket-ajax.js's processing of the ajax
response. That looks like a good bit of volatile code to make it work as
well as it does.
On Feb 3, 2011 4:18 AM, "Matthias Gasser"  wrote:

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=1193471&seqNum=9



Am 03.02.2011 um 08:56 schrieb Randy S.:


Hi all. I have narrowed a problem down to the following scenario:

I have a panel with this:



if (someVariable < 0) {
someVariable = 0;
}



This script fails to execute when the panel is loaded by ajax. If I

replace

the less than character "<" with equals "==", then it executes (but of
course, this is not what I need).

I tested this in Firefox 4.0b10 and Chrome 8.

I have searched a lot for others facing this issue, and also tried to dig
through wicket-ajax.js, but it is time to ask here in case it is a known
issue.

I 'm sure I can put the code into a separate JS file as a workaround but

I

wanted to save another network hop. Another solution would be to embed

the

script in  rather than , but that has the
disadvantage of re-sending the script with the panel content when the

panel

is re-used on the same page.

Thanks for any help/info.



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket-ajax.js header contribution with

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.  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 using its
> entity < but it's not immediately obvious whether that would work because
> of the various levels of encoding. The entire header contribution is in a
> CDATA for the XHR so it would not get decoded there. I'm away from the
> project at the moment but I will try this later.
>
> Anyway, I will submit it as a bug and may be able to offer some insight into
> the reason and possible fix. I suspect it has to do with crazy
> (browser-specific) hoop jumping in wicket-ajax.js's processing of the ajax
> response. That looks like a good bit of volatile code to make it work as
> well as it does.
> On Feb 3, 2011 4:18 AM, "Matthias Gasser"  wrote:
>> 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=1193471&seqNum=9
>>
>>
>>
>> Am 03.02.2011 um 08:56 schrieb Randy S.:
>>
>>> Hi all. I have narrowed a problem down to the following scenario:
>>>
>>> I have a panel with this:
>>>
>>> 
>>> 
>>> if (someVariable < 0) {
>>> someVariable = 0;
>>> }
>>> 
>>> 
>>>
>>> This script fails to execute when the panel is loaded by ajax. If I
> replace
>>> the less than character "<" with equals "==", then it executes (but of
>>> course, this is not what I need).
>>>
>>> I tested this in Firefox 4.0b10 and Chrome 8.
>>>
>>> I have searched a lot for others facing this issue, and also tried to dig
>>> through wicket-ajax.js, but it is time to ask here in case it is a known
>>> issue.
>>>
>>> I 'm sure I can put the code into a separate JS file as a workaround but
> I
>>> wanted to save another network hop. Another solution would be to embed
> the
>>> script in  rather than , but that has the
>>> disadvantage of re-sending the script with the panel content when the
> panel
>>> is re-used on the same page.
>>>
>>> Thanks for any help/info.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 
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) and AjaxIndicatorAppender.

The problem i am experiencing in IE, not Firefox, is that the indicator is
only
shown the first time i click on submit.

If i have a feedback panel, and enter all input fields, the indicator is
shown,
and i then get the next page.

But if i don't enter anything, the indicator is shown(just for a second)
then
i get the errors on the feedback panel, and then when entering all the
input fields the indicator is not shown...

And this behavior only exist in IE...i know IE sucks...

Anyone with ideas on what the problem might be?

Best Regards
Muro





Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

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 servletRequest)
   {
   return new UploadWebRequest(servletRequest);
   }

Here is the code in my upload panel class:
Form uploadform = new Form("fileUploadForm") {
@Override
protected void onSubmit() {
final FileUpload upload = 
fileUploadField.getFileUpload();
if (upload != null) {
try {
File newFile = new 
File(uploadFolder, upload.getClientFileName() );
// Save to new file
newFile.createNewFile();
upload.writeTo(newFile);
_processSelection(server, 
newFile, destFolder);
} catch (Exception e) {
throw new 
RuntimeException("Unable to write file");
}
} else {
throw new RuntimeException( "file 
selected for upload is empty" );
}
}
};
uploadform.setMultiPart(true);
uploadform.setMaxSize(Bytes.gigabytes(1));

uploadform.add(fileUploadField = new 
FileUploadField("fileInput"));
uploadform.add(new UploadProgressBar("progress", uploadform));
uploadform.add( new UploadValidator(fileUploadField, prefix) );
add( uploadform );


On Feb 3, 2011, at 12:37 AM, Timo Schmidt wrote:

> On Wed 02.02.2011 23:49, Valentin Avksentyev wrote:
>> On Feb 2, 2011, at 2:22 PM, Valentin Avksentyev wrote:
>>> 
>>> The files get uploaded just fine in my app, but no progress
>>> is tracked.
>>> 
>>> It's definitely hard to verify if the progress bar works in
>>> the example sites, with a limit of 100k, I haven't tried
>>> throttling my upload speed, I guess I should try that next.
>> 
>> Any suggestions?
> 
> Is your application runnning behind a proxy? If so, maybe the
> entire client request will be buffered by the proxy before
> being passed on to the backend proxied servers. As a result,
> upload progress meters will not function correctly if they work
> by measuring the data received by the backend servers.
> 
>  -Timo
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 TextField txtName = new TextField("txtName ",
new PropertyModel(name, "name")) {
@Override
protected void onRender(MarkupStream markupStream) {
super.onRender(markupStream);

this.getResponse().write(
"" + error.getObject()
+ "");

}
};

Thanks.

2011/2/3 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.
>
> - Tor Iver
>



-- 
*Altuğ*
*www.kodcu.com* **


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.

- Tor Iver


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: 
http://apache-wicket.1842946.n4.nabble.com/Using-DataView-newItem-method-to-display-a-BreadCrumbPanel-tp3252215p3258184.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 same vaidation message
is repeated so number of times I hit the submit the same  validation
messages increases.

but the FeedbackPanel  does not so this , please tell me  how to solve this 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/JGrowlFeedbackPanel-repeates-error-message-if-validation-called-before-message-is-cleared-tp3258154p3258154.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket-ajax.js header contribution with

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 < but it's not immediately obvious whether that would work because
of the various levels of encoding. The entire header contribution is in a
CDATA for the XHR so it would not get decoded there. I'm away from the
project at the moment but I will try this later.

Anyway, I will submit it as a bug and may be able to offer some insight into
the reason and possible fix. I suspect it has to do with crazy
(browser-specific) hoop jumping in wicket-ajax.js's processing of the ajax
response. That looks like a good bit of volatile code to make it work as
well as it does.
On Feb 3, 2011 4:18 AM, "Matthias Gasser"  wrote:
> 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=1193471&seqNum=9
>
>
>
> Am 03.02.2011 um 08:56 schrieb Randy S.:
>
>> Hi all. I have narrowed a problem down to the following scenario:
>>
>> I have a panel with this:
>>
>> 
>> 
>> if (someVariable < 0) {
>> someVariable = 0;
>> }
>> 
>> 
>>
>> This script fails to execute when the panel is loaded by ajax. If I
replace
>> the less than character "<" with equals "==", then it executes (but of
>> course, this is not what I need).
>>
>> I tested this in Firefox 4.0b10 and Chrome 8.
>>
>> I have searched a lot for others facing this issue, and also tried to dig
>> through wicket-ajax.js, but it is time to ask here in case it is a known
>> issue.
>>
>> I 'm sure I can put the code into a separate JS file as a workaround but
I
>> wanted to save another network hop. Another solution would be to embed
the
>> script in  rather than , but that has the
>> disadvantage of re-sending the script with the panel content when the
panel
>> is re-used on the same page.
>>
>> Thanks for any help/info.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


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 :

TextField txtname = new TextField(..)
// setting valid false and custom error message

if (!txtname.isValid) {
  // get custom error message now
  String error = txtname.getFeedbackMessage().getMessage().toString()
}

Thanks.

-- 
*Altuğ*
** 


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

> ops: https://issues.apache.org/jira/browse/WICKET-3417
>
>
> On Thu, Feb 3, 2011 at 9:02 AM, Pedro Santos  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 <
>> steven.head...@cats.usdoj.gov> wrote:
>>
>>>
>>> Hello All,
>>>
>>>I have 3 buttons in my form and have read over the documentation
>>> concerning multiple buttons but can't get the buttons to work correctly.
>>>
>>> Here is my Form:
>>>
>>> public UserVerifyForm(String id) {
>>>  super(id);
>>>
>>>  add(new Button("retrieveButton") {
>>>@Override
>>>public void onSubmit() {
>>>info("retrieve was pressed!");
>>>}
>>>  }
>>>
>>>  add(new Button("reportButton"){
>>>public void onSubmit() {
>>>info("report was pressed!");
>>>}
>>>  });
>>>
>>>  add(new Button("clearButton")
>>>.setDefaultFormProcessing(false)
>>>.add( new SimpleAttributeModifier("onclick",
>>> clearJavascript)));
>>>
>>> }
>>>
>>>
>>>
>>> My html Page looks like:
>>> .
>>> .
>>> .
>>>  
>>>>> class="submit"  value="Retrieve" />
>>>>> class="submit" value=Clear />
>>>>> class="submit"  value="Report" />
>>>
>>>
>>> When I try to run with the following I get this error Message:
>>>
>>> [2/2/11 10:48:35:370 EST] 001c SystemOut O 69728 [WebContainer :
>>> 0]
>>> ERROR org.apache.wicket.RequestCycle  - The component(s) below failed to
>>> render. A common problem is that you have added a component in code but
>>> forgot to reference it in the markup (thus the component will never be
>>> rendered).
>>>
>>> 1. [MarkupContainer [Component id = reportButton]]
>>>
>>> any help would be appreciated
>>>
>>>
>>> Thanks,
>>>
>>>
>>> Steven H.
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://apache-wicket.1842946.n4.nabble.com/Multiple-Button-Problem-in-Wicket-tp3254779p3254779.html
>>> Sent from the Users forum mailing list archive at Nabble.com.
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>>
>> --
>> Pedro Henrique Oliveira dos Santos
>>
>
>
>
> --
> Pedro Henrique Oliveira dos Santos
>



-- 
Pedro Henrique Oliveira dos Santos


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  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 <
> steven.head...@cats.usdoj.gov> wrote:
>
>>
>> Hello All,
>>
>>I have 3 buttons in my form and have read over the documentation
>> concerning multiple buttons but can't get the buttons to work correctly.
>>
>> Here is my Form:
>>
>> public UserVerifyForm(String id) {
>>  super(id);
>>
>>  add(new Button("retrieveButton") {
>>@Override
>>public void onSubmit() {
>>info("retrieve was pressed!");
>>}
>>  }
>>
>>  add(new Button("reportButton"){
>>public void onSubmit() {
>>info("report was pressed!");
>>}
>>  });
>>
>>  add(new Button("clearButton")
>>.setDefaultFormProcessing(false)
>>.add( new SimpleAttributeModifier("onclick",
>> clearJavascript)));
>>
>> }
>>
>>
>>
>> My html Page looks like:
>> .
>> .
>> .
>>  
>>> class="submit"  value="Retrieve" />
>>> class="submit" value=Clear />
>>> class="submit"  value="Report" />
>>
>>
>> When I try to run with the following I get this error Message:
>>
>> [2/2/11 10:48:35:370 EST] 001c SystemOut O 69728 [WebContainer :
>> 0]
>> ERROR org.apache.wicket.RequestCycle  - The component(s) below failed to
>> render. A common problem is that you have added a component in code but
>> forgot to reference it in the markup (thus the component will never be
>> rendered).
>>
>> 1. [MarkupContainer [Component id = reportButton]]
>>
>> any help would be appreciated
>>
>>
>> Thanks,
>>
>>
>> Steven H.
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/Multiple-Button-Problem-in-Wicket-tp3254779p3254779.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> Pedro Henrique Oliveira dos Santos
>



-- 
Pedro Henrique Oliveira dos Santos


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

>
> Hello All,
>
>I have 3 buttons in my form and have read over the documentation
> concerning multiple buttons but can't get the buttons to work correctly.
>
> Here is my Form:
>
> public UserVerifyForm(String id) {
>  super(id);
>
>  add(new Button("retrieveButton") {
>@Override
>public void onSubmit() {
>info("retrieve was pressed!");
>}
>  }
>
>  add(new Button("reportButton"){
>public void onSubmit() {
>info("report was pressed!");
>}
>  });
>
>  add(new Button("clearButton")
>.setDefaultFormProcessing(false)
>.add( new SimpleAttributeModifier("onclick",
> clearJavascript)));
>
> }
>
>
>
> My html Page looks like:
> .
> .
> .
>  
> class="submit"  value="Retrieve" />
> class="submit" value=Clear />
> class="submit"  value="Report" />
>
>
> When I try to run with the following I get this error Message:
>
> [2/2/11 10:48:35:370 EST] 001c SystemOut O 69728 [WebContainer : 0]
> ERROR org.apache.wicket.RequestCycle  - The component(s) below failed to
> render. A common problem is that you have added a component in code but
> forgot to reference it in the markup (thus the component will never be
> rendered).
>
> 1. [MarkupContainer [Component id = reportButton]]
>
> any help would be appreciated
>
>
> Thanks,
>
>
> Steven H.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Multiple-Button-Problem-in-Wicket-tp3254779p3254779.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos


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: 
http://apache-wicket.1842946.n4.nabble.com/How-to-Replace-Choose-One-with-Blank-in-DropDown-tp3256149p3257817.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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

> Hi,
> for those of you who are developing Wicket applications with Netbeans will
> have encountered the annoyance that since Netbeans version 6.8 changes of
> HTML-files are not immediately visible after saving. I wrote a short blog
> entry regarding this topic which might be of interest:
> http://adelio.org/wicket-reloading-html-files-in-netbeans-english/
>
> Joachim
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: wicket-ajax.js header contribution with

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=1193471&seqNum=9



Am 03.02.2011 um 08:56 schrieb Randy S.:

> Hi all.  I have narrowed a problem down to the following scenario:
> 
> I have a panel with this:
> 
>
> 
> if (someVariable < 0) {
> someVariable = 0;
> }
> 
>
> 
> This script fails to execute when the panel is loaded by ajax.  If I replace
> the less than character "<" with equals "==", then it executes (but of
> course, this is not what I need).
> 
> I tested this in Firefox 4.0b10 and Chrome 8.
> 
> I have searched a lot for others facing this issue, and also tried to dig
> through wicket-ajax.js, but it is time to ask here in case it is a known
> issue.
> 
> I 'm sure I can put the code into a separate JS file as a workaround but I
> wanted to save another network hop. Another solution would be to embed the
> script in  rather than , but that has the
> disadvantage of re-sending the script with the panel content when the panel
> is re-used on the same page.
> 
> Thanks for any help/info.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket-ajax.js header contribution with

2011-02-03 Thread Pedro Santos
What about escape you XML?

On Thu, Feb 3, 2011 at 5:56 AM, Randy S.  wrote:

> Hi all.  I have narrowed a problem down to the following scenario:
>
> I have a panel with this:
>
>
> 
> if (someVariable < 0) {
> someVariable = 0;
> }
> 
>
>
> This script fails to execute when the panel is loaded by ajax.  If I
> replace
> the less than character "<" with equals "==", then it executes (but of
> course, this is not what I need).
>
> I tested this in Firefox 4.0b10 and Chrome 8.
>
> I have searched a lot for others facing this issue, and also tried to dig
> through wicket-ajax.js, but it is time to ask here in case it is a known
> issue.
>
> I 'm sure I can put the code into a separate JS file as a workaround but I
> wanted to save another network hop. Another solution would be to embed the
> script in  rather than , but that has the
> disadvantage of re-sending the script with the panel content when the panel
> is re-used on the same page.
>
> Thanks for any help/info.
>



-- 
Pedro Henrique Oliveira dos Santos


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!