Re: Understanding Wicket 1.5 page mapping

2011-04-23 Thread Alexandros Karypidis
Hello, Could you post some pseudo-code on what your request mapper looks like? I have a similar use-case but I wasn't able to follow. I created a MyRequestMapper class that wraps the default root mapper: setRootRequestMapper(new MyRequestMapper(getRootRequestMapper())); public

Re: Understanding Wicket 1.5 page mapping

2011-04-23 Thread drewzilla80
Try creating a method such as this; private IRequestHandler renderPage(Class? extends IRequestablePage pageClass, PageParameters pageParameters) { PageProvider pageProvider = new PageProvider(pageClass, pageParameters);

Re: Understanding Wicket 1.5 page mapping

2011-04-23 Thread Alexandros Karypidis
Thx! On Sat, 23 Apr 2011 14:11:56 +0300, Alexandros Karypidis akary...@yahoo.gr wrote: Hello, Could you post some pseudo-code on what your request mapper looks like? I have a similar use-case but I wasn't able to follow. I created a MyRequestMapper class that wraps the default root

CompoundPropertyModel and Image

2011-04-23 Thread Rene Stolle
Hi there, I have a rather simple problem, but could find a solution yet. I wanna combine text and an image in ONE model. The image is defined by a ContextRelativeResource. It works all as assumed, except for the image. Here the whole thing: public class Team extends WebPage { public

Re: formComponentPanel with content generated by RepeatingView

2011-04-23 Thread kamiseq
heh i thought I was smart :] as each component in FormComponentPanel is converted and validated so it would be easy to intercept value set on components model and add it to List (which is model of whole FCPanel) because Im not really converting components value to something bigger. the only

Re: CompoundPropertyModel and Image

2011-04-23 Thread andrea del bene
Hi, I've checked Image's source class and it seems that it doesn't support compound models (see comments in method initModel()). Hi there, I have a rather simple problem, but could find a solution yet. I wanna combine text and an image in ONE model. The image is defined by a

Forcing parent CSS to be contributed after all child CSS

2011-04-23 Thread Alec Swan
Hello, I have a component tree where some components contribute CSS. I have inline CSS for the parent component that should be contributed last in order to override CSS of child components. Children components contribute their CSS in their constructors using add(new StyleSheetReference(cssId,

Re: Forcing parent CSS to be contributed after all child CSS

2011-04-23 Thread Clint Checketts
I recall reading an article once noting that you could contribute the CSS file noted in the parent class again in the child component and Wicket is smart enough to not duplicate the contribution, but it still forces the CSS file to appear later. You also may consider changing the parent CSS rules

Re: formComponentPanel with content generated by RepeatingView

2011-04-23 Thread Pedro Santos
On Sat, Apr 23, 2011 at 2:45 PM, kamiseq kami...@gmail.com wrote: heh i thought I was smart :] as each component in FormComponentPanel is converted and validated so it would be easy to intercept value set on components model and add it to List (which is model of whole FCPanel) because Im not

Re: Forcing parent CSS to be contributed after all child CSS

2011-04-23 Thread Alec Swan
Thanks for the ideas, Clint. The child components do not know about parent CSS, so I decided to use more specific CSS selectors in the parent CSS to accomplish what I needed. Alec On Sat, Apr 23, 2011 at 4:35 PM, Clint Checketts checke...@gmail.com wrote: I recall reading an article once noting

Re: Can html file name be different from page class name?

2011-04-23 Thread hariharansrc
wicket is component oriented framework it is the ease that we can write java class for html file and thus we can apply software engineering principles. what is the problem for just naming java class and the html file the same name can you tell the reason why you want to do that? -- View this