Re: table columns ajax update

2009-10-05 Thread vineet semwal
Pedro, eagerly waiting for next version ;) thank you , -- regards, Vineet Semwal On Mon, Oct 5, 2009 at 4:25 AM, Pedro Santos pedros...@gmail.com wrote: Hi Semwal, it has capability to update some columns. I update HomePage on table-example to show how it can be done now. But it makes no

server push

2009-10-05 Thread Md. Jahid Shohel
Hi, We need server push for one of our web application. Is there something that you can suggest? The requirement is, it should work on any server (Tomcat, jetty, jboss,). is there any wicket component that does this? I have heard about wicketstuff-push, but i also heard that it only works

Re: server push

2009-10-05 Thread Jan Kriesten
Hi Jahid, We need server push for one of our web application. Is there something that you can suggest? The requirement is, it should work on any server (Tomcat, jetty, jboss,). is there any wicket component that does this? as far as I know there isn't any standard yet which works on any

Re: server push

2009-10-05 Thread Martin Grigorov
Take a look at http://atmosphere.dev.java.net/ Its goal is what you are looking for. P.S. Maybe we already discussed this with you in ##wicket. El lun, 05-10-2009 a las 09:08 +0200, Md. Jahid Shohel escribió: Hi, We need server push for one of our web application. Is there something that

Re: Start a panel, border, or page with an XML declaration?

2009-10-05 Thread Phil Housley
2009/10/4 David Chang david_q_zh...@yahoo.com: Phil, Thanks very much for your reply. By XML declaration, you mean something like: ?xml version=1.0 encoding=UTF-8 ? Correct? I found this piece and it may be interesting to all: That's right.

Re: [tinymce] problem adding/removing TinyMceBehavior dinamically

2009-10-05 Thread bgooren
I'll show you some parts of my code so you get an idea of how I do things. First of all, I have used AjaxEditableLabel from wicket-extensions as a starting point. TinyMCE's javascripts should always be loaded: // Preload TinyMCE add( new AbstractBehavior() {

Re: [tinymce] problem adding/removing TinyMceBehavior dinamically

2009-10-05 Thread Daniele Dellafiore
Hey Bas, thanks for answering. Unfortunately it does not work. Even if I run: String removeEditor = tinyMCE.execCommand('mceRemoveControl', false, ' + propertyPanel.getValueMarkupId() + ');; target.appendJavascript(removeEditor); or simply

wicket default locale

2009-10-05 Thread Gatos
Hello, How to set a default locale for the application? It works for me, but I guess it should be more common: @Override public Session newSession(Request request, Response response) { Session session = super.newSession(request, response); session.setLocale(new Locale(et)); return

Re: Wicket + Hibernate without Spring for lazy loading

2009-10-05 Thread Adrian Merrall
Google for a wicket london weekend presentation and follow up blog on loading jpa entity managers on demand. There have also been various posts relating to using the open session in view Hibernate filter. The JPA blog entry uses the requestcycle to prepare a thread local. The first call to use

Re: wicket default locale

2009-10-05 Thread Matthias Keller
Hi The default implementation pulls the used locale from the servlet request (meaning the requested locale by the browser). If you want to override that, we do it exactly as you do it. Matt Gatos wrote: Hello, How to set a default locale for the application? It works for me, but I guess

Re: wicket default locale

2009-10-05 Thread Adrian Merrall
I think the more common method is to override newSession in your application class to return your own session (that extends WebSession) and then in your own session class override getLocale(). Very happy to be corrected though. HTH, Adrian On Mon, Oct 5, 2009 at 10:59 PM, Gatos

SV: Move shared wicket components to a base page?

2009-10-05 Thread Wilhelmsen Tor Iver
WicketMessage: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). This indicates to me you are not using wicket:child / in the parent's markup and/or not

Re: wicket default locale

2009-10-05 Thread Matthias Keller
Hi Adrian You could do that but what he wants is to set a default locale, not a fixed-forever locale. When you set it in newSession, you get exactly that - a default locale which might get changed any time by the application. Matt Adrian Merrall wrote: I think the more common method is to

