Re: how to inject arbitrary javascript code to a component markup?

2009-10-11 Thread nino martinez wael
This is a clear case for a behavior, and would be simple too..
Like so:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/artwork-parent/artwork/src/main/java/org/wicketstuff/artwork/niftycorners/NiftyCornersBehavior.java



2009/10/10 Paul Huang paulhuan...@gmail.com

 Suppose I write my own wicket component called XYZ that have the following
 markup

 wicket:panel
 div wicket:id=id_xxx
 
 /div
 /wicket:panel

 How can I inject some js code into this markup so when it's rendered in a
 page, I got something like

 wicket:panel
 div wicket:id=id_xxx
  script type=text/javascript
 var data=[abc, efg];
 document.write(data[0]);
 /script
 .
 div
 wicket:panel

 You may ask why I dont simply keep the js code into the component markup
 XYZ.html, this is because the value of data variable will be provided
 by
 the user and is not fixed.



Wicket Bulgarian translation (bg)

2009-10-11 Thread Girts Ziemelis

Is anyone using wicket with bulgarian translations?
It seems, the standard wicket messages for bulgarian 
Application_bg.properties are all messed up :(
Unfortunately I do not speak/write Bulgarian, but version of survey we 
are running is also in BG and our Bulgarian colleagues are complaining 
about standard error messages being messed up.
Site is in UTF-8 and many other non standard charset languages are 
working fine (e.g. Russian, Latvian).
Strings in the wicket property file do not seem to contain proper 
Cyrillic characters:

e.g: string for
Required=Полето '${label}' е задължително.
I do not believe is a proper cyrillic text.
Can anyone confirm the problem, before I submit the bug report?





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



Re: London Wicket Event, Saturday November 21st

2009-10-11 Thread Erik van Oosten

Igor Vaynberg wrote:

until i see some video proof i will continue to operate under my
assumption - there are no presentations, this is just an excuse to get
out of the house and go to a pub :)

-igor

  

For sure, they /will/ visit a pub...


--
Erik van Oosten
http://www.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




AutoCompleteTextField, IConverter and required

2009-10-11 Thread Wilhelmsen Tor Iver
I have an AutoCompleteTextField with a POJO model; I override getConverter() to 
return a converter that looks up the field value in the same list that 
getChoices() uses for filtering. Which works fine if you actually put something 
into the field that matches.

However, if you type a non-mathing value, the converter returns null; this is 
AFAICS the correct way to deal with  failed conversion, and I expected a 
validation message to that effect. However, instead the null value is accepted, 
and even though the field is declared to be required, the form is submitted, 
and when re-rendered the field is of course blank due to the null model value.

Any ideas? Problem occurred in 1.4.0 and 1.4.2 (noticed I was using an old 
version and upgraded, but same behavior). Would it be better to use the 
TextField/AutoCompleteBehavior combo manually? Or should the converter be 
returned by the ConverterLocator instead?

Med vennlig hilsen

TOR IVER WILHELMSEN
Senior systemutvikler
Arrive AS
T (+47) 48 16 06 18
E-post: toriv...@arrive.no
http://www.arrive.no
http://servicedesk.arrive.no





Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-11 Thread richardwilko

Hi,

What version of maven are you using (you can find you with mvn -version)

Can you try changing this bit of the command line:
-DarchetypeCatalog=http://legup.googlecode.com/svn/repo/archetype-catalog.xml

to this:
-DarchetypeCatalog=http://legup.googlecode.com/svn/repo

and see if that works.

(btw are you the same guy who left the comment on my blog?)

Regards - Richard Wilkinson
Developer,
jWeekend: OO  Java Technologies - Development and Training
http://jWeekend.com




