Re: ConcurrentModificationException since Update to 1.4.18

2011-08-24 Thread Johannes Schneider
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Thanks for your answer.

On 24.08.2011 14:43, Martin Grigorov wrote:
 There are no changes in o.a.w.markup.repeater.data package for an year.
 org.apache.wicket.markup.repeater.data.DataViewBase.ModelIterator uses
 your IDataProvider.iterator() impl.
 Do you share IDataProvider instances between pages ? I see it fails in
 unit test which makes it even more strange how this is concurrent.

So I think it is a bug within my software. Propably another dependency
that has been updated or some other strange side effect.
I will investigate that stuff further...


Regards,

Johannes

 
 On Wed, Aug 24, 2011 at 12:14 AM, Johannes Schneider
 maili...@cedarsoft.com wrote:
 Hi guys,
 
 I tried to upgrade to the latest Wicket version (security issues...).
 But now I suddently get that exception:
 
 Any hints? I didn't change anything knowingly. So I have no idea where
 to search for the solution...
 
 
 Thanks a lot,
 
 Johannes
 
 
 HELLO ERROR [main] org.apache.wicket.markup.html.WebPage -
 ^
 HELLO ERROR [main] org.apache.wicket.RequestCycle - Error attaching this
 container for rendering: [MarkupContainer [Component id = navigationUl]]
 org.apache.wicket.WicketRuntimeException: Error attaching this container
 for rendering: [MarkupContainer [Component id = navigationUl]]
at
 org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1789)
at org.apache.wicket.Component.onBeforeRender(Component.java:4000)
at 
 org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
at org.apache.wicket.Component.beforeRender(Component.java:1103)
at
 org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1777)
at org.apache.wicket.Component.onBeforeRender(Component.java:4000)
at 
 org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
at org.apache.wicket.Component.beforeRender(Component.java:1103)
at
 org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1777)
at org.apache.wicket.Component.onBeforeRender(Component.java:4000)
at org.apache.wicket.Page.onBeforeRender(Page.java:1550)
at 
 org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
at org.apache.wicket.Component.beforeRender(Component.java:1103)
at org.apache.wicket.Component.prepareForRender(Component.java:2295)
at org.apache.wicket.Page.prepareForRender(Page.java:1540)
at org.apache.wicket.Component.prepareForRender(Component.java:2332)
at org.apache.wicket.Page.renderPage(Page.java:911)
at
 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:261)
at
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
at
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1260)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1331)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:595)
at
 org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:502)
at
 org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:414)
at
 org.apache.wicket.util.tester.BaseWicketTester.startPage(BaseWicketTester.java:302)
at com.cedarsoft.page.CedarsoftTest.testIt(CedarsoftTest.java:20)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at junit.textui.TestRunner.doRun(TestRunner.java:116)
at
 com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:139)
at junit.textui.TestRunner.doRun(TestRunner.java:109)
at
 com.intellij.junit3.JUnit3IdeaTestRunner.startRunnerWithArgs(JUnit3IdeaTestRunner.java:52

ConcurrentModificationException since Update to 1.4.18

2011-08-23 Thread Johannes Schneider
)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
at java.util.SubList$1.next(AbstractList.java:696)
at
java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010)
at
org.apache.wicket.markup.repeater.data.DataViewBase$ModelIterator.next(DataViewBase.java:134)
at
org.apache.wicket.markup.repeater.data.DataViewBase$ModelIterator.next(DataViewBase.java:87)
at
org.apache.wicket.markup.repeater.AbstractPageableView$CappedIteratorAdapter.next(AbstractPageableView.java:412)
at
org.apache.wicket.markup.repeater.AbstractPageableView$CappedIteratorAdapter.next(AbstractPageableView.java:366)
at
org.apache.wicket.markup.repeater.DefaultItemReuseStrategy$1.next(DefaultItemReuseStrategy.java:70)
at
org.apache.wicket.markup.repeater.DefaultItemReuseStrategy$1.next(DefaultItemReuseStrategy.java:68)
at
org.apache.wicket.markup.repeater.RefreshingView.addItems(RefreshingView.java:189)
at
org.apache.wicket.markup.repeater.RefreshingView.onPopulate(RefreshingView.java:98)
at
org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:131)
at
org.apache.wicket.markup.repeater.AbstractPageableView.onBeforeRender(AbstractPageableView.java:121)
at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
at org.apache.wicket.Component.beforeRender(Component.java:1103)
at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1777)
... 51 more
- -- 
Johannes Schneider - blog.cedarsoft.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBAgAGBQJOVBghAAoJEAytD9R7Qv6d+hkH/jl5sZ+m7Ld5oUQiZtWJqOoL
XKnRTJc71cIJS5yLmJxUgu29iwJE/rU9SUs9VkzmuQB4FYCxFvt9PRJ7dqsFdYTs
n7fUz2CgIhxM6YWhm9JlIPsCWMbHx1H4UBKdqRESrupVl5LbWXMSF3ukqXwBbBbU
6Ga2tLSxkj6i99oGEbIBcOJP4h26zAdM6hSvdo21q/xK19z1OSJHIiaCtrIM8Zeq
lfkH4RugD5VJGnVP5F5kv068FDNGl2yOM39Sjs3Jf/BOh6WZgRdqwVKS31HVw62h
3DlVnf+MgiAv+RsTbxY43Jkv+XuC+FDAnKDffM03Yi2e8t63HBNBEvXPBDIDIZE=
=wzIj
-END PGP SIGNATURE-

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



Re: Wicket + Guice + other framework (e.g. Jersey)

2010-09-03 Thread Johannes Schneider
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Thanks a lot. I will take a look.


Johannes

On 09/02/2010 04:09 PM, Bas Gooren wrote:
 Johannes,
 
 yes, this is no problem, see http://code.google.com/p/wicket-guice-jaxws/
 
 Bas
 
 - Original Message - From: Johannes Schneider
 maili...@cedarsoft.com
 To: users@wicket.apache.org
 Sent: Thursday, September 02, 2010 3:58 PM
 Subject: Wicket + Guice + other framework (e.g. Jersey)
 
 
 Hi guys,
 
 I have created a webapp based on Wicket. This app uses the GuiceFilter.
 And I have also created a REST API for my application using Jersey. It
 is also using Guice.
 
 Both applications run fine in different contexts.
 
 
 Now I'd like to run both apps within one application (one Guice
 injector, one of my business objects) so that they can share all those
 memory intensive stuff.
 
 Has anybody done this? I think it should be doable, shouldn't it? But I
 really don't have an idea how I could share the modules.
 
 
 Injection: The both webapps share several of their modules, but not all.
 I think this can be solved using child injectors?
 
 Prefix: I'd like to have one prefix (e.g. api) that is used for that
 Jersey stuff. Can this be done transparently?
 
 
 Anybody done something like that? Any hints?
 
 
 Thanks,
 
 Johannes
 -- Johannes Schneider - blog.cedarsoft.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


- -- 
Johannes Schneider - blog.cedarsoft.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBAgAGBQJMgMMRAAoJEAytD9R7Qv6dCLMIAOf0mhXV+Ynsiw3o8uuQTkDD
/ww3eCxJMkIf0lHfHyPE2n8KUnZkgdW0F+JRksf6YaK7eOjvzkEl0fgiVI6hQCFQ
Wf1EwyfzX/uGn8mdRkbxLjTu4lVg+lViVJvWhsZqHKzfNGpARnZWS/GhgPrWZHQ1
huiQrLpzMWAXAekAKZDoFTpVIxcRCIvQlqOMFIeXOxQAFnyjmXG/W4s0zaoY2tgB
5PDK/sj4vL4YsTD9Onbe4WI6veCBeO4fyGQATHUrDmKloZOjn6bXbJUWn6dT6bdP
pbJwAtdWDxY20jZwibnZoN88yiz7YPUddSqoYaCZj1UtlbaueVRKk2Kkc1j1Mo8=
=fFeh
-END PGP SIGNATURE-

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



Wicket + Guice + other framework (e.g. Jersey)

2010-09-02 Thread Johannes Schneider
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi guys,

I have created a webapp based on Wicket. This app uses the GuiceFilter.
And I have also created a REST API for my application using Jersey. It
is also using Guice.

Both applications run fine in different contexts.


Now I'd like to run both apps within one application (one Guice
injector, one of my business objects) so that they can share all those
memory intensive stuff.

Has anybody done this? I think it should be doable, shouldn't it? But I
really don't have an idea how I could share the modules.


Injection: The both webapps share several of their modules, but not all.
I think this can be solved using child injectors?

Prefix: I'd like to have one prefix (e.g. api) that is used for that
Jersey stuff. Can this be done transparently?


Anybody done something like that? Any hints?


Thanks,

Johannes
- -- 
Johannes Schneider - blog.cedarsoft.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBAgAGBQJMf62LAAoJEAytD9R7Qv6dGI4IAM1G2062SJRDbmN2vCSvl2Fq
vLXLumqDBOD4MBxWW+9WakRBF8Jfc0Zf+ziPsb0pAlTK+ioVORoXYUsfRmdbnnFq
1ZPOEDD9Q+rzBN1gFrsZbO5XHlBKMwkmVSDcggImdHaS513ns5mVEuSrjWeNdmyR
VwxqUwtuLt4wAoMV2pHyXGjXtT7x4EsEVCPOl1gN1r0gd99GdKl8wGgSY0kvCQoR
N92G8ncqZSMJfh2wolWEWBO+JguL/GUqSYVJkgC/NVGD7AkB5EchF9QU5slSbt/x
iH7Q5AuKBf3++EiWuBVjbOgHnonL0oJZ7veQUm/bS4KZHx2Fa4rA9aQVsZzcbv8=
=8Ykg
-END PGP SIGNATURE-

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



Re: Doubt with Maven config

2009-09-28 Thread Johannes Schneider
I think the maven jetty plugin does *not* use Start.java. Instead the
plugin is configured within the pom.xml

Pedro Sena wrote:
 Hi Guys,
 
 I'm using lolite archetype but I'm having a 'problem'
 
 I want to run my tests (JUnit) and keep the Jetty server alive after the
 tests.
 
 Every time that I run my maven tests, it creates a Jetty server that is
 killed at the end of the process.
 
 I'm trying to do the same thing as Wicket in Action, I changed the
 Start.java that comes with lolite but it not helped.
 
 I'm sure that I'm missing some detail, I'd appreciate some help with it.
 
 Thanks in advance
 

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



Re: wicket-phonebook

2009-09-24 Thread Johannes Schneider
I think 1.4.1 has been released. So I think the current version should
be either 1.4.1 or 1.4.2-SNAPSHOT

