Re: [Wicket-user] Generating HTML with Wicket?

2006-05-03 Thread Eelco Hillenius

Hi,

While it wouldn't be considered best practice, you could. There are
several tags, like dropdownchoice, that write out pieces of HTML
without creating sub elements first.

Eelco


On 5/3/06, Ashley Aitken [EMAIL PROTECTED] wrote:



Howdy All,

I am new to Wicket, just looking around for an appropriate Web framework to
use on my next project.

I would like to know if Wicket can (or will shortly be able to) generate
HTML elements (as well as doing all the other things it can do).  By this I
mean something like the old Element Construction Set (ECS) or perhaps even
Swinglets.

I've seen some discussion of this on the mailing list archive (although it
is hard to follow threads via the archive), but it was mainly relating to
Wicket possibly auto-generating prototype HTML if a HTML file was not
available.

I also understand that Wicket usually works with a HTML file and some may
suggest using a Wicket panel for each possible element I wish to construct.
That may be a possible but it doesn't seem elegant.

However, I can't see why Wicket couldn't generate HTML when required, for
very dynamic parts of a Web page.  Wicket seems to have classes
corresponding to most (if not all) HTML elements already.

Of course, most dynamic Web pages won't need this, they just want to slot
some dynamic content in an already setup HTML template, but I can also see
where full dynamic control of the tags and content could be useful.

Sorry if I have misunderstood how Wicket works.  Any comments, or
suggestions, would be most appreciated.



Cheers,


Ashley.




--

Ashley Aitken

Perth, Western Australia

mrhatken at mac dot com

Skype Name: MrHatken (GMT + 8 Hours!)








---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Generating HTML with Wicket?

2006-05-03 Thread Timo Stamm

Eelco Hillenius schrieb:

While it wouldn't be considered best practice, you could. There are
several tags, like dropdownchoice, that write out pieces of HTML
without creating sub elements first.


Instead of handling Strings yourself, it is perfectly possible to use 
ECS or any other lib (like the ones that come with Jetty) for this task.


But I doubt that this integrates well with the rest of the wicket world. 
Using Panels to generate markup dynamically is quite powerful. I think 
that Wicket could handle this a bit more elegant, but it really works 
well enough for most cases.


See this article for a very short introduction to using Panels for 
dynamic markup:


http://www.wicket-wiki.org.uk/wiki/index.php/Create_dynamic_markup_hierarchies_using_panels


There is a BeanEditor in wicket extensions that uses Panels to create 
the input elements for the bean properties dynamically. At least with 
1.1.1, you can find an example in the example project under 
examples/compref/BeanEditPage.java



Timo



On 5/3/06, Ashley Aitken [EMAIL PROTECTED] wrote:



Howdy All,

I am new to Wicket, just looking around for an appropriate Web 
framework to

use on my next project.

I would like to know if Wicket can (or will shortly be able to) generate
HTML elements (as well as doing all the other things it can do).  By 
this I
mean something like the old Element Construction Set (ECS) or perhaps 
even

Swinglets.

I've seen some discussion of this on the mailing list archive 
(although it

is hard to follow threads via the archive), but it was mainly relating to
Wicket possibly auto-generating prototype HTML if a HTML file was not
available.

I also understand that Wicket usually works with a HTML file and some may
suggest using a Wicket panel for each possible element I wish to 
construct.

That may be a possible but it doesn't seem elegant.

However, I can't see why Wicket couldn't generate HTML when required, for
very dynamic parts of a Web page.  Wicket seems to have classes
corresponding to most (if not all) HTML elements already.

Of course, most dynamic Web pages won't need this, they just want to slot
some dynamic content in an already setup HTML template, but I can also 
see

where full dynamic control of the tags and content could be useful.

Sorry if I have misunderstood how Wicket works.  Any comments, or
suggestions, would be most appreciated.



Cheers,


Ashley.




--

Ashley Aitken

Perth, Western Australia

mrhatken at mac dot com

Skype Name: MrHatken (GMT + 8 Hours!)








---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job 
easier

Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=kkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Generating HTML with Wicket?

2006-05-03 Thread Ashley Aitken
On 03/05/2006, at 5:42 PM, Timo Stamm wrote:Instead of handling Strings yourself, it is perfectly possible to use ECS or any other lib (like the ones that come with Jetty) for this task.Yes, that was my hope (or that Wicket classes could optionally generate the full HTML).  But I am unsure how to inject the HTML into a Wicket page at a particular location.  Would I just have something like a a SPAN or DIV tag with a wicket:id and then dynamically put the string generated from ECS or similar in there at run-time using a Label?But I doubt that this integrates well with the rest of the wicket world. Using Panels to generate markup dynamically is quite powerful. I think that Wicket could handle this a bit more elegant, but it really works well enough for most cases.See this article for a very short introduction to using Panels for dynamic markup:http://www.wicket-wiki.org.uk/wiki/index.php/Create_dynamic_markup_hierarchies_using_panelsYes thanks, I have seen that but it doesn't seem like it would scale to generate arbitrary HTML - having a component for every different HTML tag (pair) seems like overkill ;-)Cheers,Ashley.--Ashley AitkenPerth, Western Australiamrhatken at mac dot comSkype Name: MrHatken (GMT + 8 Hours!) 

