JBehave WicketTester Steps?

2009-12-12 Thread nino martinez wael
Hi

Has anyone done some? Otherwise i'll look into it once I get time..

Regards Nino


Re: 2 pagemap values in parameters

2009-12-12 Thread Douglas Ferguson
I have finally got a quick start that reproduces the error.

However, I can't seem to test it with a test case.
When I run the quickstart and click the button in the browser, I get the 
exception.
Wicket tester generates a different exception.

Is it ok to submit the quick start to jira in this state?

D/


On Dec 12, 2009, at 1:34 AM, Douglas Ferguson wrote:

 I've narrowed it down and it has something to do with with AjaxButton, or 
 AjaxSubmitLink, I swapped it out for an AjaxLink and the error goes away (but 
 I don't get all the behaviors I need).

 It also seems that autosuggest is not causing this problem, as I remove it 
 from the page and the error persists.



 On Dec 12, 2009, at 12:10 AM, Douglas Ferguson wrote:

 I'm still trying to sort out my class cast error, does know what might cause 
 a value of resources?

 wicket:pageMapName = [people, resources]

 I'm seeing this when I set this: 
 getPageSettings().setAutomaticMultiWindowSupport(true);
 -
 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: 2 pagemap values in parameters

2009-12-12 Thread Igor Vaynberg
sure

-igor

On Sat, Dec 12, 2009 at 1:54 AM, Douglas Ferguson
doug...@douglasferguson.us wrote:
 I have finally got a quick start that reproduces the error.

 However, I can't seem to test it with a test case.
 When I run the quickstart and click the button in the browser, I get the 
 exception.
 Wicket tester generates a different exception.

 Is it ok to submit the quick start to jira in this state?

 D/


 On Dec 12, 2009, at 1:34 AM, Douglas Ferguson wrote:

 I've narrowed it down and it has something to do with with AjaxButton, or 
 AjaxSubmitLink, I swapped it out for an AjaxLink and the error goes away 
 (but I don't get all the behaviors I need).

 It also seems that autosuggest is not causing this problem, as I remove it 
 from the page and the error persists.



 On Dec 12, 2009, at 12:10 AM, Douglas Ferguson wrote:

 I'm still trying to sort out my class cast error, does know what might 
 cause a value of resources?

 wicket:pageMapName = [people, resources]

 I'm seeing this when I set this: 
 getPageSettings().setAutomaticMultiWindowSupport(true);
 -
 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



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



Re: JBehave WicketTester Steps?

2009-12-12 Thread shetc

That would be really cool, Nino!
-- 
View this message in context: 
http://old.nabble.com/JBehave-WicketTester-Steps--tp26756206p26760597.html
Sent from the Wicket - User 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



enclosure changes in 1.4.4

2009-12-12 Thread Vadim Tesis

all,

 

i just migrated to 1.4.4 from 1.4.3 and looks like enclosure functionality 
changed.  if enclosure doesn't have child element in it, it throws exception.

for example following code works in 1.4.3

 

...

   wicket:enclosure child=link
   div.../div
   /wicket:enclosure
   a href=# wicket:id=link.../a

...

 

but in 1.4.4 it throws exception (see below).

is 1.4.4 functionality correct or 1.4.3?

 

Thanks,

Vadim

 

[#|2009-12-12T12:54:04.546-0500|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=20;_ThreadName=httpSSLWorkerThread-80-0;|12:54:04,546
 ERROR org.apache.wicket.RequestCycle - Exception in rendering component: 
[MarkupContainer [Component id = enclosure-205]]
org.apache.wicket.WicketRuntimeException: Exception in rendering component: 
[MarkupContainer [Component id = enclosure-205]]
 at org.apache.wicket.Component.renderComponent(Component.java:2656)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2448)
 at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
 at 
org.apache.wicket.markup.resolver.EnclosureResolver.resolve(EnclosureResolver.java:61)
 at 
org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
 at 
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at 
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
 at org.apache.wicket.Component.renderComponent(Component.java:2617)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2448)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
 at 
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at 
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
 at org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1936)
 at org.apache.wicket.Component.renderComponent(Component.java:2617)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.markup.html.form.Form.onRender(Form.java:2007)
 at org.apache.wicket.Component.render(Component.java:2448)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
 at 
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at 
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
 at org.apache.wicket.Component.renderComponent(Component.java:2617)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2448)
 at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
 at 