Johannes

Andreas Kaluza wrote:
 Hi @all,
 
  
 
 I'm trying to install the wicket-phonebook with mvn install. The error
 message is:
 
  
 
 [INFO] Scanning for projects...
 
 Downloading:
 http://download.java.net/maven/2//org/wicketstuff/wicketstuff-core/
 
 1.4-SNAPSHOT/wicketstuff-core-1.4-SNAPSHOT.pom
 
 [INFO] Unable to find resource
 'org.wicketstuff:wicketstuff-core:pom:1.4-SNAPSHO
 
 T' in repository maven2-repository.dev.java.net
 (http://download.java.net/maven/
 
 2/)
 
 [INFO]
 
 
 [ERROR] FATAL ERROR
 
 [INFO]
 
 
 [INFO] Error building POM (may not be this project's POM).
 
  
 
  
 
 Project ID: null:phonebook:war:null
 
  
 
 Reason: Cannot find parent: org.wicketstuff:wicketstuff-core for project:
 null:p
 
 honebook:war:null for project null:phonebook:war:null
 
  
 
  
 
 [INFO]
 
 
 [INFO] Trace
 
 org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
 org.wicket
 
 stuff:wicketstuff-core for project: null:phonebook:war:null for project
 null:pho
 
 nebook:war:null
 
 at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
 
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
 
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
 
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
 
 at
 org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
 
 0)
 
  
 
 Is the pom.xml corrupted (I have the original one)?  It seems that the maven
 repository is incomplete. Anyone a solution?
 
  
 
 Cheers,
 
 Andy
 
 

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



Re: Wicketstuff really needs some updates

2009-09-16 Thread Johannes Schneider
Hmm. you are right. That is an important information. Sorry for missing
that.

SF.net User:
shake234


Johannes

nino martinez wael wrote:
  Great Jeremy, I were about to ask the same, so Johannes please give
 us the sf account and we will add you to the project. And thanks for
 these updates.. :)
 
 regards Nino
 
 2009/9/15 Jeremy Thomerson jer...@wickettraining.com:
 Have you asked for commit access?  I don't see your sf.net username on the
 thread.  Nobody is stingy with wicketstuff commit access.  Just send your
 username.

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Tue, Sep 15, 2009 at 8:12 AM, Johannes Schneider
 maili...@cedarsoft.comwrote:

 Come on guys. Please help me. Since there is an invalid repository
 definition no one out there will be able to use a project using
 input-events...
 I have the necessary patches sitting right here. I have created a Jira
 entry and I am willing to commit them if anybody gives me commit access.

 Please don't force me to release my own version. That would be just
 duplicate work done.


 Sincerly

 Johannes

 Johannes Schneider wrote:
 I have created some patches that help me a bit.
 Can be found here (found no better place).

 http://wicketstuff.org/jira/browse/WSMINIS-10

 Those are created using git. I hope the patch format is ok


 Sincerly,

 Johannes

 Johannes Schneider wrote:
 Well, who is the One?

 Igor Vaynberg wrote:
 or you can request commit access and eat your own donuts :)

 -igor

 On Fri, Sep 4, 2009 at 10:43 AM, Johannes
 Schneidermaili...@cedarsoft.com wrote:
 Hi,

 I really love the work that has been put into WicketStuff. The world
 is
 much better *with* WicketStuff.
 But unfortunately several files are outdated and many releases are
 missing.
 So at first I want to say thank you to everybody who has put work into
 that project. Then I want to motivate those with commit rights to
 update
 the projects and release some of the modules...
 I am offering some donuts ;-)


 Thanks,

 Johannes

 -
 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


 
 -
 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: Wicketstuff really needs some updates

2009-09-16 Thread Johannes Schneider
By the way: What about a CI server? That will detect such errors very fast.


Johannes

nino martinez wael wrote:
  Great Jeremy, I were about to ask the same, so Johannes please give
 us the sf account and we will add you to the project. And thanks for
 these updates.. :)
 
 regards Nino
 
 2009/9/15 Jeremy Thomerson jer...@wickettraining.com:
 Have you asked for commit access?  I don't see your sf.net username on the
 thread.  Nobody is stingy with wicketstuff commit access.  Just send your
 username.

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Tue, Sep 15, 2009 at 8:12 AM, Johannes Schneider
 maili...@cedarsoft.comwrote:

 Come on guys. Please help me. Since there is an invalid repository
 definition no one out there will be able to use a project using
 input-events...
 I have the necessary patches sitting right here. I have created a Jira
 entry and I am willing to commit them if anybody gives me commit access.

 Please don't force me to release my own version. That would be just
 duplicate work done.


 Sincerly

 Johannes

 Johannes Schneider wrote:
 I have created some patches that help me a bit.
 Can be found here (found no better place).

 http://wicketstuff.org/jira/browse/WSMINIS-10

 Those are created using git. I hope the patch format is ok


 Sincerly,

 Johannes

 Johannes Schneider wrote:
 Well, who is the One?

 Igor Vaynberg wrote:
 or you can request commit access and eat your own donuts :)

 -igor

 On Fri, Sep 4, 2009 at 10:43 AM, Johannes
 Schneidermaili...@cedarsoft.com wrote:
 Hi,

 I really love the work that has been put into WicketStuff. The world
 is
 much better *with* WicketStuff.
 But unfortunately several files are outdated and many releases are
 missing.
 So at first I want to say thank you to everybody who has put work into
 that project. Then I want to motivate those with commit rights to
 update
 the projects and release some of the modules...
 I am offering some donuts ;-)


 Thanks,

 Johannes

 -
 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


 
 -
 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: Wicketstuff really needs some updates

2009-09-16 Thread Johannes Schneider
tnx

Uwe Schäfer wrote:
 Pierre Goupil schrieb:
 +1 for CI since it would give confidence on health status of the various
 projects as well.
 
 http://wicketstuff.org/teamcity
 
 cu uwe
 
 
 -
 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: Wicketstuff really needs some updates

2009-09-15 Thread Johannes Schneider
Come on guys. Please help me. Since there is an invalid repository
definition no one out there will be able to use a project using
input-events...
I have the necessary patches sitting right here. I have created a Jira
entry and I am willing to commit them if anybody gives me commit access.

Please don't force me to release my own version. That would be just
duplicate work done.


Sincerly

Johannes

Johannes Schneider wrote:
 I have created some patches that help me a bit.
 Can be found here (found no better place).
 
 http://wicketstuff.org/jira/browse/WSMINIS-10
 
 Those are created using git. I hope the patch format is ok
 
 
 Sincerly,
 
 Johannes
 
 Johannes Schneider wrote:
 Well, who is the One?

 Igor Vaynberg wrote:
 or you can request commit access and eat your own donuts :)

 -igor

 On Fri, Sep 4, 2009 at 10:43 AM, Johannes
 Schneidermaili...@cedarsoft.com wrote:
 Hi,

 I really love the work that has been put into WicketStuff. The world is
 much better *with* WicketStuff.
 But unfortunately several files are outdated and many releases are missing.

 So at first I want to say thank you to everybody who has put work into
 that project. Then I want to motivate those with commit rights to update
 the projects and release some of the modules...
 I am offering some donuts ;-)


 Thanks,

 Johannes

 -
 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: DropDownChoice with Java Enum

2009-09-10 Thread Johannes Schneider
You cast objDispl to String which is obviously(?) a ProcessingStatusType




cmoulliard wrote:
 You mean create something like this :
 
 add(new DropDownChoice(requestStatus,
 Arrays.asList(ProcessingStatusType.values()), new IChoiceRenderer() {
 
   public Object getDisplayValue(Object objDispl) {
   return ProcessingStatusType.valueOf((String) 
 objDispl).getDescription();
   }
 
   public String getIdValue(Object obj, int index) {
   return obj.toString(); 
   }}));
 
 I have an error during initialisation :
 
 WicketMessage: Exception in rendering component: [MarkupContainer [Component
 id = requestStatus]]
 
 Root cause:
 
 java.lang.ClassCastException:
 com.xpectis.x3s.model.usertype.ProcessingStatusType
 at
 com.xpectis.x3s.fundbox.web.form.RequestForm$1.getDisplayValue(RequestForm.java:38)
 
 I suppose that what I defined in getDisplayValue is not correct ?
 
 Matthias Keller wrote:
 Hi Charles

 No problem. Just make an IChoiceRenderer which calls getDescription for 
 the display value and getValue for the id.

 Matt

 Charles Moulliard wrote:
 Hi,

 I would like to know if I can create a DropDownChoice where the value to
 be
 displayed in the drop down list corresponds to the description of my
 enumeration (e.g. Accepted) while the value to be returned is the value
 defined in the enumeration (e.g: ACCPT) ?

 public enum ProcessingStatusType {
 NEW (NEW, New),
 ACCEPTED (ACCPT, Accepted),
 VALIDATED (VALID, Validated),
 TRANSFORMED(TRFRM, Transformed),
 TRANSFERRED(TRFRD, Transferred),
 REJECTED(REJEC, Rejected),
 FAILED(FAIL, Failed);

 private final String value;
 private final String description;

 ProcessingStatusType( String value, String description ) {
 this.value = value;
 this.description = description;
 }

   

  

 
 
 -
 Charles Moulliard
 SOA Architect
 
 My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  

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



Re: Wicketstuff really needs some updates

2009-09-05 Thread Johannes Schneider
   _..--.._
  .'   .--.   '.
  |\   ''   /|
  \ `''` /
   '.__.'
  ``

hope you have the right font installed


Thanks ;)

Johannes

Pedro Santos wrote:
 Done, I commit now the mbeanview to wicket stuff.
 Johannes, what about the donuts?!
 
 On Fri, Sep 4, 2009 at 3:34 PM, Johannes Schneider
 maili...@cedarsoft.comwrote:
 
 Well, who is the One?

 Igor Vaynberg wrote:
 or you can request commit access and eat your own donuts :)

 -igor

 On Fri, Sep 4, 2009 at 10:43 AM, Johannes
 Schneidermaili...@cedarsoft.com wrote:
 Hi,

 I really love the work that has been put into WicketStuff. The world is
 much better *with* WicketStuff.
 But unfortunately several files are outdated and many releases are
 missing.
 So at first I want to say thank you to everybody who has put work into
 that project. Then I want to motivate those with commit rights to update
 the projects and release some of the modules...
 I am offering some donuts ;-)


 Thanks,

 Johannes

 -
 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: Wicketstuff really needs some updates

2009-09-05 Thread Johannes Schneider
I have created some patches that help me a bit.
Can be found here (found no better place).

http://wicketstuff.org/jira/browse/WSMINIS-10