danisevsky danisevsky wrote:
 
 Hello, I was trying it on Linux with no proxy and I got the same error. In
 text editor is see, that there is no line breaks. I do not know where is
 problem.
 
 2009/10/9 Bert taser...@gmail.com
 
 Perhaps he is using a maven proxy repository and the archetype
 repository is not added to it?

 On Thu, Oct 8, 2009 at 21:49, jWeekend jweekend_for...@cabouge.com
 wrote:
 
  Danisevsky,
 
  This has been used by loads of people and on all sorts of OSs and
 versions.
  I also just successfully tried it on XP, Vista  Ubuntu in case you had
 come
  across something that has been missed.
 
  Paste what you copy from Leg Up into a text editor to see what's
 causing
  that exception on your box and let us know what you find to help others
 that
  may hit a similar issue with copy 'n' paste or whatever else it turns
 out
 to
  be specific to your environment (possibly a proxy issue - ie you
 haven't
  told Maven about your proxy, but your browser is set up properly to use
 it).
 
  Regards - Cemal
  jWeekend
  OO  Java Technologies, Wicket Training and Development
  http://jWeekend.com
 
 
 
 
  danisevsky danisevsky wrote:
 
  I can access this file in web browser and it seems that there is no
 break
  line. I will try it later in linux.
 
  thank you
 
 
  2009/10/8 richardwilko richardjohnwilkin...@gmail.com
 
 
  hi,
 
  The error is saying that maven cannot find the archetype catalog
 file,
  please make sure you can access this file in a web browser [1], and
  ensure
  that you do not have any line breaks in your maven command (not sure
 if
  it
  is just how the command appears on nabble but it looks like there is
 a
  line
  break in the middle of the url)
 
 
  [1] - http://legup.googlecode.com/svn/repo/archetype-catalog.xml
 
 
  Hope this helps
 
  Regards - Richard Wilkinson
  Developer,
  jWeekend: OO  Java Technologies - Development and Training
  http://jWeekend.com
 
 
 
  danisevsky danisevsky wrote:
  
   Hello, I was trying generate Wicket - Spring - JPA project and I
 get
   following error:
  
   C:\projects\testmvn archetype:generate -B -DarchetypeCatalog=
   http://legup.googl
  
 
 ecode.com/svn/repo/archetype-catalog.xml-DarchetypeArtifactId=wicket-spring-jpa
   -archetype -DarchetypeGroupId=com.jweekend -DarchetypeVersion=0.8.0
   -DgroupId=co
   m.mycompany -DartifactId=mycompany -Dversion=1.0-SNAPSHOT
   -Dpackage=com.mycompan
   y
   [INFO] Scanning for projects...
   [INFO] Searching repository for plugin with prefix: 'archetype'.
   [INFO]
  
 
 
   [INFO] Building Maven Default Project
   [INFO]task-segment: [archetype:generate] (aggregator-style)
   [INFO]
  
 
 
   [INFO] Preparing archetype:generate
   [INFO] No goals needed for project - skipping
   [INFO] Setting property: classpath.resource.loader.class =
   'org.codehaus.plexus
   .velocity.ContextClassLoaderResourceLoader'.
   [INFO] Setting property: velocimacro.messages.on = 'false'.
   [INFO] Setting property: resource.loader = 'classpath'.
   [INFO] Setting property: resource.manager.logwhenfound = 'false'.
   [INFO] [archetype:generate]
   [INFO] Generating project in Batch mode
   [WARNING] Error reading archetype catalog
   http://legup.googlecode.com/svn/repo/a
   rchetype-catalog.xml
   org.apache.maven.wagon.ResourceDoesNotExistException: Unable to
 locate
   resource
   in repository
   at
  
 org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
   ata(LightweightHttpWagon.java:100)
   at
 org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
   at
  
 org.apache.maven.archetype.source.RemoteCatalogArchetypeDataSource.ge
   tArchetypeCatalog(RemoteCatalogArchetypeDataSource.java:74)
   at
  
 org.apache.maven.archetype.DefaultArchetype.getRemoteCatalog(DefaultA
   rchetype.java:203)
   at
  
 org.apache.maven.archetype.ui.DefaultArchetypeSelector.getArchetypesB
   yCatalog(DefaultArchetypeSelector.java:249)
   at
  
 org.apache.maven.archetype.ui.DefaultArchetypeSelector.selectArchetyp
   e(DefaultArchetypeSelector.java:74)
   at
  
 org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execu
   te(CreateProjectFromArchetypeMojo.java:180)
   at
  
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
   nManager.java:453)
   at
  
 

Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-11 Thread danisevsky
Hi,

