Howto? Wicket, Maven, and multiple Eclipse Java projects

2008-02-23 Thread Martin Makundi
Hi! I have the following directory- and project structure: workspace/Wicket-Quickstart-App workspace/UtilityLibrary1 workspace/UtilityLibrary2 * UtilityLibrary1 depends on UtilityLibrary2 * Wicket-Quickstart-App depends on both UtilityLibrary1 and UtilityLibrary2 They compile just ok within Ecl

Re: Wicket as a front controller ?

2008-02-23 Thread smallufo
Thank you , but I want a (bookmarkable) page without HTML Is it possible ? 2008/2/24, Kent Tong <[EMAIL PROTECTED]>: > > > > smallufo wrote: > > > > I have a normal wicket webapp , but I need one "endpoint" to process > > Yahoo's > > bbAuth's request. > > Yes , I can write normal servlet to proces

Re: Combining Ajax and non Ajax pages

2008-02-23 Thread steviezz
Now almost there. I'm understanding the use of models much better now. I have created my own simple SeachModel class to holds Strings for each selected dropdown choice. In my custom session I wrap my model like: CompoundPropertyModel searchModel = new CompoundPropertyModel(new SearchMode

Re: my domain model and Joda-Time

2008-02-23 Thread Fernando Wermus
I changed it. Do you know if this upgrade is comming soon? On Sun, Feb 24, 2008 at 3:03 AM, Ryan Gravener <[EMAIL PROTECTED]> wrote: > Use Date instead of DateTime. > > On Sat, Feb 23, 2008 at 11:56 PM, Fernando Wermus < > [EMAIL PROTECTED]> > wrote: > > > Hi all, > > I got a parser error usi

Re: my domain model and Joda-Time

2008-02-23 Thread Ryan Gravener
Use Date instead of DateTime. On Sat, Feb 23, 2008 at 11:56 PM, Fernando Wermus <[EMAIL PROTECTED]> wrote: > Hi all, > I got a parser error using DateTextField. > I am working with Joda-Time in my domain model. Thus I have some > DateTime attributes. According to this code which I found,

Re: my domain model and Joda-Time

2008-02-23 Thread Fernando Wermus
I found http://issues.apache.org/jira/browse/WICKET-466. If I understand these path will be added in 1.4 release. Is this correct? On Sun, Feb 24, 2008 at 2:56 AM, Fernando Wermus <[EMAIL PROTECTED]> wrote: > Hi all, > I got a parser error using DateTextField. > I am working with Joda-T

my domain model and Joda-Time

2008-02-23 Thread Fernando Wermus
Hi all, I got a parser error using DateTextField. I am working with Joda-Time in my domain model. Thus I have some DateTime attributes. According to this code which I found, ... form.add(DateTextField.forDatePattern("datetime", new PropertyModel(this, "datetime"), "MM/dd/"));

Re: Howto use .xhtml instead of .html for template file extension

2008-02-23 Thread Kent Tong
MYoung wrote: > > Firefox wants to download the file instead of showing the page. > http://www.nabble.com/file/p15641885/no-go-xhtml.jpg > > IE7 cannot even download the file. > The mime type Wicket returns to the browser is text/. In your case it's text/xhtml which is not correct. Instead,

Re: DataTable: how to make a column showing the row number?

2008-02-23 Thread MYoung
Ok, I got it. item.getParent() is a RepeatingView item.getParent().getParent() is the row's Item. So ((Item)item.getParent().getParent()).getIndex() gives me the answer. Thanks! igor.vaynberg wrote: > > public void populateItem(Item cell, String compId, IModel rowModel) { > item.getindex

Re: Wicket as a front controller ?

2008-02-23 Thread Kent Tong
smallufo wrote: > > I have a normal wicket webapp , but I need one "endpoint" to process > Yahoo's > bbAuth's request. > Yes , I can write normal servlet to process this , but normal servlet > lacks > of spring injection and cannot access to wicket's environment. > Have you tried using a bookm

Re: DataTable: how to make a column showing the row number?

