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
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:
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));
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.
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
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
+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
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
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
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]
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
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:
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
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
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
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
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
17 matches
Mail list logo