I am using 2.2.1. I tried it again (without the command change) and now it
works. If I remember well, only change what I done was clear .m2 directory.
I am not the same guy who left the comment on your blog.

Thank you very much.


2009/10/11 richardwilko richardjohnwilkin...@gmail.com


 Hi,

 What version of maven are you using (you can find you with mvn -version)

 Can you try changing this bit of the command line:
 -DarchetypeCatalog=
 http://legup.googlecode.com/svn/repo/archetype-catalog.xml

 to this:
 -DarchetypeCatalog=http://legup.googlecode.com/svn/repo

 and see if that works.

 (btw are you the same guy who left the comment on my blog?)

 Regards - Richard Wilkinson
 Developer,
 jWeekend: OO  Java Technologies - Development and Training
 http://jWeekend.com




 danisevsky danisevsky wrote:
 
  Hello, I was trying it on Linux with no proxy and I got the same error.
 In
  text editor is see, that there is no line breaks. I do not know where is
  problem.
 
  2009/10/9 Bert taser...@gmail.com
 
  Perhaps he is using a maven proxy repository and the archetype
  repository is not added to it?
 
  On Thu, Oct 8, 2009 at 21:49, jWeekend jweekend_for...@cabouge.com
  wrote:
  
   Danisevsky,
  
   This has been used by loads of people and on all sorts of OSs and
  versions.
   I also just successfully tried it on XP, Vista  Ubuntu in case you
 had
  come
   across something that has been missed.
  
   Paste what you copy from Leg Up into a text editor to see what's
  causing
   that exception on your box and let us know what you find to help
 others
  that
   may hit a similar issue with copy 'n' paste or whatever else it turns
  out
  to
   be specific to your environment (possibly a proxy issue - ie you
  haven't
   told Maven about your proxy, but your browser is set up properly to
 use
  it).
  
   Regards - Cemal
   jWeekend
   OO  Java Technologies, Wicket Training and Development
   http://jWeekend.com
  
  
  
  
   danisevsky danisevsky wrote:
  
   I can access this file in web browser and it seems that there is no
  break
   line. I will try it later in linux.
  
   thank you
  
  
   2009/10/8 richardwilko richardjohnwilkin...@gmail.com
  
  
   hi,
  
   The error is saying that maven cannot find the archetype catalog
  file,
   please make sure you can access this file in a web browser [1], and
   ensure
   that you do not have any line breaks in your maven command (not sure
  if
   it
   is just how the command appears on nabble but it looks like there is
  a
   line
   break in the middle of the url)
  
  
   [1] - http://legup.googlecode.com/svn/repo/archetype-catalog.xml
  
  
   Hope this helps
  
   Regards - Richard Wilkinson
   Developer,
   jWeekend: OO  Java Technologies - Development and Training
   http://jWeekend.com
  
  
  
   danisevsky danisevsky wrote:
   
Hello, I was trying generate Wicket - Spring - JPA project and I
  get
following error:
   
C:\projects\testmvn archetype:generate -B -DarchetypeCatalog=
http://legup.googl
   
  
 
 ecode.com/svn/repo/archetype-catalog.xml-DarchetypeArtifactId=wicket-spring-jpa
-archetype -DarchetypeGroupId=com.jweekend
 -DarchetypeVersion=0.8.0
-DgroupId=co
m.mycompany -DartifactId=mycompany -Dversion=1.0-SNAPSHOT
-Dpackage=com.mycompan
y
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
   
  
  
[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:generate] (aggregator-style)
[INFO]
   
  
  
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] Setting property: classpath.resource.loader.class =
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on = 'false'.
[INFO] Setting property: resource.loader = 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound = 'false'.
[INFO] [archetype:generate]
[INFO] Generating project in Batch mode
[WARNING] Error reading archetype catalog
http://legup.googlecode.com/svn/repo/a
rchetype-catalog.xml
org.apache.maven.wagon.ResourceDoesNotExistException: Unable to
  locate
resource
in repository
at
   
  org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