Nav bar - stateful

2009-10-05 Thread Phillip Sacre
Hi Another newbie question, sorry! Is there any way of making a nav bar like this: wicket:link a href=HomePage.htmlBrowse/a | a href=Search.htmlSearch/a /wicket:link Stateful, i.e. only one instance of each page is created. So if you were on the home page and clicked the

Re: Pagemap locked

2009-10-05 Thread Martijn Dashorst
The thread that keeps the lock is TP-Processor17, so check the request log for that thread after the time of the thread dump. Martijn On Sun, Oct 4, 2009 at 6:05 AM, Douglas Ferguson doug...@douglasferguson.us wrote: I am getting seeing the following stack, but I'm not sure what the client is

WebSession Casting unable

2009-10-05 Thread Peter Arnulf Lustig
Hi, why can't I cast a Websession to a SecurePageSession-Class which extends Websession?! java.lang.ClassCastException: org.apache.wicket.protocol.http.WebSession cannot be cast to org.omikron.test.SecurePageSession In the book I bought (Wicket in Praxis, a german book for wicket 1.4) the

Re: Nav bar - stateful

2009-10-05 Thread Pedro Santos
You can keep page instances on session. On Mon, Oct 5, 2009 at 7:57 AM, Phillip Sacre psa...@clifford-thames.comwrote: Hi Another newbie question, sorry! Is there any way of making a nav bar like this: wicket:link a href=HomePage.htmlBrowse/a | a href=Search.htmlSearch/a

Re: WebSession Casting unable

2009-10-05 Thread Pieter Degraeuwe
Not each Websession is a SecurePageSession. (but each SecurePageSession IS a WebSession) So, it means that you probably are dealing with a normal WebSession. Is your Application creating the correct Session instance (override the newSession()) On Mon, Oct 5, 2009 at 1:19 PM, Peter Arnulf

Re: SV: Move shared wicket components to a base page?

2009-10-05 Thread David Chang
Tor, you are right. I found a coding error in my program. Yes, this whole thing is doable. Wicket is great! Thanks! --- On Mon, 10/5/09, Wilhelmsen Tor Iver toriv...@arrive.no wrote: From: Wilhelmsen Tor Iver toriv...@arrive.no Subject: SV: Move shared wicket components to a base page? To:

Re: Start a panel, border, or page with an XML declaration?

2009-10-05 Thread David Chang
Thanks for sharing your thought and trick with me! The wicket user community is so helpful and friendly. Cheers! --- On Mon, 10/5/09, Phil Housley undeconstruc...@gmail.com wrote: From: Phil Housley undeconstruc...@gmail.com Subject: Re: Start a panel, border, or page with an XML

AW: WebSession Casting unable

2009-10-05 Thread Peter Arnulf Lustig
I have overwritten the newSession Method: public class Application extends WebApplication { @Override protected void init() { super.init(); getSecuritySettings().setAuthorizationStrategy(new AdministratorLoginSimplePageAuthStrategy(LoginPage.class)); }

AW: WebSession Casting unable

2009-10-05 Thread Peter Arnulf Lustig
ah sorry I got it: @Override public org.apache.wicket.Session newSession(Request request, Response response) { return new SecurePageSession(request); } Thank you. I had the auto-fixed solution from netbeans :) - Ursprüngliche Mail Von: Pieter Degraeuwe

Re: WebSession Casting unable

