Re: [Wicket-user] Creating Entire Forms in Java Code Only?

2007-04-11 Thread Philip Weaver

I started this thread because I wish Wicket would support the following
feature.

I wish that each form or form element element had a default renderer and
would render itself without needing to be embedded in some other html file.
If layout is a problem - find a solution. I wish that Wicket had a higher
level of componentry which could be directed purely and simply by/in Java
code alone. This was a how-to question - but perhaps now it is a feature
request.

Phil
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Creating Entire Forms in Java Code Only?

2007-04-11 Thread Philip Weaver

Thanks, Igor, for taking the effort to answer my question. I so understand
that one of the core vision statements is separation of concerns. I am
evaluating Click but haven't ruled out Wicket - just that some aspects of
Click seem less cumbersome because separation of concerns is not a priority
there - Click seems to suit what I need better than what Eelco had suggested
much earier: Echo.

Thanks for your time,
Phil

On 4/11/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


i thought you were using Click?

anyways, what you want is possible, like ive mentioned, but is not the
primary focus of wicket. wicket is about separation of concerns. that means
letting the designers design the markup with all its pretty css and images,
rather then making developers try to reproduce that markup via layout
managers ala swing.

what you want is not our priority so it will probably never make it into
core project unless one of core developers writes it up and maintains it.

like i said take a look at bean panels, what you want is pretty simple to
achieve with a bit of work. let me give you a short example.

class textfieldpanel extends panel {
public textfieldpanel(string id, imodel model) {
  super(id);
  add(new textfield(tf, model));
}
}

wicket:panelinput wicket:id=tf type=text//wicket:panel

class checkboxpanel extends panel {
public checkboxpanel(string id, imodel model) {
  super(id);
  add(new checkbox(cb, model));
}
}

wicket:panelinput wicket:id=cb type=checkbox//wicket:panel



now in your page

Form form=new Form(form);
add(form);
RepeatingView items=new RepeatingView(items);
form.add(items);
items.add(new textfieldpanel(items.newchildid(), ..));
items.add(new checkboxpanel(items.newchildid(), ..));

and in markup
form wicket:id=formspan wicket:id=items/span/form

that is pretty close to what you want. you can then start adding labels to
your checkbox/textfield panels to add labels, etc


-igor


On 4/11/07, Philip Weaver [EMAIL PROTECTED] wrote:

 I started this thread because I wish Wicket would support the following
 feature.

 I wish that each form or form element element had a default renderer and
 would render itself without needing to be embedded in some other html file.
 If layout is a problem - find a solution. I wish that Wicket had a higher
 level of componentry which could be directed purely and simply by/in Java
 code alone. This was a how-to question - but perhaps now it is a feature
 request.

 Phil


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Creating Entire Forms in Java Code Only?

2007-04-11 Thread Philip Weaver

Inlined...

On 4/11/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


 I wish that each form or form element element had a default renderer and
 would render itself without needing to be embedded in some other html
file.

Yep, gotcha.

 If layout is a problem - find a solution.

It isn't a problem. It's a core assumption that Wicket works on
markup: 'enabling component-oriented, programmatic manipulation of
markup'.



I understand. I also understand Wicket's core vision includes separation of
concerns.

Also, since you think Click answers what you are looking for, I wonder

how this is so different?

Java:
Form form = new Form();
textField = new TextField(search);
form.add(textField);
Select typeSelect = new Select(type);
typeSelect.addAll(new String[] {ID, Name, Age});
typeSelect.setValue(Name);
form.add(typeSelect);

Html:
$form.startTag()
bCustomer/b ${form.fields.search}${form.fields.type}${form.fields.go}
$form.endTag()



I'll assume that the $ signs are Velocity tags and you are refering to
Click. Yes, Click does integrate Velocity tags - but for the most part you
won't have to use them. If you create a form for example in Click, it
renders the entire form and its components for you and layout is
customizable via a set of flags and via CSS. Everything is coded in Java,
has default renders, and is customizable.