org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:66)
 at 
org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
 at 
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at 
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
 at org.apache.wicket.Component.renderComponent(Component.java:2617)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2448)
 at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
 at 
org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:73)
 at 
org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
 at 
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at 
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
 at org.apache.wicket.Component.renderComponent(Component.java:2617)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2448)
 at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
 at 
org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:66)
 at 
org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
 at 
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at 
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
 at org.apache.wicket.Component.renderComponent(Component.java:2617)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2448)
 

Re: enclosure changes in 1.4.4

2009-12-12 Thread Igor Vaynberg
hrm, already two people stumbled into this. i was of the mind that the
way it works now is the correct behavior, but i am starting to think
maybe i was incorrect...

-igor

On Sat, Dec 12, 2009 at 12:39 PM, Vadim Tesis vad...@hotmail.com wrote:

 all,



 i just migrated to 1.4.4 from 1.4.3 and looks like enclosure functionality 
 changed.  if enclosure doesn't have child element in it, it throws exception.

 for example following code works in 1.4.3



    ...

   wicket:enclosure child=link
       div.../div
   /wicket:enclosure
   a href=# wicket:id=link.../a

    ...



 but in 1.4.4 it throws exception (see below).

 is 1.4.4 functionality correct or 1.4.3?



 Thanks,

 Vadim



 [#|2009-12-12T12:54:04.546-0500|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=20;_ThreadName=httpSSLWorkerThread-80-0;|12:54:04,546
  ERROR org.apache.wicket.RequestCycle - Exception in rendering component: 
 [MarkupContainer [Component id = enclosure-205]]
 org.apache.wicket.WicketRuntimeException: Exception in rendering component: 
 [MarkupContainer [Component id = enclosure-205]]
  at org.apache.wicket.Component.renderComponent(Component.java:2656)
  at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
  at org.apache.wicket.Component.render(Component.java:2448)
  at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
  at 
 org.apache.wicket.markup.resolver.EnclosureResolver.resolve(EnclosureResolver.java:61)
  at 
 org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
  at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
  at 
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
  at 
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
  at org.apache.wicket.Component.renderComponent(Component.java:2617)
  at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
  at org.apache.wicket.Component.render(Component.java:2448)
  at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
  at 
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
  at 
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
  at org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1936)
  at org.apache.wicket.Component.renderComponent(Component.java:2617)
  at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
  at org.apache.wicket.markup.html.form.Form.onRender(Form.java:2007)
  at org.apache.wicket.Component.render(Component.java:2448)
  at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
  at 
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
  at 
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
  at org.apache.wicket.Component.renderComponent(Component.java:2617)
  at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
  at org.apache.wicket.Component.render(Component.java:2448)
  at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
  at 
 org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:66)
  at 
 org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
  at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
  at 
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
  at 
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
  at org.apache.wicket.Component.renderComponent(Component.java:2617)
  at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
  at org.apache.wicket.Component.render(Component.java:2448)
  at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
  at 
 org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:73)
  at 
 org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
  at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
  at 
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
  at 
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
  at org.apache.wicket.Component.renderComponent(Component.java:2617)
  at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
  at org.apache.wicket.Component.render(Component.java:2448)
  at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
  at 
 org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:66)
  at 
 org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
  at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
  at 
 

Re: enclosure changes in 1.4.4

2009-12-12 Thread Alex Objelean

As far as I know, this the way it behaves in 1.4.4 is the correct behavior.
I've used it only when specifying the child of enclosure, not any other
component. Maybe there should be a vote about this.

Alex 


