Re: AccordionPanel works on web page but not in another panel

2010-08-23 Thread cole
Example of valid markup (component on a page): wicket:panel dl class=accordion-menu wicket:panel dt class=a-m-t

Shortening a wicket:message

2010-08-23 Thread Michael Sparer
Hey, I have a component that constructs a wicket:message just like Erik does in his blog post (http://day-to-day-stuff.blogspot.com/2008/05/wicket-internationalization.html) the .html is as follows: wicket:message key=sentence wicket:container wicket:id=userComponent/wicket:container

Re: Wicket + Eclipse + Tomcat

2010-08-23 Thread John Krasnay
On 10-08-22 08:04 PM, James Carman wrote: Do you have the maven plugin installed in Eclipse? I know I needed that to get it to understand the mavenized web structure. I'm not an Eclipse expert, but I seem to remember having to have that. You don't need the Maven plug-in in Eclipse, and if

Re: Wicket + Eclipse + Tomcat

2010-08-23 Thread James Carman
On Mon, Aug 23, 2010 at 12:05 AM, Mike Dee mdichiapp...@cardeatech.com wrote: In actuality, I'm failing to see the value in Maven.  I love the ease of use of Eclipse.  It takes care of the build and dependencies and integrates nicely with Tomcat for dev and debug.  I've spent a lot of time

Re: Wicket + Eclipse + Tomcat

2010-08-23 Thread Mike Dee
Good point. In the case of automating or scripting builds, is there ever a worry about keeping the Eclipse and Maven builds consistent? I would imagine that one could develop and debug in Eclipse. But when it comes time to do an official build (with Maven), the results could be a little

Re: Wicket + Eclipse + Tomcat

2010-08-23 Thread James Carman
That's why you make sure that Eclipse understands your maven pom.xml files with the plugin. On Mon, Aug 23, 2010 at 8:41 AM, Mike Dee mdichiapp...@cardeatech.com wrote: Good point. In the case of automating or scripting builds, is there ever a worry about keeping the Eclipse and Maven builds

gmap2 numbered markers and autozoom

2010-08-23 Thread Christoph Grün
Hi, is it possible to create numbered markers with gmap2? Futhermore, I would like to autozoom and center the map window according to the visible markers. Can someone give an example? Thanks a lot, Christoph - To

Re: Wicket + Eclipse + Tomcat

2010-08-23 Thread T Ames
In Eclipse I use the m2eclipse plugin. It works pretty good and I rarely use the command line. To start a Wicket project, I create a Maven project which is part of the m2eclipse plug in. I then bring in the org.apache.wicket quickstart archetype. This creates a web project. I then modify the

Re: Wicket + Eclipse + Tomcat

2010-08-23 Thread Mike Dee
The article (in prior message) mentioned that it is easier to go from an Eclipse project to a Maven project (POM). That is the first time I've heard of that. Almost everyone seems to create a Maven Eclipse archetype (eclipse:eclipse) and then import that into Eclipse. I wonder if the article

SV: Wicket + Eclipse + Tomcat

2010-08-23 Thread Wilhelmsen Tor Iver
In the case of automating or scripting builds, is there ever a worry about keeping the Eclipse and Maven builds consistent? I would imagine that one could develop and debug in Eclipse. But when it comes time to do an official build (with Maven), the results could be a little different.

Re: Wicket + Eclipse + Tomcat

2010-08-23 Thread James Carman
On Mon, Aug 23, 2010 at 9:05 AM, T Ames tamesw...@gmail.com wrote: I should really look into using jetty someday, but our production servers are all Tomcat so that is what I have stuck with so far. If you use the quickstart, you can easily use Jetty. All you have to do is run Start.java as a

Re: Wicket + Eclipse + Tomcat

2010-08-23 Thread Mike Dee
When I tried the m2eclipse plugin, it created a (WTP) java project. Since it wasn't a webapp (aka Dynamic Web Project in WTP lingo), it had no Run As Server command. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Eclipse-Tomcat-tp2333641p2335123.html Sent

Re: Wicket + Eclipse + Tomcat

2010-08-23 Thread T Ames
I have never used that option when developing with Tomcat and the m2eclipse plugin. I have my development Tomcat loaded on the same machine as Eclipse, so the dynamic updates to Tomcat just happen when I change a class. You see this down in the Servers tab. It will say [Started, Synchronized] or

Re: Wicket + Eclipse + Tomcat

2010-08-23 Thread Mike Dee
That is the same setup I have. Tomcat and Eclipse are on the same machine. The problem is that when creating the project through Maven and importing to Eclipse, something goes wrong. The end result is that a Java project is created - not a web app (Dynamic Web Project). Java projects can not

Re: Wicket + Eclipse + Tomcat

2010-08-23 Thread T Ames
Hmmm. I would try a clean install of Eclipse (I am using 3.6.0) , the m2eclipse plugin that goes with that version and a fresh workspace. Create a Maven Project and then select a wicket archetype or the maven web archetype. I have used both archetypes and they should create web projects upon

Re: Error Message from ResourceLink within a portlet

2010-08-23 Thread joinow
sorry, two pieces of code are: final WebResource csvsrc = new WebResource() { /** * */ private static final long serialVersionUID = 1L; @Override

Re: Shortening a wicket:message

2010-08-23 Thread Igor Vaynberg
you can copy wicket:message releated functionality into a new tag that takes an extra maxlen attribute, or you can create a patch for the core. -igor On Mon, Aug 23, 2010 at 3:16 AM, Michael Sparer michael.spa...@gmx.at wrote:  Hey, I have a component that constructs a wicket:message just

Re: implementing a custom resource loader

2010-08-23 Thread Igor Vaynberg
show us your validator -igor On Sun, Aug 22, 2010 at 8:15 PM, Chris Merrill ch...@webperformance.com wrote: I need to implement our own resource loader in order to re-use our existing infrastructure for resolving localized strings.  I've implemented IStringResourceLoader and have that

Re: AccordionPanel works on web page but not in another panel

2010-08-23 Thread nino martinez wael
did you take a look at these: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3.x/wicket-contrib-accordion-examples/ ? 2010/8/21 cole cmilli...@comcast.net Example of valid markup (component on a page): wicket:panel dl

Re: implementing a custom resource loader

2010-08-23 Thread Chris Merrill
On 8/23/2010 11:21 AM, Igor Vaynberg wrote: show us your validator TextFieldString target_name_field = new TextFieldString(target_customer_name, _target_name); target_name_field.setRequired(true); target_name_field.add(new StringValidator() { @Override protected void

Re: implementing a custom resource loader

2010-08-23 Thread Igor Vaynberg
and the CustomerNameNotFound is never tried? it should be tried after the formid.CustomerNameNotFound key -igor On Mon, Aug 23, 2010 at 9:47 AM, Chris Merrill ch...@webperformance.com wrote: On 8/23/2010 11:21 AM, Igor Vaynberg wrote: show us your validator TextFieldString target_name_field

Re: implementing a custom resource loader

2010-08-23 Thread Chris Merrill
On 8/23/2010 12:59 PM, Igor Vaynberg wrote: and the CustomerNameNotFound is never tried? it should be tried after the formid.CustomerNameNotFound key Yes, it does! I violated one of the rules of IResourceLoader - I didn't return null if something was not found. I wrapped our existing

Re: implementing a custom resource loader

2010-08-23 Thread Igor Vaynberg
wicket will already handle the logging and missing resources, see iresourcesettings#setThrowExceptionOnMissingResource(false) -igor On Mon, Aug 23, 2010 at 10:28 AM, Chris Merrill ch...@webperformance.com wrote: On 8/23/2010 12:59 PM, Igor Vaynberg wrote: and the CustomerNameNotFound is never

WicketStuff Push Changes.

2010-08-23 Thread Rodolfo Hansen
There are a couple of significant changes in the wicketstuff-push found at: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jdk-1.6-parent/push-parent It is more tightly integrated to Wicket and the new javascript comet code. It no longer depends on any

Re: URL pattern /app/* does not work for Wicket 1.4.6 and WebSphere 6.1

2010-08-23 Thread shetc
I have had to deal with the infamous WebSphere-servlet-filter-implementation-sucks problem before. As discussed, this requires that the WicketServlet be used instead of the WicketFilter. Ok, no sweat since WicketServlet calls the WicketFilter methods anyway. However, I have a time-critical

Re: implementing a custom resource loader

2010-08-23 Thread Chris Merrill
On 8/23/2010 1:32 PM, Igor Vaynberg wrote: wicket will already handle the logging and missing resources, see iresourcesettings#setThrowExceptionOnMissingResource(false) Beautiful! That is just what I needed. I should have guessed that Wicket already had this covered. Thanks! Chris p.s.

[1.5] new wicket URL-related questions

2010-08-23 Thread Major Péter
Hi! As I'm testing wicket 1.5-SNAPSHOT, I'm seeing some strange behaviors: With 1.4 I've used to have url's like: showuser/id/1234 now when I open simply the page without params, I will see the following URL: showuser?[0-9]+ When I looked at the JavaDoc of the new MountMapper (which is the

Models not updating when submitting form with AjaxButton

2010-08-23 Thread Loren Cole
I can't seem to get my models to update when I submit a form using AjaxButton. Originally my code looked like this, and I though it should just work, but when you click the submit link parentService is null and bundles and elements are empty lists.: class AddServices extends BasePage {

Using AjaxCheckBox

2010-08-23 Thread Anna Simbirtsev
Hi, I am trying to use AjaxCheckBox to update another checkbox model object when this checkbox is clicked. CheckBox b = new CheckBox(basicCreate, new ModelBoolean()); AjaxCheckBox a = new AjaxCheckBox(create, new ModelBoolean()) { private static

Re: Using AjaxCheckBox

2010-08-23 Thread Sven Meier
Hi, calling b.setOutputMarkupId(true) during Ajax request is too late. The HTML tag will not have a markup id, so nothing will be updated. Call this method immediately after constructing the checkbox. Regards Sven On 08/23/2010 09:18 PM, Anna Simbirtsev wrote: Hi, I am trying to use

Re: Using AjaxCheckBox

2010-08-23 Thread Anna Simbirtsev
Thanks, this fixed a problem. But I thought, it would give me an error message, if I am trying to update a component that does not have setOutputMarkupId(true) ? On Mon, Aug 23, 2010 at 3:26 PM, Sven Meier s...@meiers.net wrote: Hi, calling b.setOutputMarkupId(true) during Ajax request is too

Re: Using AjaxCheckBox

2010-08-23 Thread Sven Meier
Yes, you did call it before #addComponent(): b.setOutputMarkupId(true); target.addComponent(b); But Wicket doesn't keep track of *when* you called the method, i.e. before or after the Ajax request. IIRC there should be an error message in the Ajax debug window. Regards Sven On

Up on selection of one DropDownChoice value one more DropDownChoice box should display

2010-08-23 Thread arunarapole
Hi I have a requirement that i need to display one Dropdownchoice on to the form upon selection of one more dropdownchoice value Say example under manager dropdownchoice if i select IT manager it has to display one more dropdownchoice on form, and if i select Account Manager it should not

[JOB POST] Senior User Interface Developer - Folsom, CA, USA

2010-08-23 Thread Michael Hosier
Forgive me if this is inappropriate but I have seen other job postings here so assume this is acceptable on this list. My company is looking for a Senior User Interface Developer. Our products heavily use Wicket and we are looking to expand our web application offerings while creating a better

Re: Up on selection of one DropDownChoice value one more DropDownChoice box should display

2010-08-23 Thread James Carman
Try fragments. Or use a different panel for the different selections. On Mon, Aug 23, 2010 at 4:07 PM, arunarapole arunakumm...@gmail.com wrote: Hi I have a requirement that i need to display one Dropdownchoice  on to the form upon selection of one more dropdownchoice value Say example

Re: Problem to replace panel

2010-08-23 Thread Igor Vaynberg
your example is too complicated, create a simple quickstart using the wicket archetype and only add the necessary bits to replicate the problem -igor On Sun, Aug 22, 2010 at 8:03 AM, zoran jeremy...@gmail.com wrote: Hi Martin, I finally made a some kind of quickstart. I removed all

How to show error msg from ResourLink and abort processing?

2010-08-23 Thread joinow
I am using wicket for our portlets now. I use a ResourceLink for downloading CSV file. I used the code as shown below. But some exception may be thrown from the method getCsvData(). How can I catch the exception and display some error message by FeedbackPanel? final WebResource csvsrc

Re: wicket-extensions alive?

2010-08-23 Thread gnugrf
Thank you JT, the day I was working on this when I checked the maven repository, the first search result returns the older versions of wicket-extensions based off the groupid = wicket. It was my mistake, I didn't realize at the time there was a newer branch based off groupid = org.apache.wicket,

Re: [1.5] new wicket URL-related questions

2010-08-23 Thread bht
Hi, A2: http://blog.armstrongconsulting.com/?p=14 A4: I will look at this in 1.5 myself at some stage as well, so please keep in touch. Meanwhile, have you seen http://day-to-day-stuff.blogspot.com/2008/10/wicket-extreme-consistent-urls.html I have a special use case for this where I don't

Re: How to show error msg from ResourLink and abort processing?

2010-08-23 Thread joinow
If I remove resource.onResourceRequest(), Jboss said javax.servlet.ServletException: org.jboss.portal.common.NotYetImplemented: Feature: handling of empty ContentResponse is not yet implemented -- View this message in context:

Re: [1.5] new wicket URL-related questions

2010-08-23 Thread Matej Knopp
Hi, see the replies below 2010/8/23 Major Péter majorpe...@sch.bme.hu: Hi! As I'm testing wicket 1.5-SNAPSHOT, I'm seeing some strange behaviors: With 1.4 I've used to have url's like: showuser/id/1234 now when I open simply the page without params, I will see the following URL: