Eelco Hillenius wrote:

I guess you mean WicketExamplePage.html?


I don't think so -- in the GuestBook example (http://wicket.sourceforge.net/ExampleGuestBook.html), GuestBook.java has this import statement:

   import wicket.examples.WicketExamplePage;

And this is the class declaration:

   public final class GuestBook extends WicketExamplePage

I don't understand where that is coming from. It is not defined in the sample and hence causes errors during compilation.

-- Gj



You can consider WicketExamplePage as an abstract page (maybe we should actually put in the abstract keyword here) in the sense that it is not meant to be used directly. Wicket allways tries to match the concrete type first before falling back on the super type.

An example: page C extends page B extends page A. If you call page C, and C.html exists in the same package as where C is, that markup file is used. If C.html does not exists, B.html is tried in the same package as B. If B.html is found, it will be used for both B and C. In all cases, even if A had A.html it wouldn't have been used. /Unless/ you use markup inheritance, in which case the parent's markup /is/ actually used.

Same story goes for any component that has markup associated, like Panels and Borders.

Eelco


Geertjan Wielenga wrote:


The GuestBook sample subclasses wicket.examples.WicketExamplePage. But where can I find that in the Java packages? I also downloaded the examples, but couldn't find it there either.

-- Geertjan


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user





-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to