igor.vaynberg wrote:
 
 hrm, already two people stumbled into this. i was of the mind that the
 way it works now is the correct behavior, but i am starting to think
 maybe i was incorrect...
 
 -igor
 
 On Sat, Dec 12, 2009 at 12:39 PM, Vadim Tesis vad...@hotmail.com wrote:

 all,



 i just migrated to 1.4.4 from 1.4.3 and looks like enclosure
 functionality changed.  if enclosure doesn't have child element in it, it
 throws exception.

 for example following code works in 1.4.3



    ...

   wicket:enclosure child=link
       div.../div
   /wicket:enclosure
    # ... 

    ...



 but in 1.4.4 it throws exception (see below).

 is 1.4.4 functionality correct or 1.4.3?



 Thanks,

 Vadim



 [#|2009-12-12T12:54:04.546-0500|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=20;_ThreadName=httpSSLWorkerThread-80-0;|12:54:04,546
 ERROR org.apache.wicket.RequestCycle - Exception in rendering component:
 [MarkupContainer [Component id = enclosure-205]]
 org.apache.wicket.WicketRuntimeException: Exception in rendering
 component: [MarkupContainer [Component id = enclosure-205]]
  at org.apache.wicket.Component.renderComponent(Component.java:2656)
  at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
  at org.apache.wicket.Component.render(Component.java:2448)
  at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
  at
 org.apache.wicket.markup.resolver.EnclosureResolver.resolve(EnclosureResolver.java:61)
  at
 org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
  at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
  at
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
  at
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
  at org.apache.wicket.Component.renderComponent(Component.java:2617)
  at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
  at org.apache.wicket.Component.render(Component.java:2448)
  at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
  at
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
  at
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
  at
 org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1936)
  at org.apache.wicket.Component.renderComponent(Component.java:2617)
  at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
  at org.apache.wicket.markup.html.form.Form.onRender(Form.java:2007)
  at org.apache.wicket.Component.render(Component.java:2448)
  at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
  at
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
  at
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
  at org.apache.wicket.Component.renderComponent(Component.java:2617)
  at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
  at org.apache.wicket.Component.render(Component.java:2448)
  at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
  at
 org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:66)
  at
 org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
  at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
  at
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
  at
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
  at org.apache.wicket.Component.renderComponent(Component.java:2617)
  at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
  at org.apache.wicket.Component.render(Component.java:2448)
  at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
  at
 org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:73)
  at
 org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
  at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
  at
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
  at
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
  at org.apache.wicket.Component.renderComponent(Component.java:2617)
  at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
  at org.apache.wicket.Component.render(Component.java:2448)
  at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
  at
 org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:66)
  at
 

Re: enclosure changes in 1.4.4

2009-12-12 Thread Jason Lea
From the description of the tag 
http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html I think the 1.4.4 
behavior would be correct, and if the example Vadim provided used to 
work it would be due to a bug.
The attribute on the tag makes it clear it is a 'child' otherwise it 
would have been named 'randomWicketId' :)


The tag is really a case of (limited) conditional markup which I think 
we want the framework to stay away from.  If there was a vote to expand 
the behavior, then perhaps it should also move out of the core to wicket 
extensions (if such a thing is possible).


Igor Vaynberg wrote:

hrm, already two people stumbled into this. i was of the mind that the
way it works now is the correct behavior, but i am starting to think
maybe i was incorrect...

-igor

On Sat, Dec 12, 2009 at 12:39 PM, Vadim Tesis vad...@hotmail.com wrote:
  

all,



i just migrated to 1.4.4 from 1.4.3 and looks like enclosure functionality 
changed.  if enclosure doesn't have child element in it, it throws exception.

for example following code works in 1.4.3



   ...

  wicket:enclosure child=link
  div.../div
  /wicket:enclosure
  a href=# wicket:id=link.../a

   ...



but in 1.4.4 it throws exception (see below).

is 1.4.4 functionality correct or 1.4.3?



Thanks,

Vadim



[#|2009-12-12T12:54:04.546-0500|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=20;_ThreadName=httpSSLWorkerThread-80-0;|12:54:04,546
 ERROR org.apache.wicket.RequestCycle - Exception in rendering component: 
[MarkupContainer [Component id = enclosure-205]]
org.apache.wicket.WicketRuntimeException: Exception in rendering component: 
[MarkupContainer [Component id = enclosure-205]]
 at org.apache.wicket.Component.renderComponent(Component.java:2656)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2448)
 at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
 at 