2008-02-23 Thread MYoung
igor.vaynberg wrote: > > ...item.getparent() > I tried it and gives me a RepeatingView, not a Item. igor.vaynberg wrote: > > public void populateItem(Item cell, String compId, IModel rowModel) { > item.getindex() is cell, ((item)item.getparent()).getindex() is row > > -igor > > > On Sat

Re: Howto use .xhtml instead of .html for template file extension

2008-02-23 Thread James Carman
Please do not double post. You asked this question yesterday. On 2/23/08, MYoung <[EMAIL PROTECTED]> wrote: > > I follow this: > > > http://cwiki.apache.org/confluence/display/WICKET/Use+a+different+extension+for+template+files > > added this to MyPage: > > @Override > public String g

Re: DataTable: how to make a column showing the row number?

2008-02-23 Thread Igor Vaynberg
public void populateItem(Item cell, String compId, IModel rowModel) { item.getindex() is cell, ((item)item.getparent()).getindex() is row -igor On Sat, Feb 23, 2008 at 6:43 PM, MYoung <[EMAIL PROTECTED]> wrote: > > Like the first column here, just whatever the row's number is: > > ++-

Howto use .xhtml instead of .html for template file extension

2008-02-23 Thread MYoung
I follow this: http://cwiki.apache.org/confluence/display/WICKET/Use+a+different+extension+for+template+files added this to MyPage: @Override public String getMarkupType() { return "xhtml"; } and it doesn't work. Firefox wants to download the file instead of showing the p

DataTable: how to make a column showing the row number?

2008-02-23 Thread MYoung
Like the first column here, just whatever the row's number is: ++-+ | No. | Names | ++-+ | 1 | AAA | ++-+ | 2 | AAA | ++-+ | 3 |

Re: Wicket as a front controller ?

2008-02-23 Thread Maurice Marrink
After reading up a bit on yahoo bbAuth, i'm thinking the following will work. Take the code shown here http://developer.yahoo.com/java/howto-BBauthJava.html for the servlet and convert it to a servlet filter. Then in your web.xml use this new WicketBbAuthFilter for your app together with the origin

Re: gmap vs gmap2?

2008-02-23 Thread Martin Funk
Hi Erik, not sure if I understood you on the dependency change. As maven's dependency management works quite well I always sort of feel quite stupid to come up with an extra release branch for another wicket release. But I did it anyway: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuf

Re: Where to put external css file for mvn jetty:run?

2008-02-23 Thread Martin Funk
Hi MYoung, I'd say it should read: src/main/webapp/css/aquastyle.css in your maven project directory. fm 2008/2/23, MYoung <[EMAIL PROTECTED]>: > > > I use the Quickstart mvn archetype to generate my project, then use mvn > jetty:run to run the project. > > In my template, I have: > > >

Re: Where to put external css file for mvn jetty:run?

2008-02-23 Thread MYoung
Never mind. I figured it out. Put css/aquastyle.css next to WEB-INF in the source. -- View this message in context: http://www.nabble.com/Where-to-put-external-css-file-for-mvn-jetty%3Arun--tp15657334p15657629.html Sent from the Wicket - User mailing list archive at Nabble.com. -

Re: Accessing prototype scoped panel beans using @SpringBean annotation

2008-02-23 Thread Ned Collyer
This is close to the solution we are currently using ;) Thanks for the info on the Classes object. Rgds Ned Kent Tong wrote: > > > public class TestPage extends WebPage { > @SpringBean(name = "panelFactory") > private PanelFactory panelFactory; > > public TestPage() { >

Where to put external css file for mvn jetty:run?

2008-02-23 Thread MYoung
I use the Quickstart mvn archetype to generate my project, then use mvn jetty:run to run the project. In my template, I have: My Project Where should "aquastyle.css" be in my source so mvn jetty:run can place in the right place for Wicket when I run my project? -- V

Wicket as a front controller ?

2008-02-23 Thread smallufo
Hi . I wonder if wicket can act as a servlet front controller ? I have a normal wicket webapp , but I need one "endpoint" to process Yahoo's bbAuth's request. Yes , I can write normal servlet to process this , but normal servlet lacks of spring injection and cannot access to wicket's environment.

Re: gmap vs gmap2?

2008-02-23 Thread Erik van Oosten
Thanks Martin, Ryan, I tried to run the examples of gmap2 today (no time for the code yet). Just as an experiment I compiled gmap2 against the wicket 1.3.1 release instead of the documented Wicket trunk. The examples work, so I guess it is possible to change the dependency. I am also searchi

Re: gmap vs gmap2?

2008-02-23 Thread Ryan Gravener
I would recommend gmap2 as well. On Sat, Feb 23, 2008 at 12:38 PM, Martin Funk <[EMAIL PROTECTED]> wrote: > gmap was there first and gmap2 was inspired by it and > both try to deliver the same service. > > I personally think that gmap2 has the more efficient approach. > But as I'm quite involved

Re: Wicket 1.3.x DatePicket drop-in replacement

2008-02-23 Thread Igor Vaynberg
in 1.3 the drop in replacement is the yui datepicker. drop-in means api is the same. after migrating to apache we could no longer use jscalendar because its license is incompatible. -igor On Sat, Feb 23, 2008 at 1:41 AM, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote: > Yes, I know that. But I would

Re: gmap vs gmap2?

2008-02-23 Thread Martin Funk
gmap was there first and gmap2 was inspired by it and both try to deliver the same service. I personally think that gmap2 has the more efficient approach. But as I'm quite involved in developing it, this opinion of mine might not be objective. If you are looking for objectivity you might have to

Re: Wicket LinkTree subtree collapse/expand

2008-02-23 Thread Matej Knopp
Hi, I will certainly look at this once i have some spare time. -Matej On Sat, Feb 23, 2008 at 2:09 PM, Kent Tong <[EMAIL PROTECTED]> wrote: > > > Sebastiaan van Erk wrote: > > > > Ok, thanks for the quick reply. :-) > > > > https://issues.apache.org/jira/browse/WICKET-1366 > > > > I've add

Re: AjaxFormSubmitBehavior and setDefaultFormProcessing(false)?

2008-02-23 Thread Kent Tong
Juha Alatalo wrote: > > In this case I have to visit different page when browse is chosen. When > I come back form is cleared, isn't it? > Have you tried just clearing the feedback messages? - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW Axis2 tutori

Re: Custom validation message for 'int'?

2008-02-23 Thread Kent Tong
florin.g wrote: > > I cannot seem to find a way to provide a custom validation message for > 'int'. (I learned for most others). > fieldName.int does not work > fieldName.Integer does not work > fieldName.Number does not work > fieldName.int is the one to use. Make sure you have reloaded your

Re: Custom validation message for 'int'?

2008-02-23 Thread Kent Tong
florin.g wrote: > > I cannot seem to find a way to provide a custom validation message for > 'int'. (I learned for most others). > fieldName.int does not work > fieldName.Integer does not work > fieldName.Number does not work > fieldName.int - -- Kent Tong Wicket tutorials freely availab

Re: Wicket LinkTree subtree collapse/expand

2008-02-23 Thread Kent Tong
Sebastiaan van Erk wrote: > > Ok, thanks for the quick reply. :-) > > https://issues.apache.org/jira/browse/WICKET-1366 > I've added some comments to it. For a workaround, try: tree = new LinkTree("t", model) { protected Component newNodeComponent(String id, IModel model) {

Re: Accessing prototype scoped panel beans using @SpringBean annotation

2008-02-23 Thread Kent Tong
Ned Collyer wrote: > > Spring is meant to be the factory :). Isn't that a big part of why we use > Spring? > > Incidently there is a Classes class that has some handy "cached" stuff for > resolving class references. > see org.apache.wicket.util.lang.Classes > You can certain make the PanelFa