Besides whether that's better than how Wicket does it or not, you

really are referring to those components in HTML right?



To some extent perhaps. But the title of this thread is Creating Entire
Forms in Java Code Only? Click does create and render all forms in code
(without Velocity) using default rendering which is customizable. Perhaps
Click just needs more configurability is its layout component for general
use. Click also renders table automatically. Click also supports Panels.

I recommended Echo (and GWT if you like) as there you work with layout

managers rather than with markup. I thought that's what you wanted
being a Swing guy. So I was surpised to learn you thought about Click
now (though there's nothing wrong with that of course).



I don't mind working with HTML markup. But object-oriented programming
languages like Java can allow us to abstract away from the tedium and
cumbersomeness of rendering html; e.g. encapsulation.



If you mean that you prefer components to directly spit out HTML,
that's very easy with Wicket, just like:

protected void onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag) {
  getResponse().write(foobarudududud/bar/foo);
}

etc. But like we stated before, this wouldn't be the recommended way
of working with Wicket. More of a break out option and optimization.



I understand. Thanks. One of Rail's mantra is convention over configuration.
Being able to render default HTML for common types of controls seems
conventional - it seems less cumbersome. I am not disrespecting Wicket - I
appreciate Wicket but I wish that it were less cumbersome to use for UI
programmers.

Eelco


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Creating Entire Forms in Java Code Only?

2007-04-10 Thread Philip Weaver

After 40+ hours of more research, I did indeed find my style of coding - and
it clicks. Page-based, component-based, object-oriented web interfaces
driven by Java code with automatic html rendering.

   http://click.sourceforge.net/

Phil

On 4/8/07, Eelco Hillenius [EMAIL PROTECTED] wrote:



It sounds like Echo is more your style of coding. See
http://www.nextapp.com/

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Help Me Improve Wicket Quickstart

2007-04-07 Thread Philip Weaver

The difficulty I faced was perhaps more of a documentation issue. It seems
like the QuickStart documentation assumes that the user is using IDEA,
Eclipse, or NetBeans and also assumes that the user is already has Maven
installed. The only reference I have found so far to Maven in in the change
log page.

So IMO the documentation basically needs another document on how to build
and run the QuickStart from Ant or Maven using any IDE. More users are
likely to have Ant installed than Maven I would guess. The Ant build file
which is already included just needs an execute target with java command -
that's what I do. But regardless, the QuickStart docs need a generic setup
document which does not assume that Maven is installed.

On 4/7/07, Gwyn Evans [EMAIL PROTECTED] wrote:


 Hi Philip,


Saturday, April 7, 2007, 1:24:33 AM, you wrote:


  

In summary, the intent of the QuickStart with a bundled Jetty is fabulous.
However, I feel that it falls short by only offering means to run the
project using NetBeans, IDEA, or Eclipse. And I think this is a little
disappointing. I happen to use jEdit - so I think it's a little annoying
that the QuickStart doesn't have generic instructions or, say, a java
target immediately in the build file.


Well, isn't that just what mvn jetty:run gives you? :-)


We're open to patches if you feel that the Ant script could be extended
though, but as far as the IDEs go, they're not one's that we're explictly
decided upon, just the ones that there are Maven plugins for (that we're
aware of) that generate the respective IDE-specific project files.


--

Best regards,

 Gwynmailto:[EMAIL PROTECTED][EMAIL PROTECTED]

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Help Me Improve Wicket Quickstart

2007-04-06 Thread Philip Weaver

Can anyone send me pointers for setting up quickstart manually? (scripts,
build file w/ exec, etc)
Who to talk to to create a generic quickstart setup document?

I am interested in helping to improve the Quickstart download. I would be
more pleased if the quickstart first presented a generic quickstart with
NetBeans, Idea, and Eclipse as additional setups. The QuickStart should at
the least illustrate how to get Wicket up and running manually (script for
lauching, etc)

I can set all of this up myself but help will make it quicker and more
pleasing. :-)