org.apache.wicket.markup.resolver.EnclosureResolver.resolve(EnclosureResolver.java:61)
 at 
org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
 at 
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at 
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
 at org.apache.wicket.Component.renderComponent(Component.java:2617)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2448)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
 at 
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at 
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
 at org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1936)
 at org.apache.wicket.Component.renderComponent(Component.java:2617)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.markup.html.form.Form.onRender(Form.java:2007)
 at org.apache.wicket.Component.render(Component.java:2448)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
 at 
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at 
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
 at org.apache.wicket.Component.renderComponent(Component.java:2617)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2448)
 at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
 at 
org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:66)
 at 
org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
 at 
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at 
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
 at org.apache.wicket.Component.renderComponent(Component.java:2617)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2448)
 at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
 at 
org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:73)
 at 
org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
 at 
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at 
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
 at org.apache.wicket.Component.renderComponent(Component.java:2617)
 at 

Re: 2 pagemap values in parameters

2009-12-12 Thread Douglas Ferguson
Were you able to recreate it?

On Dec 12, 2009, at 12:19 PM, Igor Vaynberg wrote:

 sure
 
 -igor
 
 On Sat, Dec 12, 2009 at 1:54 AM, Douglas Ferguson
 doug...@douglasferguson.us wrote:
 I have finally got a quick start that reproduces the error.
 
 However, I can't seem to test it with a test case.
 When I run the quickstart and click the button in the browser, I get the 
 exception.
 Wicket tester generates a different exception.
 
 Is it ok to submit the quick start to jira in this state?
 
 D/
 
 
 On Dec 12, 2009, at 1:34 AM, Douglas Ferguson wrote:
 
 I've narrowed it down and it has something to do with with AjaxButton, or 
 AjaxSubmitLink, I swapped it out for an AjaxLink and the error goes away 
 (but I don't get all the behaviors I need).
 
 It also seems that autosuggest is not causing this problem, as I remove it 
 from the page and the error persists.
 
 
 
 On Dec 12, 2009, at 12:10 AM, Douglas Ferguson wrote:
 
 I'm still trying to sort out my class cast error, does know what might 
 cause a value of resources?
 
 wicket:pageMapName = [people, resources]
 
 I'm seeing this when I set this: 
 getPageSettings().setAutomaticMultiWindowSupport(true);
 -
 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
 
 
 
 -
 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: enclosure changes in 1.4.4

2009-12-12 Thread Douglas Ferguson
I ran into this and now that I know what's happening it doesn't bother me. I 
think if anything the messaging is not as helpful as it could be.

1) It was identifying the wrong missing field, which I think is fixed but won't 
come until 1.4.5
2) Perhaps the message should indicate that the wicket:enclosure doesn't 
support hidden fields within in (unless the wicket enclosure or the child is 
hidden)

D/

On Dec 12, 2009, at 3:22 PM, Igor Vaynberg wrote:

 hrm, already two people stumbled into this. i was of the mind that the
 way it works now is the correct behavior, but i am starting to think
 maybe i was incorrect...

 -igor

 On Sat, Dec 12, 2009 at 12:39 PM, Vadim Tesis vad...@hotmail.com wrote:

 all,



 i just migrated to 1.4.4 from 1.4.3 and looks like enclosure functionality 
 changed.  if enclosure doesn't have child element in it, it throws exception.

 for example following code works in 1.4.3



   ...

  wicket:enclosure child=link
  div.../div
  /wicket:enclosure
  a href=# wicket:id=link.../a

   ...



 but in 1.4.4 it throws exception (see below).

 is 1.4.4 functionality correct or 1.4.3?



 Thanks,

 Vadim



 [#|2009-12-12T12:54:04.546-0500|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=20;_ThreadName=httpSSLWorkerThread-80-0;|12:54:04,546
  ERROR org.apache.wicket.RequestCycle - Exception in rendering component: 
 [MarkupContainer [Component id = enclosure-205]]
 org.apache.wicket.WicketRuntimeException: Exception in rendering component: 
 [MarkupContainer [Component id = enclosure-205]]
 at org.apache.wicket.Component.renderComponent(Component.java:2656)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2448)
 at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
 at 
 org.apache.wicket.markup.resolver.EnclosureResolver.resolve(EnclosureResolver.java:61)
 at 
 org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
 at 
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at 
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
 at org.apache.wicket.Component.renderComponent(Component.java:2617)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2448)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
 at 
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at 
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
 at org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1936)
 at org.apache.wicket.Component.renderComponent(Component.java:2617)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.markup.html.form.Form.onRender(Form.java:2007)
 at org.apache.wicket.Component.render(Component.java:2448)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
 at 
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at 
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
 at org.apache.wicket.Component.renderComponent(Component.java:2617)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2448)
 at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
 at 
 org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:66)
 at 
 org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
 at 
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at 
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
 at org.apache.wicket.Component.renderComponent(Component.java:2617)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2448)
 at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
 at 
 org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:73)
 at 
 org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
 at 
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at 
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
 at org.apache.wicket.Component.renderComponent(Component.java:2617)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2448)
 

Re: enclosure changes in 1.4.4

2009-12-12 Thread Igor Vaynberg
i think you guys misunderstand.

i believe what we are talking about here is the requirement for
presence of components *other* then the component specified by
enclosure's child attribute.

essentially if i do this:

add(new webmarkupcontainer(container).setvisible(false));
and have this in my markup:
div wicket:id=containerdiv wicket:id=foo//div

wicket will not throw an error even though i never added the foo
component to my component hierarchy because as soon as it determins
that the container div is not visible it will skip over until the
closing tag.

the enclosures, however, as of 1.4.4 *will* throw an error for *any*
missing child declared inside enclosure's markup *even though* the
enclosure has been determined as hidden.

hope this clears it up somewhat

-igor



On Sat, Dec 12, 2009 at 5:18 PM, Jason Lea ja...@kumachan.net.nz wrote:
 From the description of the tag
 http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html I think the 1.4.4
 behavior would be correct, and if the example Vadim provided used to work it
 would be due to a bug.
 The attribute on the tag makes it clear it is a 'child' otherwise it would
 have been named 'randomWicketId' :)

 The tag is really a case of (limited) conditional markup which I think we
 want the framework to stay away from.  If there was a vote to expand the
 behavior, then perhaps it should also move out of the core to wicket
 extensions (if such a thing is possible).

 Igor Vaynberg wrote:

 hrm, already two people stumbled into this. i was of the mind that the
 way it works now is the correct behavior, but i am starting to think
 maybe i was incorrect...

 -igor

 On Sat, Dec 12, 2009 at 12:39 PM, Vadim Tesis vad...@hotmail.com wrote:


 all,



 i just migrated to 1.4.4 from 1.4.3 and looks like enclosure
 functionality changed.  if enclosure doesn't have child element in it, it
 throws exception.

 for example following code works in 1.4.3



   ...

  wicket:enclosure child=link
      div.../div
  /wicket:enclosure
  a href=# wicket:id=link.../a

   ...



 but in 1.4.4 it throws exception (see below).

 is 1.4.4 functionality correct or 1.4.3?



 Thanks,

 Vadim




 [#|2009-12-12T12:54:04.546-0500|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=20;_ThreadName=httpSSLWorkerThread-80-0;|12:54:04,546
 ERROR org.apache.wicket.RequestCycle - Exception in rendering component:
 [MarkupContainer [Component id = enclosure-205]]
 org.apache.wicket.WicketRuntimeException: Exception in rendering
 component: [MarkupContainer [Component id = enclosure-205]]
  at org.apache.wicket.Component.renderComponent(Component.java:2656)
  at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
  at org.apache.wicket.Component.render(Component.java:2448)
  at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
  at
 org.apache.wicket.markup.resolver.EnclosureResolver.resolve(EnclosureResolver.java:61)
  at
 org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
  at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
  at
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
  at
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
  at org.apache.wicket.Component.renderComponent(Component.java:2617)
  at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
  at org.apache.wicket.Component.render(Component.java:2448)
  at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
  at
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
  at
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
  at
 org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1936)
  at org.apache.wicket.Component.renderComponent(Component.java:2617)
  at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
  at org.apache.wicket.markup.html.form.Form.onRender(Form.java:2007)
  at org.apache.wicket.Component.render(Component.java:2448)
  at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
  at
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
  at
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
  at org.apache.wicket.Component.renderComponent(Component.java:2617)
  at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
  at org.apache.wicket.Component.render(Component.java:2448)
  at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
  at
 org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:66)
  at
 org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
  at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
  at
 