Re: [Wicket-user] Generating HTML with Wicket?

2006-05-03 Thread Timo Stamm

Ashley Aitken schrieb:


On 03/05/2006, at 5:42 PM, Timo Stamm wrote:

Instead of handling Strings yourself, it is perfectly possible to use 
ECS or any other lib (like the ones that come with Jetty) for this task.


Yes, that was my hope (or that Wicket classes could optionally generate 
the full HTML).  But I am unsure how to inject the HTML into a Wicket 
page at a particular location.


Would I just have something like a a SPAN or DIV tag with a wicket:id 
and then dynamically put the string generated from ECS or similar in 
there at run-time using a Label?


Exactly.


But I doubt that this integrates well with the rest of the wicket 
world. Using Panels to generate markup dynamically is quite powerful. 
I think that Wicket could handle this a bit more elegant, but it 
really works well enough for most cases.


See this article for a very short introduction to using Panels for 
dynamic markup:


http://www.wicket-wiki.org.uk/wiki/index.php/Create_dynamic_markup_hierarchies_using_panels 



Yes thanks, I have seen that but it doesn't seem like it would scale to 
generate arbitrary HTML - having a component for every different HTML 
tag (pair) seems like overkill ;-)


Yes :)

Panels are useful to encapsulate common GUI elements with several lines 
of markup, but not for single tags.



Timo


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Generating HTML with Wicket?

2006-05-03 Thread Juergen Donnerstag

Please see the template example as well

Juergen

On 5/3/06, Timo Stamm [EMAIL PROTECTED] wrote:

Ashley Aitken schrieb:

 On 03/05/2006, at 5:42 PM, Timo Stamm wrote:

 Instead of handling Strings yourself, it is perfectly possible to use
 ECS or any other lib (like the ones that come with Jetty) for this task.

 Yes, that was my hope (or that Wicket classes could optionally generate
 the full HTML).  But I am unsure how to inject the HTML into a Wicket
 page at a particular location.

 Would I just have something like a a SPAN or DIV tag with a wicket:id
 and then dynamically put the string generated from ECS or similar in
 there at run-time using a Label?

Exactly.


 But I doubt that this integrates well with the rest of the wicket
 world. Using Panels to generate markup dynamically is quite powerful.
 I think that Wicket could handle this a bit more elegant, but it
 really works well enough for most cases.

 See this article for a very short introduction to using Panels for
 dynamic markup:

 
http://www.wicket-wiki.org.uk/wiki/index.php/Create_dynamic_markup_hierarchies_using_panels


 Yes thanks, I have seen that but it doesn't seem like it would scale to
 generate arbitrary HTML - having a component for every different HTML
 tag (pair) seems like overkill ;-)

Yes :)

Panels are useful to encapsulate common GUI elements with several lines
of markup, but not for single tags.


Timo


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Generating HTML with Wicket?

2006-05-03 Thread Igor Vaynberg
Panels are useful to encapsulate common GUI elements with several linesof markup, but not for single tags.
and dont forget about Fragments :)-Igor


[Wicket-user] Generating HTML with Wicket?

2006-05-02 Thread Ashley Aitken
Howdy All,I am new to Wicket, just looking around for an appropriate Web framework to use on my next project.  I would like to know if Wicket can (or will shortly be able to) generate HTML elements (as well as doing all the other things it can do).  By this I mean something like the old Element Construction Set (ECS) or perhaps even Swinglets.I've seen some discussion of this on the mailing list archive (although it is hard to follow threads via the archive), but it was mainly relating to Wicket possibly auto-generating prototype HTML if a HTML file was not available.  I also understand that Wicket usually works with a HTML file and some may suggest using a Wicket panel for each possible element I wish to construct.  That may be a possible but it doesn't seem elegant.However, I can't see why Wicket couldn't generate HTML when required, for very dynamic parts of a Web page.  Wicket seems to have classes corresponding to most (if not all) HTML elements already.Of course, most dynamic Web pages won't need this, they just want to slot some dynamic content in an already setup HTML template, but I can also see where full dynamic control of the tags and content could be useful.  Sorry if I have misunderstood how Wicket works.  Any comments, or suggestions, would be most appreciated.   Cheers,Ashley.--Ashley AitkenPerth, Western Australiamrhatken at mac dot comSkype Name: MrHatken (GMT + 8 Hours!)