Re: Is it possible to use wicket without having any html page?

2008-01-12 Thread xdirewolfx
I was trying to achieve the same thing to use one single web page to markup into any format desired. What I did was to store HTML markup scriptlet of popular components in a data source and using metadata on runtime to determine a view (from my current application architecture) On wicket side, I

Re: Is it possible to use wicket without having any html page?

2008-01-09 Thread Nino Saturnino Martinez Vazquez Wael
Yeah, that approach cleans up a lot enforcing the DRY principle rocks:) Sam Hough wrote: Thanks Nino, Went with your original suggestion but down a layer in our application so got rid of lots of similar code for introspection based CRUD type stuff etc... So can happily just do:

Re: Is it possible to use wicket without having any html page?

2008-01-08 Thread Sam Hough
Thanks Nino, Went with your original suggestion but down a layer in our application so got rid of lots of similar code for introspection based CRUD type stuff etc... So can happily just do: horizontalPanel.add(new Button(Click me)); horizontalPanel.add(new HTML(Some text));

Re: Is it possible to use wicket without having any html page?

2008-01-07 Thread Nino Saturnino Martinez Vazquez Wael
Hi Martijn First of all I did not want to start a discussion. get rid of markup files, could be interpreted in serveral ways. One could be that he was wondering on having excess html pages, and I just wanted to tell him of panels and markup inheritance. And as I stated I do not know echo 2.

Re: Is it possible to use wicket without having any html page?

2008-01-07 Thread Sam Hough
Nino.Martinez wrote: Using markup inheritance: one super class with a corresponding html and a sub class with corrosponding html, extending the super class to the special need. And maybe a mounted page that redirects to the wanted sub based on parameters. Dear Nino, Can you do

Re: Is it possible to use wicket without having any html page?

2008-01-07 Thread Johan Compagner
If you want default html for those things use panels. Make for all those components a panel part that has its own markup (so do that once) Then reuse those components everywhere. Not that you gain much in my eyes because you still need to have a span that places the panel at the right place On

Re: Is it possible to use wicket without having any html page?

2008-01-07 Thread Jon Laidler
+1. If Echo (never used myself) fits use it. You could also use Java servlets to create dynamic HTML from the server. Personally, this is a backward trend and a pain to manage - all HTML modifications made in the servlet, harder for web designers to do their creative stuff etc. The beauty of

RE: Is it possible to use wicket without having any html page?

2008-01-07 Thread Dan Kaplan
Am I having déjà vu? Didn't someone already post this? -Original Message- From: Jon Laidler [mailto:[EMAIL PROTECTED] Sent: Monday, January 07, 2008 3:54 PM To: users@wicket.apache.org Subject: Re: Is it possible to use wicket without having any html page? +1. If Echo (never used

Re: Is it possible to use wicket without having any html page?

2008-01-06 Thread Nino Saturnino Martinez Vazquez Wael
I agree on what you guys say, but theres also the chance legolas dont know every tip of the framework. And just wanted to know about panels or markup inheritance... People doesnt always know how to ask a question if they arent familiar with the framework. An so sometimes questions just come

Re: Is it possible to use wicket without having any html page?

2008-01-04 Thread legolas
A web page, but it is completely dynamic and all components will be created based on user request content. Thanks igor.vaynberg wrote: what would you like it to display? a web page or contents of some file/dynamic content? -igor On Jan 3, 2008 3:01 PM, legolas [EMAIL PROTECTED]

Re: Is it possible to use wicket without having any html page?

2008-01-04 Thread Nino Saturnino Martinez Vazquez Wael
Hi legolas im not sure how familiar you are with wicket. But i'd go for having the html and just using the approach specified here: http://www.nabble.com/Ways-of-making-components-in-a-page-optional--tp14399390p14399390.html It's possible that I've misunderstood you, do you want to redirect

Re: Is it possible to use wicket without having any html page?

2008-01-04 Thread Johan Compagner
Thats only possible if you use panels for everything. Or generate als ther html dynamically based on your data On 1/4/08, legolas [EMAIL PROTECTED] wrote: A web page, but it is completely dynamic and all components will be created based on user request content. Thanks igor.vaynberg wrote:

Re: Is it possible to use wicket without having any html page?

2008-01-04 Thread Nino Saturnino Martinez Vazquez Wael
But for most common use cases a page will have a .html . You could use several different approaches to archive something like you talk about. But when it comes down to it you will at least have: Using markup inheritance: one super class with a corresponding html and a sub class with

Re: Is it possible to use wicket without having any html page?

2008-01-04 Thread Martijn Dashorst
then just use Echo2. Why make Wicket into Echo2 when you can use that? Wicket has a particular niche and Echo2 has its niche. There is no sense into turning one into the other. Martijn On Jan 4, 2008 12:32 PM, legolas [EMAIL PROTECTED] wrote: I am simple looking to know whether we can get rid

Re: Is it possible to use wicket without having any html page?

2008-01-04 Thread legolas
I am simple looking to know whether we can get rid of any markup files and just use java files to define and design our pages, something like echo2? Thanks. Nino.Martinez wrote: Hi legolas im not sure how familiar you are with wicket. But i'd go for having the html and just using the

Re: Is it possible to use wicket without having any html page?

2008-01-04 Thread Eelco Hillenius
On Jan 4, 2008 7:35 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: then just use Echo2. Why make Wicket into Echo2 when you can use that? Wicket has a particular niche and Echo2 has its niche. There is no sense into turning one into the other. +1! Eelco

Re: Is it possible to use wicket without having any html page?

2008-01-03 Thread Igor Vaynberg
what would you like it to display? a web page or contents of some file/dynamic content? -igor On Jan 3, 2008 3:01 PM, legolas [EMAIL PROTECTED] wrote: Hi Is it possible to use wicket without having any html page? Just writing java code and pointing the browser to some url and it goes