This doesn't work well: pasting from a browser with newlines in it is hell.
Why would you want to edit the commandline again? We are building a page
that generates the correct commandline for you!
I just want a text area or text field that generates the line to paste
without any newlines in it.

Something like:

Enter your project data:
groupId       [textfield]
artifactId     [textfield]
                  [generate]

Copy and paste the contents of this field into your command line (dos box or
unix shell):
[generated string s.th. like mvn -...........]

If you want to go sexy, add a button to copy the contents to the clipboard.

Martijn

On Dec 2, 2007 5:41 PM, David Bernard <[EMAIL PROTECTED]> wrote:

> The first thing that can be done is to provide a sample that could work by
> copy/paste in a shell, and only need to edit the last line :
> mvn archetype:create -DarchetypeGroupId=org.apache.wicket /
> -DarchetypeArtifactId=wicket-archetype-quickstart /
> -DarchetypeVersion=1.3.0-rc1 /
> -DgroupId=com.mycompany -DartifactId=myproject
>
> Regards
>
> Gerolf Seitz wrote:
> > that's a great idea.
> > i will add the task immeditaly.
> >
> >   Gerolf
> >
> > On Dec 2, 2007 4:53 PM, Martijn Dashorst <[EMAIL PROTECTED]>
> wrote:
> >
> >> The current quickstart page shows a commandline that is not very
> friendly
> >> to
> >> edit by hand: you have to unwrap the lines and figure out which parts
> need
> >> to be changed. This task will add to the example two textboxes and a
> bit
> >> of
> >> Javascript to generate the maven command ready to copy/paste to a dos
> box
> >> (or unix commandline).
> >> It should ask for the groupId and the artifactId and generate the
> >> resulting
> >> commandline. It should also be able to be run inside a confluence wiki
> >> page.
> >> The student can test using the Wicket confluence wiki. We will move the
> >> page
> >> when ready to the official space.
> >>
> >> References:
> >>  - Official Quickstart page: http://wicket.apache.org/quickstart.html
> >>  - The GHOP Quickstart page open for editing by the student: GHOP -
> >> quickstart<
> >> http://cwiki.apache.org/confluence/display/WICKET/GHOP+-+quickstart>
> >>
> >> Martijn
> >>
> >> --
> >> Buy Wicket in Action: http://manning.com/dashorst
> >> Apache Wicket 1.3.0-rc1 is released
> >> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/
> >>
> >
>



-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-rc1 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/

Reply via email to