2009-10-05 Thread Pedro Santos
your implementation needs to return an instance of SecurePageSession On Mon, Oct 5, 2009 at 8:43 AM, Peter Arnulf Lustig u...@yahoo.dewrote: I have overwritten the newSession Method: public class Application extends WebApplication { @Override protected void init() {

AW: WebSession Casting unable

2009-10-05 Thread Peter Arnulf Lustig
yeah you are right. Thank you for your help. - Ursprüngliche Mail Von: Pedro Santos pedros...@gmail.com An: users@wicket.apache.org Gesendet: Montag, den 5. Oktober 2009, 13:50:32 Uhr Betreff: Re: WebSession Casting unable your implementation needs to return an instance of

Re: Nav bar - stateful

2009-10-05 Thread Wilhelmsen Tor Iver
Is there any way of making a nav bar like this: wicket:link a href=HomePage.htmlBrowse/a | a href=Search.htmlSearch/a /wicket:link Stateful, i.e. only one instance of each page is created. So if you were on the home page and clicked the 'Search' link, then clicked the

Re: How to list files by name in Eclipe's Package Explorer?

2009-10-05 Thread David Chang
Does anybody know the trick for this task? Thanks! --- On Sun, 10/4/09, David Chang david_q_zh...@yahoo.com wrote: From: David Chang david_q_zh...@yahoo.com Subject: How to list files by name in Eclipe's Package Explorer? To: users@wicket.apache.org Date: Sunday, October 4, 2009, 4:44 PM

Re: How to store/load strings shared by many (but not all) pages?

2009-10-05 Thread Robin Sander
Wicket uses a chain of resolvers, by default these are: (see Settings class) ComponentStringResourceLoader, PackageStringResourceLoader, ClassStringResourceLoader and ValidatorStringResourceLoader. So besides the component specific resource you may define respources per package (e.g.

Re: SV: Move shared wicket components to a base page?

2009-10-05 Thread Martijn Dashorst
On Mon, Oct 5, 2009 at 1:36 PM, David Chang david_q_zh...@yahoo.com wrote: Wicket is great! Now you're just preaching to the choir... :) Martijn - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: How to store/load strings shared by many (but not all) pages?

2009-10-05 Thread Pedro Sena
I was thinking about this yesterday... This is a very common scenario, specially for i18n messages related to exceptions. Thanks for the info =) On Mon, Oct 5, 2009 at 9:52 AM, Robin Sander robin.san...@gmx.net wrote: Wicket uses a chain of resolvers, by default these are: (see Settings

Re: ProgressBar demo doesn't work for firefox 3.5.3

2009-10-05 Thread Reinout van Schouwen
Op vrijdag 02-10-2009 om 18:58 uur [tijdzone +0300], schreef Altuğ B. Altıntaş: You are right; it doesn't work properly. I am using swfupload tool. it is flash and it works great. Only if you are willing to put up with requiring a buggy and proprietary browser plugin for functionality that

Send file to client via Ajax

2009-10-05 Thread Giambalvo, Christian
Hi all, simple question :) how to send a dynamicly generated file (as byte array) through an ajaxfallbackbutton tot he client? Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile

Re: Send file to client via Ajax

2009-10-05 Thread Martin Grigorov
why do you want to use AjaxFallbackButton ? you will not re-paint part of the page use ResourceLink to download the file El lun, 05-10-2009 a las 15:36 +0200, Giambalvo, Christian escribió: Hi all, simple question :) how to send a dynamicly generated file (as byte array) through an

AW: Send file to client via Ajax

2009-10-05 Thread Giambalvo, Christian
It's more general question. Maybe i need to repaint some parts and send a file. Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile +49 176 196 32 406 Office +49 711 6 20 30 406

Re: Send file to client via Ajax

2009-10-05 Thread Ernesto Reinaldo Barreiro
Maybe you could repaint via AJAX and then use target.appendJavascript(window.location.href=´URL´); Where the URL is the URL of an ILinkListener generating you file... There was someone asking something similar not long ago. Best, Ernesto On Mon, Oct 5, 2009 at 4:10 PM, Giambalvo, Christian

Re: How to list files by name in Eclipe's Package Explorer?

2009-10-05 Thread T Ames
Your question should be Is it possible to? I have not found a way. I have gotten used to it. On Mon, Oct 5, 2009 at 8:48 AM, David Chang david_q_zh...@yahoo.com wrote: Does anybody know the trick for this task? Thanks! --- On Sun, 10/4/09, David Chang david_q_zh...@yahoo.com wrote:

Re: How to list files by name in Eclipe's Package Explorer?

2009-10-05 Thread Pedro Sena
Package explorer? At least here, Ctrl+Shift+R using wildcard (*) have replaced the Package Explorer Tab =) Regards, On Mon, Oct 5, 2009 at 11:26 AM, T Ames tamesw...@gmail.com wrote: Your question should be Is it possible to? I have not found a way. I have gotten used to it. On