gmap vs gmap2?

2008-02-23 Thread Erik van Oosten
Hello, What are the differences between the wicket-stuff projects gmap and gmap2? Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Custom validation message for 'int'?

2008-02-23 Thread bytenotes
I cannot seem to find a way to provide a custom validation message for 'int'. (I learned for most others). '-' is not a valid int. fieldName.int does not work fieldName.Integer does not work fieldName.Number does not work fieldName.NumberValidator.range works but it's a different message. Than

Re: Accessing prototype scoped panel beans using @SpringBean annotation

2008-02-23 Thread James Carman
The big question here is why do you want to use Spring to configure/construct your panels? What is the use case? On 2/23/08, Kent Tong <[EMAIL PROTECTED]> wrote: > > > Ned Collyer wrote: > > > > There are a few ways to approach this, ie, having some class loader which > > resolves given strin

Re: Accessing prototype scoped panel beans using @SpringBean annotation

2008-02-23 Thread Ned Collyer
Kent Tong wrote: > > I don't know why you feel this hacky. It looks clean and easy to me: > It works, and the implementation is nice and easy BUT... Spring is meant to be the factory :). Isn't that a big part of why we use spring? -- View this message in context: http://www.nabble.com/Acce

Re: Wicket 1.3.x DatePicket drop-in replacement

2008-02-23 Thread Paolo Di Tommaso
Yes, I know that. But I would just to use the previous (and nice) JSCalendar DatePicker. I was expecting that the drop-in replacement was a .. drop-in replacement. But it is still requiring the Wicket 1.2.x core classes (!), being so migrating to 1.3.x and using the DatePicker drop-in replacement