Re: enclosure changes in 1.4.4

2009-12-12 Thread Douglas Ferguson
I did find the behavior handy, but it is easy to work around.

D/

On Dec 12, 2009, at 11:12 PM, Igor Vaynberg wrote:

 i think you guys misunderstand.
 
 i believe what we are talking about here is the requirement for
 presence of components *other* then the component specified by
 enclosure's child attribute.
 
 essentially if i do this:
 
 add(new webmarkupcontainer(container).setvisible(false));
 and have this in my markup:
 div wicket:id=containerdiv wicket:id=foo//div
 
 wicket will not throw an error even though i never added the foo
 component to my component hierarchy because as soon as it determins
 that the container div is not visible it will skip over until the
 closing tag.
 
 the enclosures, however, as of 1.4.4 *will* throw an error for *any*
 missing child declared inside enclosure's markup *even though* the
 enclosure has been determined as hidden.
 
 hope this clears it up somewhat
 
 -igor
 
 
 
 On Sat, Dec 12, 2009 at 5:18 PM, Jason Lea ja...@kumachan.net.nz wrote:
 From the description of the tag
 http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html I think the 1.4.4
 behavior would be correct, and if the example Vadim provided used to work it
 would be due to a bug.
 The attribute on the tag makes it clear it is a 'child' otherwise it would
 have been named 'randomWicketId' :)
 
 The tag is really a case of (limited) conditional markup which I think we
 want the framework to stay away from.  If there was a vote to expand the
 behavior, then perhaps it should also move out of the core to wicket
 extensions (if such a thing is possible).
 
 Igor Vaynberg wrote:
 
 hrm, already two people stumbled into this. i was of the mind that the
 way it works now is the correct behavior, but i am starting to think
 maybe i was incorrect...
 
 -igor
 
 On Sat, Dec 12, 2009 at 12:39 PM, Vadim Tesis vad...@hotmail.com wrote:
 
 
 all,
 
 
 
 i just migrated to 1.4.4 from 1.4.3 and looks like enclosure
 functionality changed.  if enclosure doesn't have child element in it, it
 throws exception.
 
 for example following code works in 1.4.3
 
 
 
  ...
 
 wicket:enclosure child=link
 div.../div
 /wicket:enclosure
 a href=# wicket:id=link.../a
 
  ...
 
 
 
 but in 1.4.4 it throws exception (see below).
 
 is 1.4.4 functionality correct or 1.4.3?
 
 
 
 Thanks,
 
 Vadim
 
 
 
 
 [#|2009-12-12T12:54:04.546-0500|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=20;_ThreadName=httpSSLWorkerThread-80-0;|12:54:04,546
 ERROR org.apache.wicket.RequestCycle - Exception in rendering component:
 [MarkupContainer [Component id = enclosure-205]]
 org.apache.wicket.WicketRuntimeException: Exception in rendering
 component: [MarkupContainer [Component id = enclosure-205]]
 at org.apache.wicket.Component.renderComponent(Component.java:2656)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2448)
 at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
 at
 org.apache.wicket.markup.resolver.EnclosureResolver.resolve(EnclosureResolver.java:61)
 at
 org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
 at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
 at
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
 at org.apache.wicket.Component.renderComponent(Component.java:2617)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2448)
 at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
 at
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
 at
 org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1936)
 at org.apache.wicket.Component.renderComponent(Component.java:2617)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.markup.html.form.Form.onRender(Form.java:2007)
 at org.apache.wicket.Component.render(Component.java:2448)
 at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
 at
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1501)
 at org.apache.wicket.Component.renderComponent(Component.java:2617)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2448)
 at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
 at
 org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:66)
 at
 org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81)
 at