wicket forum api

2009-10-05 Thread Eman Nollase
Hello, Is there a wicket base forum API? thanks a lot. cheers.

RE: Wicket + Hibernate without Spring for lazy loading

2009-10-05 Thread Jeffrey Schneller
I looked into the wicket London presentation/code and databinder.net and it all makes sense but it looks like then my wicket forms/components are tied directly to the database. When I submit a form then the data is persisted but I don't want this. I want to be able to call the data layer to

Re: How to list files by name in Eclipe's Package Explorer?

2009-10-05 Thread David Chang
Pedro, thanks for the tip! Cheers! --- On Mon, 10/5/09, Pedro Sena sena.pe...@gmail.com wrote: From: Pedro Sena sena.pe...@gmail.com Subject: Re: How to list files by name in Eclipe's Package Explorer? To: David Chang david_q_zh...@yahoo.com Date: Monday, October 5, 2009, 10:52 AM Hmmm.

AW: Send file to client via Ajax

2009-10-05 Thread Giambalvo, Christian
Could you give me an example? Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile +49 176 196 32 406 Office +49 711 6 20 30 406 christian.giamba...@excelsisnet.com www.excelsisnet.com

Re: urls with localization

2009-10-05 Thread ivilis vytautas.civi...@gmail.com
Question regarding your code in wiki page: RequestDecorator, this seems to be class in your package? Could it be posted too? Regards, Vytautas Alex Objelean wrote: I've created a draft version of the page in wiki: http://cwiki.apache.org/confluence/display/WICKET/Wicket+and+localized+URLs

Re: Wicket + Hibernate without Spring for lazy loading

2009-10-05 Thread James Perry
Well you can use your business logic objects inside Wicket but you have to ensure that you you hold one, and only one, instance for each business object (assuming these objects are stateless) and that you do not accidentally serialize these objects and their dependencies within your Wicket pages.

Re: urls with localization

2009-10-05 Thread ivilis vytautas.civi...@gmail.com
My guess it's just simple delegateable class? Vytautas Vytautas C wrote: Question regarding your code in wiki page: RequestDecorator, this seems to be class in your package? Could it be posted too? Regards, Vytautas Alex Objelean wrote: I've created a draft version of the page in

Re: urls with localization

2009-10-05 Thread ivilis vytautas.civi...@gmail.com
Thanks again, works perfectly. Vytautas Vytautas C wrote: My guess it's just simple delegateable class? Vytautas Vytautas C wrote: Question regarding your code in wiki page: RequestDecorator, this seems to be class in your package? Could it be posted too? Regards, Vytautas Alex

AW: Send file to client via Ajax

2009-10-05 Thread Giambalvo, Christian
How do i get the url for the ILinkListener? There is no corresponding urlFor() method. Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile +49 176 196 32 406 Office +49 711 6 20 30

Re: How to list files by name in Eclipe's Package Explorer?

2009-10-05 Thread Ramakrishnan Srinivasan
Would it work for you to just use the Navigator view instead of Package Explorer? On Mon, Oct 5, 2009 at 11:01 AM, David Chang david_q_zh...@yahoo.comwrote: Pedro, thanks for the tip! Cheers! --- On Mon, 10/5/09, Pedro Sena sena.pe...@gmail.com wrote: From: Pedro Sena

Re: How to list files by name in Eclipe's Package Explorer?

2009-10-05 Thread David Chang
Thanks for your input! It seems to does the trick. The only thing I don't like is that it shows all the levels of directories, which is unnecessary and makes the Navigator view quite wide. --- On Mon, 10/5/09, Ramakrishnan Srinivasan devfac...@gmail.com wrote: From: Ramakrishnan Srinivasan