Those are created using git. I hope the patch format is ok


Sincerly,

Johannes

Johannes Schneider wrote:
 Well, who is the One?
 
 Igor Vaynberg wrote:
 or you can request commit access and eat your own donuts :)

 -igor

 On Fri, Sep 4, 2009 at 10:43 AM, Johannes
 Schneidermaili...@cedarsoft.com wrote:
 Hi,

 I really love the work that has been put into WicketStuff. The world is
 much better *with* WicketStuff.
 But unfortunately several files are outdated and many releases are missing.

 So at first I want to say thank you to everybody who has put work into
 that project. Then I want to motivate those with commit rights to update
 the projects and release some of the modules...
 I am offering some donuts ;-)


 Thanks,

 Johannes

 -
 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



Wicketstuff really needs some updates

2009-09-04 Thread Johannes Schneider
Hi,

I really love the work that has been put into WicketStuff. The world is
much better *with* WicketStuff.
But unfortunately several files are outdated and many releases are missing.

So at first I want to say thank you to everybody who has put work into
that project. Then I want to motivate those with commit rights to update
the projects and release some of the modules...
I am offering some donuts ;-)


Thanks,

Johannes

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



Re: Wicketstuff really needs some updates

2009-09-04 Thread Johannes Schneider
Well, who is the One?

Igor Vaynberg wrote:
 or you can request commit access and eat your own donuts :)
 
 -igor
 
 On Fri, Sep 4, 2009 at 10:43 AM, Johannes
 Schneidermaili...@cedarsoft.com wrote:
 Hi,

 I really love the work that has been put into WicketStuff. The world is
 much better *with* WicketStuff.
 But unfortunately several files are outdated and many releases are missing.

 So at first I want to say thank you to everybody who has put work into
 that project. Then I want to motivate those with commit rights to update
 the projects and release some of the modules...
 I am offering some donuts ;-)


 Thanks,

 Johannes

 -
 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



tree-images.png with real transparencies

2009-09-02 Thread Johannes Schneider
Hi,

does anybody out there have a tree-images.png with real transparancies?
I use a dark background and the shadows are only optimized for white
backgrounds.


Thanks,

Johannes

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



Re: TreeTable lazy loading. updateTree and javascript

2009-08-31 Thread Johannes Schneider
Did anybody make any progress with lazy loading of tree tables?


Thanks,

Johannes

JuanPabloCoenMitrani wrote:
 Hi,
 I'm using the TreeTable from wicket-extensions 1.2.6
 I extended it to make childs load lazily by AJAX when parent nodes are
 expanded.
 I also used some javascript to make all expand/collapse behavior client side
 from that moment.
 
 My problem is that, when I update the tree via AJAX (and load some new child
 nodes), if I call 
 target.addComponent(treeTable);
 all nodes are sent to the server, and the purpose of lazy loading them is
 not fullfiled,
 on the other hand, if I call
 treeTable.updateTree(target);
 only the lastly loaded nodes are sent to the server, but the Javascript is
 not sent.
 
 By the way, I have some behaviors that load the Javascript by doing
 public void bind(Component component) {
 
 component.add(TextTemplateHeaderContributor.forJavaScript(getClass(),prepareParents.js,variables));
 }
 
 Thank you very much
 
 Juan Pablo

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



Re: AjaxLink/Behaviour with shortcut

2009-08-28 Thread Johannes Schneider
And I think EventType shouldn't be an enum but instead a class with
several constants. So everybody could add own event types if necessary.


Regards

Johannes