ata(LightweightHttpWagon.java:100)
at
  org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
at
   
  org.apache.maven.archetype.source.RemoteCatalogArchetypeDataSource.ge
tArchetypeCatalog(RemoteCatalogArchetypeDataSource.java:74)
at
   
  org.apache.maven.archetype.DefaultArchetype.getRemoteCatalog(DefaultA
rchetype.java:203)
at
   
  

Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-11 Thread jWeekend

Thanks for the update, that's useful.  
I expect you had an old settings.xml in there or that there was something
else broken deeper in your repo. 

Also bear in mind that unless you've configured Maven on Linux and Windows
on the same machine to use the same repo, you'll have 2 repos, under your
respective home folders (eg /home/danievsky/.m2 and c:\User\danievsky\.m2
etc); in Linux, I use a symbolic link that points to my Windows Maven repo
to avoid this duplication.

Regards - Cemal
jWeekend
OO  Java Technologies, Wicket Training and Development 
http://jWeekend.com
 

danisevsky danisevsky wrote:
 
 Hi,
 
 I am using 2.2.1. I tried it again (without the command change) and now it
 works. If I remember well, only change what I done was clear .m2
 directory.
 I am not the same guy who left the comment on your blog.
 
 Thank you very much.
 
 
 2009/10/11 richardwilko richardjohnwilkin...@gmail.com
 

 Hi,

 What version of maven are you using (you can find you with mvn -version)

 Can you try changing this bit of the command line:
 -DarchetypeCatalog=
 http://legup.googlecode.com/svn/repo/archetype-catalog.xml

 to this:
 -DarchetypeCatalog=http://legup.googlecode.com/svn/repo

 and see if that works.

 (btw are you the same guy who left the comment on my blog?)

 Regards - Richard Wilkinson
 Developer,
 jWeekend: OO  Java Technologies - Development and Training
 http://jWeekend.com




 danisevsky danisevsky wrote:
 
  Hello, I was trying it on Linux with no proxy and I got the same error.
 In
  text editor is see, that there is no line breaks. I do not know where
 is
  problem.
 
  2009/10/9 Bert taser...@gmail.com
 
  Perhaps he is using a maven proxy repository and the archetype
  repository is not added to it?
 
  On Thu, Oct 8, 2009 at 21:49, jWeekend jweekend_for...@cabouge.com
  wrote:
  
   Danisevsky,
  
   This has been used by loads of people and on all sorts of OSs and
  versions.
   I also just successfully tried it on XP, Vista  Ubuntu in case you
 had
  come
   across something that has been missed.
  
   Paste what you copy from Leg Up into a text editor to see what's
  causing
   that exception on your box and let us know what you find to help
 others
  that
   may hit a similar issue with copy 'n' paste or whatever else it
 turns
  out
  to
   be specific to your environment (possibly a proxy issue - ie you
  haven't
   told Maven about your proxy, but your browser is set up properly to
 use
  it).
  
   Regards - Cemal
   jWeekend
   OO  Java Technologies, Wicket Training and Development
   http://jWeekend.com
  
  
  
  
   danisevsky danisevsky wrote:
  
   I can access this file in web browser and it seems that there is no
  break
   line. I will try it later in linux.
  
   thank you
  
  
   2009/10/8 richardwilko richardjohnwilkin...@gmail.com
  
  
   hi,
  
   The error is saying that maven cannot find the archetype catalog
  file,
   please make sure you can access this file in a web browser [1],
 and
   ensure
   that you do not have any line breaks in your maven command (not
 sure
  if
   it
   is just how the command appears on nabble but it looks like there
 is
  a
   line
   break in the middle of the url)
  
  
   [1] - http://legup.googlecode.com/svn/repo/archetype-catalog.xml
  
  
   Hope this helps
  
   Regards - Richard Wilkinson
   Developer,
   jWeekend: OO  Java Technologies - Development and Training
   http://jWeekend.com
  
  
  
   danisevsky danisevsky wrote:
   
Hello, I was trying generate Wicket - Spring - JPA project and I
  get
following error:
   
C:\projects\testmvn archetype:generate -B -DarchetypeCatalog=
http://legup.googl
   
  
 
 ecode.com/svn/repo/archetype-catalog.xml-DarchetypeArtifactId=wicket-spring-jpa
-archetype -DarchetypeGroupId=com.jweekend
 -DarchetypeVersion=0.8.0
-DgroupId=co
m.mycompany -DartifactId=mycompany -Dversion=1.0-SNAPSHOT
-Dpackage=com.mycompan
y
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
   
  
 
 
[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:generate] (aggregator-style)
[INFO]
   
  
 
 
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] Setting property: classpath.resource.loader.class =
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on = 'false'.
[INFO] Setting property: resource.loader = 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound =
 'false'.
[INFO] [archetype:generate]
[INFO] Generating project in Batch mode
[WARNING] Error reading archetype catalog
http://legup.googlecode.com/svn/repo/a
rchetype-catalog.xml

Re: Date Picker in Editable TreeTable in IE7 and IE8

2009-10-11 Thread John MacEnri
Rolling my own seems like a pretty heavyweight solution. The control for the
most part is fine. (Though the lack of any year change ability is a
significant drawback)

What I'm trying to find out is whether anyone else is having any trouble
with the YUI datepicker in IE7 or IE8 when used within a Table or TreeTable.
Thanks

John

2009/10/10 Igor Vaynberg igor.vaynb...@gmail.com

 you can always roll your own datepicker if the YUI one does not work
 properly.

 -igor

 On Fri, Oct 9, 2009 at 5:13 PM, John MacEnri john.mace...@gmail.com
 wrote:
  Hi,
 
 
  I'm new to Wicket this week, so not familiar with the expected format or
  structure of emails to this mailing list.
 
  I picked Wicket after trawling around for a framework that would enable
 UI
  programming on the Web make sense again. It's been an absolute pleasure
 so
  far. Compared to the pain I've felt for some time now battling with web
  application frameworks where most of the code of the applications was in
  XML, JS, JSP etc. etc. and a light sprinkling of actual Java, the
 elegance
  of Wicket as a natural UI programming environment makes everything seem
  possible and even enjoyable again. Thanks.
 
  But, (there always is a but:-) ), I'm struggling with an issue I've hit
 with
  the DatePicker and can't seem to resolve it.
 
  I'm using Wicket 1.4.1.
  I used the Editable TreeTable example from the Wicket site as a starter
 for
  the very small app I needed to write.
  Rather than just text editable columns though, I'm making them more type
  specific, so one of them is for Dates and shows a DateTextField and a
  DatePicker.
 
  The app is working fine in Firefox but the DatePicker is always caught
  behind the rows above and below when I run the app in IE7 or 8.
  The attached screen snippets show the difference. I've dug deep into the
 css
  and used the developer tools in IE8 which give you something akin to
 Firebug
  but couldn't find  any css change would fix it.
 
  Is there a way to fix this or an alternative date picker?
 
  Thanks
 
  John
 
 
 
 
 
  -
  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




AjaxFallbackDefaultDataTable has no thead

2009-10-11 Thread Stefan Lindner
In my Wicket 1.4(.2) application I have a AjaxFallbackDefaultDataTable . No big 
tricks, no method overriding, just an out of the box 
AjaxFallbackDefaultDataTable. The resulting rendered html table has no head 
section. It should be there because the source for datatable.html shows a 
thead section as the anchor for the repeaters for the header toolbar.
Am I compldetely mixed up? Does anybody else see this strange behavior?
 
Stefan.


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

Ad Hoc URL Mapping

2009-10-11 Thread Luther Baker
I'd like to use a RESTful URL style where the page parameters are not
necessarily at the far right of the URL. For starters, I understand the
basics of Indexed and/or MixedParam url mounting to convert this:

/issues/list?project=*myapp*max=*14*

to this:

/issues/list/*myapp*/*14*

but what I'm looking for is something like:

/*myapp*/issues/list/*14*

where /issues/list identifies the page and /myapp and /14 are the
parameter values. In this case, the actually mapping looks something like:

*/[page]/[action]/* == Page

Thoughts on the base way to manage this?

-Luther