Re: urls with localization

2009-10-05 Thread Alex Objelean
It is indeed a simple decorator of the Request object... nothing special.. Alex Objelean Vytautas C(ivilis wrote: Question regarding your code in wiki page: RequestDecorator, this seems to be class in your package? Could it be posted too? Regards, Vytautas Alex Objelean wrote:

Re: wicket forum api

2009-10-05 Thread nino martinez wael
Cant remember if one ever got kicked off, otherwise I've intregrate with jforum in the past.. 2009/10/5 Eman Nollase eman.noll...@gmail.com Hello, Is there a wicket base forum API? thanks a lot. cheers.

Re: wicket forum api

2009-10-05 Thread Jeremy Thomerson
I don't think one was ever created. There is Brix [1], a CMS, which could be used. [1] - http://code.google.com/p/brix-cms/ -- Jeremy Thomerson http://www.wickettraining.com On Mon, Oct 5, 2009 at 12:56 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Cant remember if one ever

Re: Send file to client via Ajax

2009-10-05 Thread Ernesto Reinaldo Barreiro
Hi, I was trying to build and Example at work but I had to live... I'll try to get it working tomorrow and post it here. Essentially I was trying something similar to this. http://cwiki.apache.org/WICKET/displaying-content-eg-pdf-excel-word-in-an-iframe.html I was trying to have a component in a

Re: table columns ajax update

2009-10-05 Thread Pedro Santos
I just commit the new version: - Refactoring the OrderingImage class - Using TableColumns and default renders per class to resolve the cell component creation - Remove the static cell model version - Css separation for selectableListView, since this class can to be used for direferent purposes

Generics and SortableDataProvider

2009-10-05 Thread Jonny.Wray
Hi, Working on my first application using 1.4.x and generics and have a question regarding the use of SortableDataProvider. Within my extensions of this class I quite commonly obtain the id of an object within the iterator method and then load the object via a LoadableDetchableModel within the

Re: wicket forum api

2009-10-05 Thread Fernando Wermus
Nino, Have you published an example integration with JForum? cheers On Mon, Oct 5, 2009 at 2:56 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Cant remember if one ever got kicked off, otherwise I've intregrate with jforum in the past.. 2009/10/5 Eman Nollase

Re: wicket forum api

2009-10-05 Thread nino martinez wael
No not really, just modified some code(to be used in wicket) to push a session cookie towards jforum for singlesignon.. If needed I could digg it up.. 2009/10/5 Fernando Wermus fernando.wer...@gmail.com Nino, Have you published an example integration with JForum? cheers On Mon, Oct 5,

Re: Generics and SortableDataProvider

2009-10-05 Thread Sven Meier
Hi John, I believe the consensus on this list is that you should change your approach: Why don't you just iterate over your domain objects in the first place? They will be loaded anyway to be displayed on your component. So your approach triggers 1+n selects instead of 1 select for all

Re: Wicket + Hibernate without Spring for lazy loading

2009-10-05 Thread nino martinez wael
Guice / warp persist and dynamic finders + wicket are a killer combo:) 2009/10/5 James Perry james.austin.pe...@gmail.com Well you can use your business logic objects inside Wicket but you have to ensure that you you hold one, and only one, instance for each business object (assuming these

how to map 2 html files to 1 class?

2009-10-05 Thread Alex Rass
Hi. Spent hours now trying to figure out how to map 2 html files to 1 class. If someone knows the answer - please help. I need to map 10 similar html pages to same class (for same behavior). Doing this: webApplication.mountBookmarkablePage(/page1.html, pageClass); Gets wicket to associate set

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Martin Makundi
Hi! I did not exactly understand what you are after, but you can always do like this: CommonPage.html: blabla ... CommonPage.java: public class CommonPage extends WebPage { public CommonPage() { if (A-mode) { new PageVersionAContantHandler(this); } else { new

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Martin Makundi
Meant to say if (A-mode) { new PageVersionAContantHandler(this); } else { new PageVersionBContantHandler(this); // B ofcourse } ** Martin 2009/10/6 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! I did not exactly understand what you are after, but you can always do like this:

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Martin Makundi
It's too late :) Apparently you wanted just the opposite. Well.. you could have: PageA.html: PageB.html: PageC.html: Page?.java: public class CommonPage extends WebPage { public CommonPage() { new PageContantHandler(this); } } ** Martin 2009/10/6 Martin Makundi

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Martin Makundi
And ofcourse you could have polymorphism. AbstractPageWithDesiredCommonFunctionality.java with all your common logic, Page1Design extends AbstractPageWithDesiredCommonFunctionality Page2Design extends AbstractPageWithDesiredCommonFunctionality : : : Page-n-Design extends

RE: how to map 2 html files to 1 class?

2009-10-05 Thread Alex Rass
Yeah, that's what I had before. (Many fake classes that do nothing but extend default one). But I have multiple sites. With lots of pages. I don't want to have 200 classes that serve no purpose! (I already have 30 like that for my first couple sites :) was hoping to stop this silly practice) (hold

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Scott Swank
Have you considered using variant or style? http://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html Scott On Mon, Oct 5, 2009 at 2:35 PM, Alex Rass a...@itbsllc.com wrote: Yeah, that's what I had before. (Many fake classes that do nothing but extend default one). But I

RE: how to map 2 html files to 1 class?

2009-10-05 Thread Alex Rass
I don't see how this applies. Please note that ResourceStreamLocator does not see the original url's path. And Page uses a cacheKey which is solely based on the class name. Maybe you can elaborate, but all 3 html files are TOTALLY UNRELATED PAGES. It's not the same page 3 times for diff skins.

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Scott Swank
But if all three html files are associated with the same Java class, how does this differ from separate skins? Is the distinction semantic, or am I missing something? Scott On Mon, Oct 5, 2009 at 2:44 PM, Alex Rass a...@itbsllc.com wrote: I don't see how this applies. Please note that

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Martin Makundi
PageHandler.java, that handles all 3. mountBookmarkablePage(/PageA.html, PageHandler.class); mountBookmarkablePage(/PageB.html, PageHandler.class); mountBookmarkablePage(/PageC.html, PageHandler.class); This is a bit confusing, you ar giving different aliases to the same page. Is that what

Wicket + Guice + Warp-persist + Hibernate

2009-10-05 Thread Jeffrey Schneller
So I took the plunge and tried to implement Guice + Warp Persist to solve my lazy loading issues. I know I may not have it all figured out with regards to lazy loading but I can't even get simple data access to work now. Sorry for all the questions and issues. Can anyone provide some insight on

RE: how to map 2 html files to 1 class?

2009-10-05 Thread Alex Rass
PageA.html PageB.html PageC.html Think about it this way: PageA.html = Privacy Page PageB.html = SiteMap Page. I want to handle them both in same java class file cause hardly anything is going on there. -Original Message- From: Martin Makundi

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Martin Makundi
What are you handling there ? ** Martin 2009/10/6 Alex Rass a...@itbsllc.com: PageA.html PageB.html PageC.html Think about it this way: PageA.html  = Privacy Page PageB.html = SiteMap Page. I want to handle them both in same java class file cause hardly anything is going on there.

RE: how to map 2 html files to 1 class?

2009-10-05 Thread Alex Rass
Scott, Maybe I am not clear on how localization works, but what you are proposing would work only if I needed ONE of the html files to be available at one time/session to same user. What I want is: 3 html files. Called up via 3 distinct predefined urls. All handled by 1 class. As far as I can

RE: how to map 2 html files to 1 class?

2009-10-05 Thread Alex Rass
Standardizing footers across the site. So I will have a dozen pages which are bare content + footer from a common file/db. I don't want to have THAT many useless classes. If I do - wicket is a failure. -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com]

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Jeremy Thomerson
Do you use page inheritance? The header / footer / common navbars should go in a common parent class. Then your child classes have only the content that is unique to that class. -- Jeremy Thomerson http://www.wickettraining.com On Mon, Oct 5, 2009 at 5:36 PM, Alex Rass a...@itbsllc.com

RE: how to map 2 html files to 1 class?

2009-10-05 Thread Alex Rass
Please read the posts in full. GOAL: to not have 200 classes that do NOTHING but inherit from parent class and are empty inside. -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Monday, October 05, 2009 6:38 PM To: users@wicket.apache.org Subject: Re:

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Martin Makundi
Maybe you're doing the wrong thing with wicket.. it's not for serving static content. But yes, at least you should be able to take the html file name as parameter to a bookmarkable page somehow and work from there? www.domain.com/PageHandler/intro.html/show or

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Phil Housley
2009/10/5 Alex Rass a...@itbsllc.com: Standardizing footers across the site. So I will have a dozen pages which are bare content + footer from a common file/db. I don't want to have THAT many useless classes.  If I do - wicket is a failure. It sounds as though you don't actually want to use

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Martin Makundi
But yes, at least you should be able to take the html file name as parameter to a bookmarkable page somehow and work from there? www.domain.com/PageHandler/intro.html/show or www.domain.com/PageHandler/show/intro.html And then override this: public MarkupStream

Issue with URL for

2009-10-05 Thread Douglas Ferguson
I'm using final String loginUrl = RequestUtils.toAbsolutePath(urlFor(PAGE_CLASS.class, null).toString()); It generates this link, without my domain. http://PageClass/urlKey/urlValue/etc/etc/

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Scott Swank
Alternately, I'm unsure why variation wouldn't work for you, something like: public EmptyPage(String pageVariation) { this.pageVariation = pageVariation; } @Override public String getVariation() { return pageVariation; } Then you could have html classes such as: BasePage_home.html

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Jeremy Thomerson
Yes - this sounds like a good idea. I believe you could also call setVariation(parameters.get(0 or type, etc)) in your constructor and use the parameter to determine which HTML file is rendered. -- Jeremy Thomerson http://www.wickettraining.com On Mon, Oct 5, 2009 at 5:44 PM, Phil Housley

ImageDropDownChoice?

2009-10-05 Thread Phil Grimm
Hey Folks, Anyone know of a solid ImageDropDownChoice component? I've seen others ask about this in old posts, but nothing definitive. Using google, I found this open source Wicket app that implemented an ImageDropDownChoice: http://xoosent.xoocode.org/demo/app/show/ Looks like it doesn't work

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Scott Swank
I don't see a Component#setVariation() method, but then we're still on 1.3.5. On Mon, Oct 5, 2009 at 4:06 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Yes - this sounds like a good idea.  I believe you could also call setVariation(parameters.get(0 or type, etc)) in your constructor and

Re: Issue with URL for

2009-10-05 Thread Douglas Ferguson
Ok.. I just realized that the issue is when the link is generated on a page with Params. i.e. http://www.mysite.com/Page/Parm1/Value 1 but is works fine if you have http://www.mysite.com/Page On Oct 5, 2009, at 5:52 PM, Douglas Ferguson wrote: I'm using final String loginUrl =

Re: Issue with URL for

2009-10-05 Thread Douglas Ferguson
Ok.. This is really odd. This urlFor(PAGE_CLASS.class, null).toString( is spitting out ../../MyPage If I have query params. Then RequestUtils.toAbsolutePath() decides to managle it further. On Oct 5, 2009, at 6:26 PM, Douglas Ferguson wrote: Ok.. I just realized that the issue is when

Processing dynamic text

2009-10-05 Thread David Leangen
Wicketeers, If I have a Label that contains some text I want to process, what is the best way to do that? - Should I even be using a label? - Should I override Label's onComponentTag or something? - Is there a better way? The key is that I don't know the content in advance, so

Re: Generics and SortableDataProvider

2009-10-05 Thread jwray
Hi Sven, Thanks for your reply. Since I sent the original question I ended up doing what you suggested and now I'm wondering why I ever used the id projection approach. Habit I guess, formed with previous frameworks. Just to make sure I've got this right, as long as I use a DetachableModel as