Johannes Schneider wrote:
 I made some progress:
 
 When using the (newly created) EventType onclick the behvious seems to
 be improved.
 
 The first time it works great, but if I add the link to the
 AjaxRequestTarget (so that the link is updated), the event is executed
 multiple times...
 
 
 Regards,
 
 Johannes
 
 
 Johannes Schneider wrote:
 That thing works great with normal links. But I have a problem with
 Ajax(Fallback)Links. The created JavaScript looks good but it does not work.
 Since I really don't understand JavaScript I don't have a clue what to
 do next. I have modified the example to reproduce the problem:


 Add to HomePage.html:

  hra href=# wicket:id=ajaxLinkAjax here!/a


 Added to HomePage.java:

  AjaxLinkObject ajaxLink = new AjaxLinkObject(ajaxLink) {
   @Override
   public void onClick( AjaxRequestTarget ajaxRequestTarget ) {
 System.out.println( # );
   }
 };

 ajaxLink.add( new InputBehavior( new KeyType[]{KeyType.n} ) );
 add( ajaxLink );



 Any ideas?


 Thanks,

 Johannes


 danisevsky wrote:
 look at
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/input-events-parent/

 2009/8/26 Johannes Schneider maili...@cedarsoft.com

 Hi,

 I have here several AjaxLinks that should be triggered using a shortcut
 (e.g. PageDown or Delete).
 Does anybody have some lines of code or a hint how that could be done?

 Alternatively a AjaxBehaviour could be used to start the action.


 Any ideas?
 Thanks,


 Johannes

 -
 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: AjaxLink/Behaviour with shortcut

2009-08-28 Thread Johannes Schneider
Yes, I have seen the example project - thanks for that. Great stuff btw.
Extending inputevent class? I don't get it...

One more thing: What about adding some sort of direct ajax callback to
java without having to add a AjaxLink?
In my case I have a delete link that opens a popup. But now I try to add
a shortcut (e.g. ctrl+Delete) that shouldn't ask for confirmation.
I have solved this with a second link that is not visible - but that
seems to be a little bit strange..


Thanks,

Johannes

nino martinez wael wrote:
 Thanks for the feedback, the quick solution would be to extend the
 inputevent class. Did you see the example project?
 
 2009/8/28 Johannes Schneider maili...@cedarsoft.com:
 And I think EventType shouldn't be an enum but instead a class with
 several constants. So everybody could add own event types if necessary.


 Regards

 Johannes

 Johannes Schneider wrote:
 I made some progress:

 When using the (newly created) EventType onclick the behvious seems to
 be improved.

 The first time it works great, but if I add the link to the
 AjaxRequestTarget (so that the link is updated), the event is executed
 multiple times...


 Regards,

 Johannes


 Johannes Schneider wrote:
 That thing works great with normal links. But I have a problem with
 Ajax(Fallback)Links. The created JavaScript looks good but it does not 
 work.
 Since I really don't understand JavaScript I don't have a clue what to
 do next. I have modified the example to reproduce the problem:


 Add to HomePage.html:

  hra href=# wicket:id=ajaxLinkAjax here!/a


 Added to HomePage.java:

  AjaxLinkObject ajaxLink = new AjaxLinkObject(ajaxLink) {
   @Override
   public void onClick( AjaxRequestTarget ajaxRequestTarget ) {
 System.out.println( # );
   }
 };

 ajaxLink.add( new InputBehavior( new KeyType[]{KeyType.n} ) );
 add( ajaxLink );



 Any ideas?


 Thanks,

 Johannes


 danisevsky wrote:
 look at
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/input-events-parent/

 2009/8/26 Johannes Schneider maili...@cedarsoft.com

 Hi,

 I have here several AjaxLinks that should be triggered using a shortcut
 (e.g. PageDown or Delete).
 Does anybody have some lines of code or a hint how that could be done?

 Alternatively a AjaxBehaviour could be used to start the action.


 Any ideas?
 Thanks,


 Johannes

 -
 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
 

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



Re: Wicketstuff releases?

2009-08-27 Thread Johannes Schneider
Any news here? I want to use input-events which has not been released
yet. Any timeline for that module?


Thanks,

Johannes

Erik van Oosten wrote:
 Hello,
 
 Now that Wicket 1.4.0 is out, I wonder which wicketstuff core version is
 compatible. There is no 1.4.0 version of wicketstuff core (yet?). Should I
 use 1.4-rc8-SNAPSHOT?
 
 I guess http://sourceforge.net/projects/wicket-stuff/files/ is no longer in
 use.
 
 Regards,
Erik.
 
 
 --
 Erik van Oosten
 http://day-to-day-stuff.blogspot.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: Wicketstuff releases?

2009-08-27 Thread Johannes Schneider
By the way:

Wicketstuff contains an old repository definition that should be removed
(in input-events).


Thanks,

Johannes


Johannes Schneider wrote:
 Any news here? I want to use input-events which has not been released
 yet. Any timeline for that module?
 
 
 Thanks,
 
 Johannes
 
 Erik van Oosten wrote:
 Hello,

 Now that Wicket 1.4.0 is out, I wonder which wicketstuff core version is
 compatible. There is no 1.4.0 version of wicketstuff core (yet?). Should I
 use 1.4-rc8-SNAPSHOT?

 I guess http://sourceforge.net/projects/wicket-stuff/files/ is no longer in
 use.

 Regards,
Erik.


 --
 Erik van Oosten
 http://day-to-day-stuff.blogspot.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
 

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



Re: AjaxLink/Behaviour with shortcut

2009-08-27 Thread Johannes Schneider
That thing works great with normal links. But I have a problem with
Ajax(Fallback)Links. The created JavaScript looks good but it does not work.
Since I really don't understand JavaScript I don't have a clue what to
do next. I have modified the example to reproduce the problem:


Add to HomePage.html:

 hra href=# wicket:id=ajaxLinkAjax here!/a


Added to HomePage.java:

 AjaxLinkObject ajaxLink = new AjaxLinkObject(ajaxLink) {
  @Override
  public void onClick( AjaxRequestTarget ajaxRequestTarget ) {
System.out.println( # );
  }
};

ajaxLink.add( new InputBehavior( new KeyType[]{KeyType.n} ) );
add( ajaxLink );



Any ideas?


Thanks,

Johannes


danisevsky wrote:
 look at
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/input-events-parent/
 
 2009/8/26 Johannes Schneider maili...@cedarsoft.com
 
 Hi,

 I have here several AjaxLinks that should be triggered using a shortcut
 (e.g. PageDown or Delete).
 Does anybody have some lines of code or a hint how that could be done?

 Alternatively a AjaxBehaviour could be used to start the action.


 Any ideas?
 Thanks,


 Johannes

 -
 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: AjaxLink/Behaviour with shortcut

2009-08-27 Thread Johannes Schneider
I made some progress:

When using the (newly created) EventType onclick the behvious seems to
be improved.

The first time it works great, but if I add the link to the
AjaxRequestTarget (so that the link is updated), the event is executed
multiple times...


Regards,

Johannes


Johannes Schneider wrote:
 That thing works great with normal links. But I have a problem with
 Ajax(Fallback)Links. The created JavaScript looks good but it does not work.
 Since I really don't understand JavaScript I don't have a clue what to
 do next. I have modified the example to reproduce the problem:
 
 
 Add to HomePage.html:
 
  hra href=# wicket:id=ajaxLinkAjax here!/a
 
 
 Added to HomePage.java:
 
  AjaxLinkObject ajaxLink = new AjaxLinkObject(ajaxLink) {
   @Override
   public void onClick( AjaxRequestTarget ajaxRequestTarget ) {
 System.out.println( # );
   }
 };
 
 ajaxLink.add( new InputBehavior( new KeyType[]{KeyType.n} ) );
 add( ajaxLink );
 
 
 
 Any ideas?
 
 
 Thanks,
 
 Johannes
 
 
 danisevsky wrote:
 look at
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/input-events-parent/

 2009/8/26 Johannes Schneider maili...@cedarsoft.com

 Hi,

 I have here several AjaxLinks that should be triggered using a shortcut
 (e.g. PageDown or Delete).
 Does anybody have some lines of code or a hint how that could be done?

 Alternatively a AjaxBehaviour could be used to start the action.


 Any ideas?
 Thanks,


 Johannes

 -
 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



AjaxLink/Behaviour with shortcut

2009-08-26 Thread Johannes Schneider
Hi,

I have here several AjaxLinks that should be triggered using a shortcut
(e.g. PageDown or Delete).
Does anybody have some lines of code or a hint how that could be done?

Alternatively a AjaxBehaviour could be used to start the action.


Any ideas?
Thanks,


Johannes

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



Re: jetty hot deployment

2009-08-08 Thread Johannes Schneider
Hi,

I strongly suggest starting Jetty using Maven

mvn jetty:run

I add the following configuration


  build
plugins
  plugin
groupIdorg.mortbay.jetty/groupId
artifactIdmaven-jetty-plugin/artifactId
configuration
  scanIntervalSeconds1/scanIntervalSeconds
  reloadmanual/reload
/configuration
  /plugin
/plugins
  /build


Reloading is triggered manually from the console. I like that behviour
(so I can recompile/copy resources without restarting).


Regards,

Johannes Schneider


Anantha Kumaran wrote:
 hi
 currently i am using ant and tomcat server (netbeans) to build my wicket
 application.
 The deployment and testing is taking lot of time.so i created a wicket
 project using
 the wicket-quickstart archetype.The problem is that i cannot view the
 changes
 made by me without restarting the jetty server.
 
 then i googled the net and found that i have to add   scanIntervals and some
 other settings.
 but i donn't know where to add this in the start.java file.
 
 
 it will be helpful if anyone post the modified start.java file which support
 the hot deployment
 
 
 
 thanks
 Anantha Kumaran
 

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



Modal window and background color

2009-08-05 Thread Johannes Schneider
Hi,

I use the modal window (with a component). But unfortunately white is
used as background color. This is definied in model.css:164

div.wicket-modal div.w_content {
width: 100%;
background-color: white;
}


I tried to override that, but since the modal.css is added after my own
css files, still white is used.


Has anyone an idea how I could solve that?


Thanks,

Johannes

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



Re: Modal window and background color

2009-08-05 Thread Johannes Schneider
Thanks! Worked...

But if anyone reads this - I think that could/should be improved in the
ModalWindow...


Regards,

Johannes

Matej Knopp wrote:
 You can use !important in your override css.
 
 -Matej
 
 On Wed, Aug 5, 2009 at 9:06 PM, Johannes
 Schneidermaili...@cedarsoft.com wrote:
 Hi,

 I use the modal window (with a component). But unfortunately white is
 used as background color. This is definied in model.css:164

 div.wicket-modal div.w_content {
width: 100%;
background-color: white;
 }


 I tried to override that, but since the modal.css is added after my own
 css files, still white is used.


 Has anyone an idea how I could solve that?


 Thanks,

 Johannes

 -
 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: ConfirmLink Ajax + Fallback anyone?

2009-08-04 Thread Johannes Schneider
Ok, I have created some classes that seem to work. Could anyone take a
look at it and give any feedback?
What about the styles for the confirmation page? How should those be added?


Thanks

Johannes

/**
 * A confirmation link that uses JavaScript if available.
 */
public class ConfirmationLink extends AjaxFallbackLinkObject {
  @NotNull
  @NonNls
  private final Model? extends String message;

  @NotNull
  private final Action action;

  public ConfirmationLink( @NotNull @NonNls String id, @NotNull @NonNls
Model? extends String message, @NotNull Action action ) {
super( id );
this.message = message;
this.action = action;
add( new JavaScriptEventConfirmation(
JavaScriptEventConfirmation.EVENT_ON_CLICK, message ) );
  }

  @Override
  public void onClick( @Nullable AjaxRequestTarget target ) {
if ( target == null ) {
  //Fallback!
  MarkupContainer parent = getParent();
  if ( parent == null ) {
throw new IllegalStateException( No parent found! );
  }

  FallbackConfirmationLinkPanel.replace( parent, message, action );
} else {
  //Javascript
  action.execute();
}
  }

  public interface Action extends Serializable {
/**
 * Executes the action
 */
void execute();
  }
}



/**
 * Contains a confirm link (as fallback if javascript is not available)
 */
public class FallbackConfirmationLinkPanel extends Panel {
  /**
   * Creates a confirm link panel
   *
   * @param componentToReplace the confirmation link panel this panel
replaces
   * @param message   the message
   * @param actionthe action
   */
  public FallbackConfirmationLinkPanel( @NotNull final Component
componentToReplace, @NotNull Model? extends String message, @NotNull
final ConfirmationLink.Action action ) {
super( componentToReplace.getId() );
add( new Label( message, message ) );

add( new Link( confirm ) {
  @Override
  public void onClick() {
action.execute();
getParent().replaceWith( componentToReplace );
  }
} );

add( new Link( cancel ) {
  @Override
  public void onClick() {
getParent().replaceWith( componentToReplace );
  }
} );
  }

  public static void replace( @NotNull final Component
componentToReplace, @NotNull Model? extends String message, @NotNull
ConfirmationLink.Action action ) {
componentToReplace.replaceWith( new FallbackConfirmationLinkPanel(
componentToReplace, message, action ) );
  }
}




Johannes Schneider wrote:
 Hi,
 
 I think that is one of that components that has been created several
 times out there.
 Does anybody have a good implementation available?
 
 There is a wiki page that contains both types of confirmation links
 (http://cwiki.apache.org/WICKET/getting-user-confirmation.html) but not
 a combination of both.
 
 
 
 Thanks,
 
 Johannes
 
 -
 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: Bug(?) with MiniMap

2009-07-22 Thread Johannes Schneider
Aah, stop! Stupid! Made a obvious mistake within my test case...

Code too long today... Sorry.

Johannes Schneider wrote:
 Hi,
 
 I have a problem while trying to add parameters to a
 BookmarkablePageLink. My second parameter is simply ignored.
 I debugged a lot and could create that failing test.
 
 Could anyone tell me what I am doing wrong?
 
 
 Thanks,
 
 Johannes
 
 
 
   String val0 =
 dfd034bdd539d9fc9cdd1c26cbaf99a808f840848c64c94b865045132be5a1cf;
 
 PageParameters pageParameters = new PageParameters( new ValueMap(
 0=+val0 + ,1=160 ) );
 MiniMap miniMap = new MiniMap( pageParameters, 2 );
 assertEquals( miniMap.size(), 2 );
 
 assertEquals( miniMap.get( 0 ), val0 );
 assertEquals( miniMap.get( 1 ), val1 );
 

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



Bug(?) with MiniMap

2009-07-22 Thread Johannes Schneider
Hi,

I have a problem while trying to add parameters to a
BookmarkablePageLink. My second parameter is simply ignored.
I debugged a lot and could create that failing test.

Could anyone tell me what I am doing wrong?


Thanks,

Johannes



  String val0 =
dfd034bdd539d9fc9cdd1c26cbaf99a808f840848c64c94b865045132be5a1cf;

PageParameters pageParameters = new PageParameters( new ValueMap(
0=+val0 + ,1=160 ) );
MiniMap miniMap = new MiniMap( pageParameters, 2 );
assertEquals( miniMap.size(), 2 );

assertEquals( miniMap.get( 0 ), val0 );
assertEquals( miniMap.get( 1 ), val1 );

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



Voting in Slideshow

2009-07-09 Thread Johannes Schneider
Hi,

at the moment I implement some sort of slideshow.

I am using a IndexedParamUrlCodingStrategy to get nice URLs.
Now I want to add a voting form on each page. But of course commiting
the form results in a url containing many internal Wicket stuff.

How can that be avoided?
I tried the following that solved my issue but seems to be a little bit
hacky...

in my Form#submit I added the following lines:

  Page responsePage = getRequestCycle().getResponsePage();
  getRequestCycle().setResponsePage( responsePage.getClass(),
responsePage.getPageParameters() );



I hope you understand what I try to achieve. Any ideas how to do that
properly?


Thanks,

Johannes

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



Image with parameters

2009-07-02 Thread Johannes Schneider
Hi,

I have registered a shared resource with
IndexedSharedResourceCodingStrategy.
Now I want to add an image to one of my pages. But of course I need to
add a parameter to that image. How can this be done? I really can't find
any fitting constructor...

What I have so far is:



ResourceReference imageResource = new ResourceReference(
MyWellKnownKey );

HashMapString, Object map = new HashMapString, Object();
map.put( 0, myParameterIWantToAdd );

CharSequence url = RequestCycle.get().urlFor( imageResource, new
ValueMap( map ) ); //that URL looks good! But what to do with?

add( new Image( image, String.valueOf( url ) ) ); //does not work



Where is

new ResourceReference (MyWellKnownKey , new ValueMap() );



Any hints?


Thanks,

Johannes

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



Re: Image with parameters

2009-07-02 Thread Johannes Schneider
Aah!

Okay, found it
It is exactly where it should be:

add( new Image( image, imageResource, new ValueMap( map ) ) )


Thanks...

Joe

Johannes Schneider wrote:
 Hi,
 
 I have registered a shared resource with
 IndexedSharedResourceCodingStrategy.
 Now I want to add an image to one of my pages. But of course I need to
 add a parameter to that image. How can this be done? I really can't find
 any fitting constructor...
 
 What I have so far is:
 
 
 
 ResourceReference imageResource = new ResourceReference(
 MyWellKnownKey );
 
 HashMapString, Object map = new HashMapString, Object();
 map.put( 0, myParameterIWantToAdd );
 
 CharSequence url = RequestCycle.get().urlFor( imageResource, new
 ValueMap( map ) ); //that URL looks good! But what to do with?
 
 add( new Image( image, String.valueOf( url ) ) ); //does not work
 
 
 
 Where is
 
 new ResourceReference (MyWellKnownKey , new ValueMap() );
 
 
 
 Any hints?
 
 
 Thanks,
 
 Johannes
 

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



Re: Slideshow

2009-06-29 Thread Johannes Schneider
Thanks for that hint.
Do you know how many images wicket-slides/SmoothGallery support? I will
have galleries with thousands of pictures...


Regards,

Johannes

francisco treacy wrote:
 Once you have your images sorted you may want to have a look at:
 
 http://code.google.com/p/wicket-slides/
 
 or perhaps there is a jQuery slideshow plugin that you could use with
 the newer Wicket-jQuery integrations.
 
 Francisco
 
 
 
 2009/6/27 Johannes Schneider maili...@cedarsoft.com:
 Hi,

 I want to implement a slide show with wicket.
 I have many images on the local hard disk - but they are unordered.

 Now I want to create a slide show that shows those images sorted.


 I started this way:

 Created a page with an img and added that markup there:

 add( new Image( image, new WebResource() {
 //access the file on the hd
 }

 Is this the best way? Or am I missing something?


 Of course I'd like to change the image(s) using AJAX. Could anyone give
 me a hint/link where I should continue to search...



 Thanks,

 Johannes

 -
 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



Slideshow

2009-06-27 Thread Johannes Schneider
Hi,

I want to implement a slide show with wicket.
I have many images on the local hard disk - but they are unordered.

Now I want to create a slide show that shows those images sorted.


I started this way:

Created a page with an img and added that markup there:

add( new Image( image, new WebResource() {
//access the file on the hd
}

Is this the best way? Or am I missing something?


Of course I'd like to change the image(s) using AJAX. Could anyone give
me a hint/link where I should continue to search...



Thanks,

Johannes

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



Re: How (not) to: IModel and Collections (and generics)

2009-03-10 Thread Johannes Schneider
Thanks for your reply. I think I can (at least partially) understand
your position and think there aren't any new arguments here I can
mention. So the discussions seems to be at an end here.

Maybe it is a matter of taste... If I find any time, I will create a
patch...


Regards,

Johannes

On Sat, 2009-03-07 at 12:40 -0800, Igor Vaynberg wrote:
 you are right, the components that just read a collection do just
 that, read it. they simply ignore the setter method in imodel. no big
 deal, just because you are given an interface doesnt mean you have to
 use all the methods in it. thus abstractreadonlymodel.
 
 however, a lot of components manipulate items in the collection. you
 are right, they can do this without ever needing a setter, but it is
 very convenient to have a callback that lets you know that the
 collection has been updated. it is even more convenient to have a
 callback be part of model itself because in wicket you often factor
 out conversions and other transformations into the model
 implementation itself so they are reusable across multiple components.
 keep in mind models are the glue between components and your domain
 model, so if any kind of massaging needs to be done for the domain
 model to work smoothly with the component the model is the perfect
 place to do it.
 
 -igor
 
 On Sat, Mar 7, 2009 at 12:25 PM, Johannes Schneider
 maili...@cedarsoft.com wrote:
 
  i think misuse is a pretty bold word considering you are talking to
  people who designed and built imodel, dont you think? :)
 
  Well, I think you are right. Sorry for that.
  I just mean, that it has a bad smell here...
 
 
  if we do what you suggest then we would end up with:
 
  interface imodel { object getobject(); }
  interface icollectionmodel extends imodel { object convert(object); }
  interface iwhatevermodel extends imodel { void setobject(object); }
 
  then things that are built on top of imodel now have to be built on
  top of at least two hierarchies (imodel and iwhatevermodel -
  considering icollectionmodel can be a mixin which all implementations
  have to check for which makes it dirty), so we will end up with double
  the classes like loadabledetachablemodel, etc.
 
  Yes, I think we need at least two interfaces. I don't know whether we
  need the icollectionmodel... I think that can be discussed.
 
  where as right now this works perfectly and is quiet elegant:
 
  abstract class collectionconverternew,old implements 
  imodelcollectionnew {
private final imodelcollectionold delegate;
 
public collectionnew getobject() {
  listnew list=new arraylistnew(delegate.getobject().size());
  for (old o:delegate.getobject()) {
   list.add(converttonew(o));
  }
  return list;
}
 
public void setobject(collectionnew object) {
  delegate.getobject().clear();
  for (new o:object) {
   delegate.getobject().add(converttold(o));
  }
}
 
abstract new converttonew(old o);
abstract old converttoold(new o);
  }
 
  Don't know, whether that is really elegant. It feels more like a
  misuse... ;).
  I think there is a reason you don't simply take an object for everything
  (what might be the most elegant)...
 
  I really don't understand why IModel must handle the conversion stuff.
  That conversion thing could/should be done using some wrapper or
  something else. But I don't get all the concepts of Wicket.
  I just think that components that just *read* a collection, should just
  read the collection...
 
  But well, as you mentioned correctly, you have designed it, so it is
  your choice...
 
 
  Regards,
 
  Johannes
 
 
 
  -igor
 
  
   Regards,
  
   Johannes
  
   
-igor
   
On Wed, Mar 4, 2009 at 4:50 AM, Johannes Schneider
maili...@cedarsoft.com wrote:
 Hi,

 the concept of IModel seems to be very obvious. It is simply some 
 kind
 of reference and offers a getter and a setter.

 When used with ordinary object, everything works fine. An IModel that
 contains a String can easily be mapped to a TextField.
 The text field calls getObject to show the initial value and sets 
 the
 changed string to the model using setObject on form commit.


 Everything becomes a little more complicated when collections are
 affected. The problem is, that it is not obvious what those 
 collections
 represent.

 1) A collection might be read-only (e.g. the possible choices for a
 selection).
 2) But it also might be necessary to add/remove single elements (e.g.
 privileged users shown within a shuffle list).
 3) And sometimes the complete collection is changed (can't find an
 example here).


 IModel only supports the *third* method where the complete 
 collection is
 replaced.
 (Don't forget that the reference to the collection changes which will
 lead to several other problems.)
 I strongly recommend the usage of a wrapping

Re: How (not) to: IModel and Collections (and generics)

2009-03-07 Thread Johannes Schneider
On Wed, 2009-03-04 at 09:14 -0800, Igor Vaynberg wrote:
 components that deal with collections in wicket always reuse the same
 instance of collection is one was provided where it makes sense.

Yes, and therefore a setter is not necessary.

 setobject is still called on the model, but is called with the same
 instance of collection. this is necessary so that if you have a model
 that translates a collection of one type to a collection of another
 can perform the conversion when the component pushes new data into it.

And this is just a *misuse* of the given method... Why not create a own
model interface for collections and add some sort of conversion
method/object?


Regards,

Johannes

 
 -igor
 
 On Wed, Mar 4, 2009 at 4:50 AM, Johannes Schneider
 maili...@cedarsoft.com wrote:
  Hi,
 
  the concept of IModel seems to be very obvious. It is simply some kind
  of reference and offers a getter and a setter.
 
  When used with ordinary object, everything works fine. An IModel that
  contains a String can easily be mapped to a TextField.
  The text field calls getObject to show the initial value and sets the
  changed string to the model using setObject on form commit.
 
 
  Everything becomes a little more complicated when collections are
  affected. The problem is, that it is not obvious what those collections
  represent.
 
  1) A collection might be read-only (e.g. the possible choices for a
  selection).
  2) But it also might be necessary to add/remove single elements (e.g.
  privileged users shown within a shuffle list).
  3) And sometimes the complete collection is changed (can't find an
  example here).
 
 
  IModel only supports the *third* method where the complete collection is
  replaced.
  (Don't forget that the reference to the collection changes which will
  lead to several other problems.)
  I strongly recommend the usage of a wrapping class for that case.
  But this case is not very common. Maybe someone finds a good example - I
  can't.
 
 
  For the other two cases it does *not* make any sense to call
  IModel#setObject.
 
 
  Summary: Nearly in every case when the IModel contains a collection, the
  setObject method does not make any sense and must not be called.
 
 
  Conclusion: I think we should have created some sort of IModelProvider
  (contains only the getObject method) and IModel (with both methods).
  Components that just *read* values from the model, accept the read only
  interface now.
 
  For special cases where a magic component adds/removes elements to a
  collection, we need some sort of ICollectionModel that offers add and
  remove methods (but no setter).
  That interface - of course - will be based upon a collection *without*
  wildcards...
 
 
 
  Regards,
 
  Johannes Schneider
 
 
 
 
 
 
 
 
 
 
 
 
 
  -
  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: How (not) to: IModel and Collections (and generics)

2009-03-07 Thread Johannes Schneider

 i think misuse is a pretty bold word considering you are talking to
 people who designed and built imodel, dont you think? :)