Thanks.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Help Me Improve Wicket Quickstart

2007-04-06 Thread Philip Weaver

In summary, the intent of the QuickStart with a bundled Jetty is fabulous.
However, I feel that it falls short by only offering means to run the
project using NetBeans, IDEA, or Eclipse. And I think this is a little
disappointing. I happen to use jEdit - so I think it's a little annoying
that the QuickStart doesn't have generic instructions or, say, a java
target immediately in the build file. Just one of the selling points of
Wicket that attracts me is no XML/configuration files. This QuickStart has
several and none of them are generic enough to run the QuickStart from the
ant build file using java. I even consider Ant to use XML configuration
files and I think Ant should die. Hehe.

I'll work all of this out and will add to the wiki. Let me know if anyone
can send me anything to help me out. I hate ant and I hate configuring stuff
- just want to play with Wicket.

Thanks,
Phil

On 4/6/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


in quickstart you can do mvn eclipse:eclipse to generate an eclipse
project, or mvn idea:idea for idea.

you can writeup a document on the wiki, and if we all like it we can
export it into quickstart's readme or something like that

-igor


On 4/6/07, Philip Weaver [EMAIL PROTECTED] wrote:


 Can anyone send me pointers for setting up quickstart manually?
 (scripts, build file w/ exec, etc)
 Who to talk to to create a generic quickstart setup document?

 I am interested in helping to improve the Quickstart download. I would
 be more pleased if the quickstart first presented a generic quickstartwith 
NetBeans, Idea, and Eclipse as additional setups. The QuickStart should
 at the least illustrate how to get Wicket up and running manually (script
 for lauching, etc)

 I can set all of this up myself but help will make it quicker and more
 pleasing. :-)

 Thanks.




 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Help Me Improve Wicket Quickstart

2007-04-06 Thread Philip Weaver

Basically, would be nice if instructions as simple as the following were
part of the build file:

   target name=execute
   java classname=wicket.quickstart.Start fork=true
failonerror=true maxmemory=128m classpathref=build.classpath
   classpath
   path refid=build.classpath/path
   pathelement path=${build.main.classes}/pathelement
   /classpath
   /java
   /target

I'll see if I can add something to the wiki - but I want to play now.

On 4/6/07, Philip Weaver [EMAIL PROTECTED] wrote:


In summary, the intent of the QuickStart with a bundled Jetty is fabulous.
However, I feel that it falls short by only offering means to run the
project using NetBeans, IDEA, or Eclipse. And I think this is a little
disappointing. I happen to use jEdit - so I think it's a little annoying
that the QuickStart doesn't have generic instructions or, say, a java
target immediately in the build file. Just one of the selling points of
Wicket that attracts me is no XML/configuration files. This QuickStart has
several and none of them are generic enough to run the QuickStart from the
ant build file using java. I even consider Ant to use XML configuration
files and I think Ant should die. Hehe.

I'll work all of this out and will add to the wiki. Let me know if anyone
can send me anything to help me out. I hate ant and I hate configuring stuff
- just want to play with Wicket.

Thanks,
Phil

On 4/6/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 in quickstart you can do mvn eclipse:eclipse to generate an eclipse
 project, or mvn idea:idea for idea.

 you can writeup a document on the wiki, and if we all like it we can
 export it into quickstart's readme or something like that

 -igor


 On 4/6/07, Philip Weaver  [EMAIL PROTECTED] wrote:

 
  Can anyone send me pointers for setting up quickstart manually?
  (scripts, build file w/ exec, etc)
  Who to talk to to create a generic quickstart setup document?
 
  I am interested in helping to improve the Quickstart download. I would
  be more pleased if the quickstart first presented a generic quickstartwith 
NetBeans, Idea, and Eclipse as additional setups. The QuickStart should
  at the least illustrate how to get Wicket up and running manually (script
  for lauching, etc)
 
  I can set all of this up myself but help will make it quicker and more
  pleasing. :-)
 
  Thanks.
 
 
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user