Well, I think you are right. Sorry for that.
I just mean, that it has a bad smell here...

 
 if we do what you suggest then we would end up with:
 
 interface imodel { object getobject(); }
 interface icollectionmodel extends imodel { object convert(object); }
 interface iwhatevermodel extends imodel { void setobject(object); }
 
 then things that are built on top of imodel now have to be built on
 top of at least two hierarchies (imodel and iwhatevermodel -
 considering icollectionmodel can be a mixin which all implementations
 have to check for which makes it dirty), so we will end up with double
 the classes like loadabledetachablemodel, etc.

Yes, I think we need at least two interfaces. I don't know whether we
need the icollectionmodel... I think that can be discussed.
 
 where as right now this works perfectly and is quiet elegant:
 
 abstract class collectionconverternew,old implements 
 imodelcollectionnew {
   private final imodelcollectionold delegate;
 
   public collectionnew getobject() {
 listnew list=new arraylistnew(delegate.getobject().size());
 for (old o:delegate.getobject()) {
  list.add(converttonew(o));
 }
 return list;
   }
 
   public void setobject(collectionnew object) {
 delegate.getobject().clear();
 for (new o:object) {
  delegate.getobject().add(converttold(o));
 }
   }
 
   abstract new converttonew(old o);
   abstract old converttoold(new o);
 }

Don't know, whether that is really elegant. It feels more like a
misuse... ;).
I think there is a reason you don't simply take an object for everything
(what might be the most elegant)...

I really don't understand why IModel must handle the conversion stuff.
That conversion thing could/should be done using some wrapper or
something else. But I don't get all the concepts of Wicket. 
I just think that components that just *read* a collection, should just
read the collection...

But well, as you mentioned correctly, you have designed it, so it is
your choice...


Regards,

Johannes


 
 -igor
 
 
  Regards,
 
  Johannes
 
  
   -igor
  
   On Wed, Mar 4, 2009 at 4:50 AM, Johannes Schneider
   maili...@cedarsoft.com wrote:
Hi,
   
the concept of IModel seems to be very obvious. It is simply some kind
of reference and offers a getter and a setter.
   
When used with ordinary object, everything works fine. An IModel that
contains a String can easily be mapped to a TextField.
The text field calls getObject to show the initial value and sets the
changed string to the model using setObject on form commit.
   
   
Everything becomes a little more complicated when collections are
affected. The problem is, that it is not obvious what those collections
represent.
   
1) A collection might be read-only (e.g. the possible choices for a
selection).
2) But it also might be necessary to add/remove single elements (e.g.
privileged users shown within a shuffle list).
3) And sometimes the complete collection is changed (can't find an
example here).
   
   
IModel only supports the *third* method where the complete collection is
replaced.
(Don't forget that the reference to the collection changes which will
lead to several other problems.)
I strongly recommend the usage of a wrapping class for that case.
But this case is not very common. Maybe someone finds a good example - I
can't.
   
   
For the other two cases it does *not* make any sense to call
IModel#setObject.
   
   
Summary: Nearly in every case when the IModel contains a collection, the
setObject method does not make any sense and must not be called.
   
   
Conclusion: I think we should have created some sort of IModelProvider
(contains only the getObject method) and IModel (with both methods).
Components that just *read* values from the model, accept the read only
interface now.
   
For special cases where a magic component adds/removes elements to a
collection, we need some sort of ICollectionModel that offers add and
remove methods (but no setter).
That interface - of course - will be based upon a collection *without*
wildcards...
   
   
   
Regards,
   
Johannes Schneider
   
   
   
   
   
   
   
   
   
   
   
   
   
-
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

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-04 Thread Johannes Schneider
On Tue, 2009-03-03 at 16:02 -0500, Brill Pappin wrote:
 I'd hate to be  
 prevented from doing so simply because someone wanted to lock down an  
 API that didn't really need locking down.

You are wrong. *Widening* a collection is the exact opposite of locking
down.
If you want to have some fancy (read hacky) write access to the model
you are free to simply cast...
That is the right choice here. You know that you have a special model in
there, so cast it.

But the common case is, that you don't know for sure whether the model
supports adding of choices or not.


If you don't believe me, take a look at JComboBox.
javax.swing.JComboBox#getModel returns a *read only* view of the model.



Regards,

Johannes


 I think the syntax doesn't really mean read only, and if the wicket  
 developers really want it to be read only, wrapping the list would be  
 the way to go.
 
 I'm for the plain old ListT because its simple and explicit...  
 List? extends T would be my next choice because it widens the scope.
 
 - Brill
 
 On 2-Mar-09, at 3:44 PM, James Carman wrote:
 
  Aren't both the choices model in DDC and the actual model of
  ListView supposed to be considered read-only (as far as the component
  is concerned)?  The DDC and ListView don't need to be able to alter
  those models anyway, right?  Perhaps my experience is just too
  limited, but I don't think I've ever tried to do either one of your
  usecases (I always consider them read-only).
 
 
  On Mon, Mar 2, 2009 at 3:24 PM, Igor Vaynberg  
  igor.vaynb...@gmail.com wrote:
  see WICKET-2126
 
  -igor
 
  On Mon, Mar 2, 2009 at 12:19 PM, James Carman
  jcar...@carmanconsulting.com wrote:
  I vote -0.99 on this (non-binding of course).  I'd vote +1 to making
  ListView accept List? extends T rather than making DDC less
  flexible.
 
  On Mon, Mar 2, 2009 at 3:11 PM, Brill Pappin br...@pappin.ca  
  wrote:
  Ok, as suggested, here is the thread, and the first vote.
 
  +1
  for making the generic definition the same for all list type  
  components.
 
  FYI -  you can also vote in the issue I just created at (which  
  might
  actually be a better place to vote):
  https://issues.apache.org/jira/browse/WICKET-2137
 
  - Brill
 
 
 
 
  On 28-Feb-09, at 5:18 PM, Jeremy Thomerson wrote:
 
  Perhaps start a vote thread, with the subject something like:  
  VOTE:
  Remove
  ? extends from constructor of DropDownChoice.
 
  I'd be +1 non-binding
 
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
  On Sat, Feb 28, 2009 at 3:33 PM, Brill Pappin br...@pappin.ca  
  wrote:
 
  I'm of the don't widen it camp anyway :)
 
  So how do I go about gathering support for having the  
  DropDownChoice work
  with the models the way everything else does?
 
  - Brill
 
 
  On 28-Feb-09, at 1:42 AM, Igor Vaynberg wrote:
 
  yes, the choice was intentional. personally i do not care if it  
  is T
 
  all the way, some users complained so we widened it on the  
  choices
  model, we cannot widen it on the main model.
 
  -igor
 
  On Fri, Feb 27, 2009 at 8:51 PM, Brill Pappin  
  br...@pappin.ca wrote:
 
  I see... but this would i think because Bar is a Foo:
 
  class Bar exends Foo {}
  List? extends Foo list = ...
  list.add(new Bar());
 
  Anyway, what your saying is that the generics choice was  
  intentional?
 
  - Brill
 
 
 
  On 27-Feb-09, at 3:19 PM, Igor Vaynberg wrote:
 
  list? extends string stings=...
 
  strings.add(asd); == wont compile
 
  -igor
 
  On Fri, Feb 27, 2009 at 11:13 AM, Adriano dos Santos Fernandes
  adrian...@gmail.com wrote:
 
 
  What do you mean with read only here?
 
 
  Adriano
 
 
  Igor Vaynberg escreveu:
 
 
  ? extends Foo collections are read only, it would be too
  inconvenient to make the model collection read only :)
 
  -igor
 
  On Thu, Feb 26, 2009 at 8:34 PM, Jeremy Thomerson
  jer...@wickettraining.com wrote:
 
 
  This is what I was commenting on last week on the list  
  (or earlier
  this
  week).  One expects List? extends Foo while the other  
  expects
  ListFoo.
  I'm not fully convinced yet that the ? extends is the  
  better
  option.
  Either way, I think they should be the same.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
  On Thu, Feb 26, 2009 at 8:27 PM, Brill Pappin br...@pappin.ca 
  
  wrote:
 
 
 
  Roughly what I'm doing is:
 
  class TypeA{}
 
  class TypeAModel extends LoadableDetachableModel  
  ListTypeA {
public ListTypeA load(){
... do the load ...
return ...
}
  }
 
  TypeAModel model = new TypeAModel();
  DropDownChoice TypeA ddc = new  
  DropDownChoiceTypeA(id, model
  );
 
  which gets complained about... in this case the generic  
  def is
  DropDownChoiceList? extends T
 
  I think the problem is that the generic def of the class  
  should
  actually
  be
  DropDownChoiceListT because you are already  
  identifying the
  type
  when
  you create a new instance.
 
  Now... my generics are a bit hazy at this level, because  
  I can
  

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-04 Thread Johannes Schneider
On Mon, 2009-03-02 at 15:11 -0500, Brill Pappin wrote:
 Ok, as suggested, here is the thread, and the first vote.
 
 +1
 for making the generic definition the same for all list type components.

Yes, you are right. All those list type components should have the same
generic definition.

But: Don't fix those components that have the correct definition.
Please fix those that have the wrong (without wildcard) definition.


I think the core problem is, that IModel has a setter. But it doesn't
make any sense to offer a setter on a model providing a collection.

If all those list type components accept IReadOnlyModel, most of the
discussed points will become obvious.


I think I will create another post, explaining the problem with IModel
and Collections...



Regards,

Johannes

 
 FYI -  you can also vote in the issue I just created at (which might  
 actually be a better place to vote):
 https://issues.apache.org/jira/browse/WICKET-2137
 
 - Brill
 
 
 
 
 On 28-Feb-09, at 5:18 PM, Jeremy Thomerson wrote:
 
  Perhaps start a vote thread, with the subject something like: VOTE:  
  Remove
  ? extends from constructor of DropDownChoice.
 
  I'd be +1 non-binding
 
 
  -- 
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
  On Sat, Feb 28, 2009 at 3:33 PM, Brill Pappin br...@pappin.ca wrote:
 
  I'm of the don't widen it camp anyway :)
 
  So how do I go about gathering support for having the  
  DropDownChoice work
  with the models the way everything else does?
 
  - Brill
 
 
  On 28-Feb-09, at 1:42 AM, Igor Vaynberg wrote:
 
  yes, the choice was intentional. personally i do not care if it is  
  T
  all the way, some users complained so we widened it on the choices
  model, we cannot widen it on the main model.
 
  -igor
 
  On Fri, Feb 27, 2009 at 8:51 PM, Brill Pappin br...@pappin.ca  
  wrote:
 
  I see... but this would i think because Bar is a Foo:
 
  class Bar exends Foo {}
  List? extends Foo list = ...
  list.add(new Bar());
 
  Anyway, what your saying is that the generics choice was  
  intentional?
 
  - Brill
 
 
 
  On 27-Feb-09, at 3:19 PM, Igor Vaynberg wrote:
 
  list? extends string stings=...
  strings.add(asd); == wont compile
 
  -igor
 
  On Fri, Feb 27, 2009 at 11:13 AM, Adriano dos Santos Fernandes
  adrian...@gmail.com wrote:
 
 
  What do you mean with read only here?
 
 
  Adriano
 
 
  Igor Vaynberg escreveu:
 
 
  ? extends Foo collections are read only, it would be too
  inconvenient to make the model collection read only :)
 
  -igor
 
  On Thu, Feb 26, 2009 at 8:34 PM, Jeremy Thomerson
  jer...@wickettraining.com wrote:
 
 
  This is what I was commenting on last week on the list (or  
  earlier
  this
  week).  One expects List? extends Foo while the other expects
  ListFoo.
  I'm not fully convinced yet that the ? extends is the better
  option.
  Either way, I think they should be the same.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
  On Thu, Feb 26, 2009 at 8:27 PM, Brill Pappin br...@pappin.ca
  wrote:
 
 
 
  Roughly what I'm doing is:
 
  class TypeA{}
 
  class TypeAModel extends LoadableDetachableModel  
  ListTypeA {
 public ListTypeA load(){
 ... do the load ...
 return ...
 }
  }
 
  TypeAModel model = new TypeAModel();
  DropDownChoice TypeA ddc = new DropDownChoiceTypeA(id,  
  model
  );
 
  which gets complained about... in this case the generic def is
  DropDownChoiceList? extends T
 
  I think the problem is that the generic def of the class  
  should
  actually
  be
  DropDownChoiceListT because you are already identifying  
  the type
  when
  you create a new instance.
 
  Now... my generics are a bit hazy at this level, because I can
  understand
  why it was done that way... does anyone with more generics
  experience
  know
  what it should be? Is this a bug that needs filing?
 
  - Brill
 
 
 
  On 26-Feb-09, at 6:03 PM, Kaspar Fischer wrote:
 
  On 26.02.2009, at 22:52, Brill Pappin wrote:
 
 
  For some reason the DropDownChoice component doesn't have  
  the same
 
 
  generics as ListView and it will not accept a model that  
  listview
  will,
  despite its saying that it will accept an IModel.
 
  Is anyone else having that sort of trouble with  
  DropDownChoice?
 
  - Brill
 
 
 
  Can you give us more information on what exactly is not  
  working for
  you?
 
  DropDownChoice indeed does accept a model, see for instance  
  the
  example
  in
  the class description at
 
 
 
 
 
  http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/DropDownChoice.html
 
  This works for me.
 
  Kaspar
 
  --
 
  !-- HTML: --
  select wicket:id=site
optionsite 1/option
optionsite 2/option
  /select
  ul
  li wicket:id=site2wicket:container
  wicket:id=sitename//li
  /ul
 
  // Code
  List SITES = Arrays.asList(new String[] {
The Server Side, Java Lobby, Java.Net
  });
  form.add(new DropDownChoice(site, SITES));
  form.add(new ListView(site2, SITES)
  {
  

How (not) to: IModel and Collections (and generics)

2009-03-04 Thread Johannes Schneider
Hi,

the concept of IModel seems to be very obvious. It is simply some kind
of reference and offers a getter and a setter.

When used with ordinary object, everything works fine. An IModel that
contains a String can easily be mapped to a TextField.
The text field calls getObject to show the initial value and sets the
changed string to the model using setObject on form commit.


Everything becomes a little more complicated when collections are
affected. The problem is, that it is not obvious what those collections
represent.

1) A collection might be read-only (e.g. the possible choices for a
selection).
2) But it also might be necessary to add/remove single elements (e.g.
privileged users shown within a shuffle list).
3) And sometimes the complete collection is changed (can't find an
example here).


IModel only supports the *third* method where the complete collection is
replaced. 
(Don't forget that the reference to the collection changes which will
lead to several other problems.)
I strongly recommend the usage of a wrapping class for that case.
But this case is not very common. Maybe someone finds a good example - I
can't. 


For the other two cases it does *not* make any sense to call
IModel#setObject.


Summary: Nearly in every case when the IModel contains a collection, the
setObject method does not make any sense and must not be called.


Conclusion: I think we should have created some sort of IModelProvider
(contains only the getObject method) and IModel (with both methods).
Components that just *read* values from the model, accept the read only
interface now.

For special cases where a magic component adds/removes elements to a
collection, we need some sort of ICollectionModel that offers add and
remove methods (but no setter).
That interface - of course - will be based upon a collection *without*
wildcards...



Regards,

Johannes Schneider





 







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



Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-04 Thread Johannes Schneider
On Wed, 2009-03-04 at 10:04 -0500, Brill Pappin wrote:
 I actually wasn't saying they were the same.
 What I said (meant) was that:
 
 a) don't lock down

Locking down means *removing* the wildcard. Adding the wildcard *widens*
the collection.

To be clear: 
Wildcard -- it fits for everybody
No wildcard -- it fits only for some special cases (maybe yours)

 b) I prefer the explicit form rather than the Any of type form. i.e.  
 ListT rather than List? extends T.

They mean something completely different. I understand that you prefer
the shorter version. Many do. But it stays wrong...

If the constructor accepts ListNumber, everybody *has* to give you
exactly a ListNumber.

ListNumber n = new ListNumber;


If the constructor accepts the widened type, you can add all those
lists...

List? extends Number n = new ListNumber;
List? extends Number n = new ListInteger;
List? extends Number n = new ListDouble;


If you don't believe me, take a look at GlazedLists. Compare version 1.7
and version 1.8. They changed exactly that thing (a non backward
compatible change!). They made exactly the same fault...


Regards,

Johannes

 
 - Brill
 
 On 4-Mar-09, at 6:26 AM, Johannes Schneider wrote:
 
  On Tue, 2009-03-03 at 16:02 -0500, Brill Pappin wrote:
  I'd hate to be
  prevented from doing so simply because someone wanted to lock down an
  API that didn't really need locking down.
 
  You are wrong. *Widening* a collection is the exact opposite of  
  locking
  down.
  If you want to have some fancy (read hacky) write access to the  
  model
  you are free to simply cast...
  That is the right choice here. You know that you have a special  
  model in
  there, so cast it.
 
  But the common case is, that you don't know for sure whether the  
  model
  supports adding of choices or not.
 
 
  If you don't believe me, take a look at JComboBox.
  javax.swing.JComboBox#getModel returns a *read only* view of the  
  model.
 
 
 
  Regards,
 
  Johannes
 
 
  I think the syntax doesn't really mean read only, and if the wicket
  developers really want it to be read only, wrapping the list would be
  the way to go.
 
  I'm for the plain old ListT because its simple and explicit...
  List? extends T would be my next choice because it widens the  
  scope.
 
  - Brill
 
  On 2-Mar-09, at 3:44 PM, James Carman wrote:
 
  Aren't both the choices model in DDC and the actual model of
  ListView supposed to be considered read-only (as far as the  
  component
  is concerned)?  The DDC and ListView don't need to be able to alter
  those models anyway, right?  Perhaps my experience is just too
  limited, but I don't think I've ever tried to do either one of your
  usecases (I always consider them read-only).
 
 
  On Mon, Mar 2, 2009 at 3:24 PM, Igor Vaynberg
  igor.vaynb...@gmail.com wrote:
  see WICKET-2126
 
  -igor
 
  On Mon, Mar 2, 2009 at 12:19 PM, James Carman
  jcar...@carmanconsulting.com wrote:
  I vote -0.99 on this (non-binding of course).  I'd vote +1 to  
  making
  ListView accept List? extends T rather than making DDC less
  flexible.
 
  On Mon, Mar 2, 2009 at 3:11 PM, Brill Pappin br...@pappin.ca
  wrote:
  Ok, as suggested, here is the thread, and the first vote.
 
  +1
  for making the generic definition the same for all list type
  components.
 
  FYI -  you can also vote in the issue I just created at (which
  might
  actually be a better place to vote):
  https://issues.apache.org/jira/browse/WICKET-2137
 
  - Brill
 
 
 
 
  On 28-Feb-09, at 5:18 PM, Jeremy Thomerson wrote:
 
  Perhaps start a vote thread, with the subject something like:
  VOTE:
  Remove
  ? extends from constructor of DropDownChoice.
 
  I'd be +1 non-binding
 
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
  On Sat, Feb 28, 2009 at 3:33 PM, Brill Pappin br...@pappin.ca
  wrote:
 
  I'm of the don't widen it camp anyway :)
 
  So how do I go about gathering support for having the
  DropDownChoice work
  with the models the way everything else does?
 
  - Brill
 
 
  On 28-Feb-09, at 1:42 AM, Igor Vaynberg wrote:
 
  yes, the choice was intentional. personally i do not care if it
  is T
 
  all the way, some users complained so we widened it on the
  choices
  model, we cannot widen it on the main model.
 
  -igor
 
  On Fri, Feb 27, 2009 at 8:51 PM, Brill Pappin
  br...@pappin.ca wrote:
 
  I see... but this would i think because Bar is a Foo:
 
  class Bar exends Foo {}
  List? extends Foo list = ...
  list.add(new Bar());
 
  Anyway, what your saying is that the generics choice was
  intentional?
 
  - Brill
 
 
 
  On 27-Feb-09, at 3:19 PM, Igor Vaynberg wrote:
 
  list? extends string stings=...
 
  strings.add(asd); == wont compile
 
  -igor
 
  On Fri, Feb 27, 2009 at 11:13 AM, Adriano dos Santos  
  Fernandes
  adrian...@gmail.com wrote:
 
 
  What do you mean with read only here?
 
 
  Adriano
 
 
  Igor Vaynberg escreveu:
 
 
  ? extends Foo collections are read only, it would be too
  inconvenient to make the model

PageExpiredException

2008-09-17 Thread Johannes Schneider
Hi,

since I have switched to the latest Wicket version, I get that exception
a lot of times.
But I really don't understand what I am doing wrong.

Yes I know that it is not easy to give any hints without knowing any
details. But maybe that is a common error...
Any hints are welcome.


Thanks,

Johannes


no page
org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
rendered page in session
[pagemap=null,componentPath=0:news:news:6:attachments:attachments:0:downloadLink,versionNumber=0]
at
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:181)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1227)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1347)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:497)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)
at
org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:125)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.security.SecurityUtil
$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
at org.apache.catalina.core.ApplicationFilterChain.access
$0(ApplicationFilterChain.java:177)
at org.apache.catalina.core.ApplicationFilterChain
$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Regression in 1.3.0-beta3(?)

2007-11-25 Thread Johannes Schneider
https://issues.apache.org/jira/browse/WICKET-1185

Johan Compagner wrote:
 please make a jira issue for this
 
 On Nov 22, 2007 9:49 PM, Johannes Schneider [EMAIL PROTECTED]
 wrote:
 
 I have the same problem with 1.3.0-rc1...

 I have tried to create a minimal example, but did not work...
 The problem occurres within this project:
 http://cedarsoft.org/wicket/yaml-integration/index.html


 Regards,

 Johannes Schneider

 Igor Vaynberg wrote:
 have you tried it with trunk?

 -igor


 On 8/31/07, Johannes Schneider [EMAIL PROTECTED] wrote:
 I don't use any AjaxFAllbackOrderByBorder or anything else in my code.
 So I think there must be another trigger for the bug, too.


 Johannes Schneider

 Jonas-21 wrote:
 I've been able to reproduce the problem with a these few classes:
 http://www.nabble.com/file/p12409279/Expected_close_tag.zip
 Expected_close_tag.zip

 It seems to be caused by the problem that BorderBodyResolver warns
 about:
 Unlike OrderByBorder, AjaxFallbackOrderByBorder doesn't add the
 BorderBodyContainer
 so it fits the markup.
 Now, if AjaxFallbackOrderByBorder is wrapped in another Border (as in
 my
 attached
 example), we don't get that nice log message, instead we get that
 'Expected
 close tag for ...'
 message.

 So, it seems https://issues.apache.org/jira/browse/WICKET-166
 actually IS relevant for wicket 1.3.0. (Of course the fix looks now
 different
 because of the api change)

 cheers,
 Jonas


 igor.vaynberg wrote:
 hmm, if you could create a quickstart for this it would be very
 helpful.
 -igor

 --
 Johannes Schneider
 Im Lindenwasen 15
 72810 Gomaringen

 Fon +49 7072 9229972
 Fax +49 7072 50
 Mobil +49 178 1364488

 [EMAIL PROTECTED]
 http://www.johannes-schneider.info


 --
  Johannes Schneider
 Im Lindenwasen 15
 72810 Gomaringen

 Fon +49 7072 9229972
 Fax +49 7072 50
 Mobil +49 178 1364488

 [EMAIL PROTECTED]
 http://www.johannes-schneider.info

 

-- 
Johannes Schneider
Im Lindenwasen 15
72810 Gomaringen

Fon +49 7072 9229972
Fax +49 7072 50
Mobil +49 178 1364488

[EMAIL PROTECTED]
http://www.johannes-schneider.info


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Regression in 1.3.0-beta3(?)

2007-11-22 Thread Johannes Schneider
I have the same problem with 1.3.0-rc1...

I have tried to create a minimal example, but did not work...
The problem occurres within this project:
http://cedarsoft.org/wicket/yaml-integration/index.html


Regards,

Johannes Schneider

Igor Vaynberg wrote:
 have you tried it with trunk?
 
 -igor
 
 
 On 8/31/07, Johannes Schneider [EMAIL PROTECTED] wrote:
 I don't use any AjaxFAllbackOrderByBorder or anything else in my code.
 So I think there must be another trigger for the bug, too.


 Johannes Schneider

 Jonas-21 wrote:
 I've been able to reproduce the problem with a these few classes:
 http://www.nabble.com/file/p12409279/Expected_close_tag.zip
 Expected_close_tag.zip

 It seems to be caused by the problem that BorderBodyResolver warns
 about:
 Unlike OrderByBorder, AjaxFallbackOrderByBorder doesn't add the
 BorderBodyContainer
 so it fits the markup.
 Now, if AjaxFallbackOrderByBorder is wrapped in another Border (as in my
 attached
 example), we don't get that nice log message, instead we get that
 'Expected
 close tag for ...'
 message.

 So, it seems https://issues.apache.org/jira/browse/WICKET-166
 actually IS relevant for wicket 1.3.0. (Of course the fix looks now
 different
 because of the api change)

 cheers,
 Jonas


 igor.vaynberg wrote:
 hmm, if you could create a quickstart for this it would be very
 helpful.
 -igor

 --
 Johannes Schneider
 Im Lindenwasen 15
 72810 Gomaringen

 Fon +49 7072 9229972
 Fax +49 7072 50
 Mobil +49 178 1364488

 [EMAIL PROTECTED]
 http://www.johannes-schneider.info


 

-- 
Johannes Schneider
Im Lindenwasen 15
72810 Gomaringen

Fon +49 7072 9229972
Fax +49 7072 50
Mobil +49 178 1364488

[EMAIL PROTECTED]
http://www.johannes-schneider.info


smime.p7s
Description: S/MIME Cryptographic Signature


Re: YAML / Wicket integration

2007-09-06 Thread Johannes Schneider

Yes, you are right. All integration is just about adding something  :-) .
The benefit of integration projects is that they care about the 
integration. You don't have to manually download and install all those 
resources.
But of couse you don't have to use it. Just add the CSS resources 
manually. :-)



Johannes Schneider

Alex Objelean wrote:

I like the idea of the YAML or YUI grids. It's aim is to simplify CSS
development. But I do not see any reason to create this kind of projects
(wicket-yaml, wicket-yui-grids, etc) which integrates css frameworks.
All integration is about, is just to add some CSS resources to you web page
and that's it.


Johannes Schneider-3 wrote:

Hi,

I have created a small project that integrates the great CSS framework 
YAML (http://www.yaml.de/en/home.html) into Wicket. As I am new to 
Wicket I really appreciate every feedback I could get.


Project home page:

http://cedarsoft.org/wicket/yaml-integration/index.html

Download link:

http://build.cedarsoft.de:8111/guestAuth/repository/download/bt14/.lastSuccessful/yaml-integration/target/yaml-integration-all.jar



Regards,

Johannes Schneider

 





--
Johannes Schneider
Im Lindenwasen 15
72810 Gomaringen

Fon +49 7072 9229972
Fax +49 7072 50
Mobil +49 178 1364488

[EMAIL PROTECTED]
http://www.johannes-schneider.info


smime.p7s
Description: S/MIME Cryptographic Signature


Re: YAML / Wicket integration

2007-09-06 Thread Johannes Schneider

The source code is available:

https://svn.cedarsoft.eu/open/eu.cedarsoft.wicket/trunk/yaml-integration/


Jan Mikkelsen wrote:

Hi Johannes

I think YAML looks extremely interesting. I did not know about it. But 
commenting on your framework is difficult without sourcecode.


Best regards,
Jan Mikkelsen

Johannes Schneider wrote:

Hi,

I have created a small project that integrates the great CSS framework 
YAML (http://www.yaml.de/en/home.html) into Wicket. As I am new to 
Wicket I really appreciate every feedback I could get.


Project home page:

http://cedarsoft.org/wicket/yaml-integration/index.html

Download link:

http://build.cedarsoft.de:8111/guestAuth/repository/download/bt14/.lastSuccessful/yaml-integration/target/yaml-integration-all.jar 





Regards,

Johannes Schneider



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Johannes Schneider
Im Lindenwasen 15
72810 Gomaringen

Fon +49 7072 9229972
Fax +49 7072 50
Mobil +49 178 1364488

[EMAIL PROTECTED]
http://www.johannes-schneider.info


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Custom background image

2007-09-01 Thread Johannes Schneider

Thanks. That solves the problem.


Johannes Schneider

Matej Knopp wrote:

Assuming you are using 1.3.

Make your page implement IHeaderContributor

class MyPage extends WebPage implements IHeaderContributor {
   public void renderHead(final IHeaderResponse response) {
   response.renderString(style type=\text/css\ body {
background-image: url(...) } /style);
   }
}

Just beware that the background image URL must be either absolute, or is
considered relative to the page URL.

-Matej

On 9/1/07, Johannes Schneider [EMAIL PROTECTED] wrote:

Hi,

I want to add a custom background image for each page. This image should
be configurable using Java code (random), so I can't use a style sheet.
Adding a section like

 style type=text/css
//custom code here
 /style

to the head could solve the problem. Could anybody point me to a small
example showing how to achieve this?



Thanks,

Johannes Schneider






--
Johannes Schneider
Im Lindenwasen 15
72810 Gomaringen

Fon +49 7072 9229972
Fax +49 7072 50
Mobil +49 178 1364488

[EMAIL PROTECTED]
http://www.johannes-schneider.info


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Regression in 1.3.0-beta3(?)

2007-08-31 Thread Johannes Schneider
I don't use any AjaxFAllbackOrderByBorder or anything else in my code. 
So I think there must be another trigger for the bug, too.



Johannes Schneider

Jonas-21 wrote:

I've been able to reproduce the problem with a these few classes:
http://www.nabble.com/file/p12409279/Expected_close_tag.zip
Expected_close_tag.zip 


It seems to be caused by the problem that BorderBodyResolver warns about:
Unlike OrderByBorder, AjaxFallbackOrderByBorder doesn't add the
BorderBodyContainer
so it fits the markup.
Now, if AjaxFallbackOrderByBorder is wrapped in another Border (as in my
attached
example), we don't get that nice log message, instead we get that 'Expected
close tag for ...'
message.

So, it seems https://issues.apache.org/jira/browse/WICKET-166 
actually IS relevant for wicket 1.3.0. (Of course the fix looks now

different
because of the api change)

cheers,
Jonas


igor.vaynberg wrote:

hmm, if you could create a quickstart for this it would be very helpful.

-igor





--
Johannes Schneider
Im Lindenwasen 15
72810 Gomaringen

Fon +49 7072 9229972
Fax +49 7072 50
Mobil +49 178 1364488

[EMAIL PROTECTED]
http://www.johannes-schneider.info


smime.p7s
Description: S/MIME Cryptographic Signature


DataView and onComponentTag

2007-08-24 Thread Johannes Schneider

Hi,


I use a DataView to create a list (ulli). The DataView is used to 
render the li-tags. Now I try to add a custom id value to the li tag 
if some circumstances are fulfilled:


  @Override
  protected void onComponentTag( @NotNull ComponentTag tag ) {
super.onComponentTag( tag );
IteratorItem items = getItems();
while ( items.hasNext() ) {
  Item item = items.next();
  if ( //some magic here with item.getModelObject() ) {
tag.put( id, theIdValue );
  }
}
  }


But the method onComponentTag in DataView is never called... Any 
suggestions?



Thanks,

Johannes Schneider
--
Johannes Schneider
Im Lindenwasen 15
72810 Gomaringen

Fon +49 7072 9229972
Fax +49 7072 50
Mobil +49 178 1364488

[EMAIL PROTECTED]
http://www.johannes-schneider.info


smime.p7s
Description: S/MIME Cryptographic Signature


Re: DataView and onComponentTag

2007-08-24 Thread Johannes Schneider

Thanks,

I will try that. And please make those methods final...


Regardy,

Johannes Schneider

Igor Vaynberg wrote:

dataview doesnt have its own markup, it delegates it to its direct children.
so you want to put that oncomponenttag into the item the dataview creates.
override dataview.newitem() and override oncomponenttag on the returned
item.

-igor


On 8/24/07, Johannes Schneider [EMAIL PROTECTED] wrote:

Hi,


I use a DataView to create a list (ulli). The DataView is used to
render the li-tags. Now I try to add a custom id value to the li tag
if some circumstances are fulfilled:

   @Override
   protected void onComponentTag( @NotNull ComponentTag tag ) {
 super.onComponentTag( tag );
 IteratorItem items = getItems();
 while ( items.hasNext() ) {
   Item item = items.next();
   if ( //some magic here with item.getModelObject() ) {
 tag.put( id, theIdValue );
   }
 }
   }


But the method onComponentTag in DataView is never called... Any
suggestions?


Thanks,

Johannes Schneider
--
Johannes Schneider
Im Lindenwasen 15
72810 Gomaringen

Fon +49 7072 9229972
Fax +49 7072 50
Mobil +49 178 1364488

[EMAIL PROTECTED]
http://www.johannes-schneider.info






--
Johannes Schneider
Im Lindenwasen 15
72810 Gomaringen

Fon +49 7072 9229972
Fax +49 7072 50
Mobil +49 178 1364488

[EMAIL PROTECTED]
http://www.johannes-schneider.info


smime.p7s
Description: S/MIME Cryptographic Signature