Re: Multi-module applications in Wicket

2009-02-02 Thread Thomas Mäder
What you call modules really sounds like different web applications (in the java servlet sense). Is there a reason you cannot have multiple WARs? Thomas On Sun, Feb 1, 2009 at 2:09 PM, Daniel Lipski daniel.lipski...@gmail.comwrote: Hi Im working on web application divided into multiple

Re: What are the consequences on sharing panels between pages?

2009-02-02 Thread Thomas Mäder
Doesn't that sound like session state? Thomas On Sun, Feb 1, 2009 at 7:09 PM, Per Newgro per.new...@gmx.ch wrote: Hi Uwe, until now i can do everything :-). All my experiments with ldm failed so far. I have to store the states. But in DB? It's heavyweight for me. Maybe i should try a

Re: Graphs, Charts and Wicket

2009-02-02 Thread Maarten Bosteels
Also have a look at http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html Maarten On Thu, Jan 29, 2009 at 2:45 PM, newbieabc newbie...@yahoo.com wrote: If you don't mind, could you post your code to display the chart you used? I was interested the gradient fill chart they offered,

Re: Pageable tree?

2009-02-02 Thread Zhubin Salehi
I have a rootless tree with a large number of nodes on the first level. I only want to make a first level pageable. Zhubin Matej Knopp-2 wrote: The whole purpose of tree is to structure your data in way that doesn't need paging. I never really got the concept of pageable tree. How do you

Bug? RenderedDynamicImageResource.render only called once?

2009-02-02 Thread Brill Pappin
Ok, I've tracked down the problem, but don't know how to resolve it (I've been playing with it a bit). the render method is only being called once per session despite the cache==false (RenderedDynamicImageResource. render(Graphics2D) This doesn't jive with what I understand for the

Re: CSS Arrangement Order

2009-02-02 Thread TH Lim
I tried writing it on the HTML file and using HeaderContributors. Somehow the CSS file that I included in my HTML or .java file is always place 1st followed by the libraries / components CSS. Michael Sparer wrote: I'd say just write in in there ;-) Other possiblities are the use of

mssql connection problem

2009-02-02 Thread Ashis
Hello all, i have problem regarding mssql connection /*Code Snippet for MSSQL connection***/ public static Connection getSqlConnection() throws SQLException { try { Context c = new InitialContext(); DataSource dataSource = (DataSource)

capture ModalWindow data in Parent page

2009-02-02 Thread wicketworker
Hi, Could someone please guide me with the below situatuation. I have a parent page in which i have a hyper link, when i click that i am opening a Modalwindow in a new page. Is there an example to capture some form data from that modal window, and upon closing that modal window update the parent

Re: Bug? RenderedDynamicImageResource.render only called once?

2009-02-02 Thread Jonas
I think RenderedDynamicImageResource is for images that don't change during one jvm runtime. The displayed image is basically 'static'. If you want to change the contents of the image, extend DynamicImageResource directly instead of RenderedDynamicImageResource, that should do the trick. cheers,

Re: Pageable tree?

2009-02-02 Thread Zhubin Salehi
You mean put several trees in a listview or using a single tree and a single list view? I thought about breaking the original tree into several trees and put them in a listview, but I don't know how to use a single listview and a single tree. Zhubin igor.vaynberg wrote: so use two

Re: passing values to own exception pages

2009-02-02 Thread Igor Vaynberg
on requestcycle.onruntimeexception you can redirect to your error page passing in the exception. -igor On Mon, Feb 2, 2009 at 9:03 AM, Steve Swinsburg s.swinsb...@lancaster.ac.uk wrote: Hi all, I have specified some pages that I would like rendered in place of the Wicket exception pages, in

Re: What are the consequences on sharing panels between pages?

2009-02-02 Thread Matej Knopp
Don't use loadabledetachablemodel for this. Forget Wicket model implementations. Just look at the IModel interface. It has 3 methods, each of them simple to implement and you get most control of where the object is pulled from and where it is stored. -Matej On Sun, Feb 1, 2009 at 7:09 PM, Per

Re: Contributing to Wicket - Client side form validation

2009-02-02 Thread jWeekend
Jeremy, Thanks. If the problem can no longer be replicated (OK here now but I haven't checked if Carl is still experiencing this) I assume that the parent POMs are in good shape. Regards - Cemal http://www.jWeekend.co.uk jWeekend Jeremy Thomerson-5 wrote: Cemal, I didn't have much

Re: passing values to own exception pages

2009-02-02 Thread Steve Swinsburg
thanks igor. does that work for the other types of errors like SessionExpired etc? Not sure if I need to capture that one yet though, but I will need to redirect with a page ref (url). cheers, Steve On 2 Feb 2009, at 17:05, Igor Vaynberg wrote: on requestcycle.onruntimeexception you

Re: passing values to own exception pages

2009-02-02 Thread Igor Vaynberg
no, for page expired error there is no exception it goes straight to the page -igor On Mon, Feb 2, 2009 at 9:13 AM, Steve Swinsburg s.swinsb...@lancaster.ac.uk wrote: thanks igor. does that work for the other types of errors like SessionExpired etc? Not sure if I need to capture that one yet

Re: set mountPath for BookmarkablePageLink

2009-02-02 Thread jWeekend
Sean, I was looking into this with one of our students last week and also had a quick chat with Igor about it. You cannot specify which one of your multiple mount paths a BookmarkablePageLink to your page will render . Regards - Cemal http://www.jWeekend.co.uk jWeekend Sean Brookes wrote:

Re: London Wicket Event - 4th February @ Google

2009-02-02 Thread jWeekend
With around 47 names registered (41 with confirmed attendance so far) for our http://jweekend.com/dev/LWUGReg/ London Wicket Event on Wednesday evening, we have only a few places left. I can confirm that we are definitely going ahead despite the problems the snow is causing. The airports

RE: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread jWeekend
We've been using: xmlns:wicket=http://svn.apache.org/repos/asf/wicket/trunk/wicket/wicket-xhtml1-strict.dtd;. Regards - Cemal http://www.jWeekend.co.uk jWeekend whoover wrote: ?xml version=1.0 encoding=UTF-8? html xmlns=http://www.w3.org/1999/xhtml;

How to change BookmarkablePageLink Model?

2009-02-02 Thread Major Péter
Hi all, In my project, i would like to change the link for an image in different pages, where the image is in the header (which is in the base class of pages). The code snippet i tried: //This is my base class for the other pages public class PageTemplate extends WebPage { ... //The base

Re: Multi-module applications in Wicket

2009-02-02 Thread Daniel Lipski
Thanks for your help. I havnt tried this yet becaouse this involves some refactoring and I wanted to be sure that I'll choose correct solution. Daniel Stoch-2 wrote: No, I don't say you need OSGi container, but in more complex environments it may be helpful. Of course you can, as you

What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread Kent Larsson
Hi, If I have some HTML with Wicket attributes in it: html head titleNew User Registration/title /head body strongEven Newer User Registration Form/strong br/br/ span wicket:id=messagemessage will be here/span /body /html I get Undefined attribute

Re: What are the consequences on sharing panels between pages?

2009-02-02 Thread Matej Knopp
Either there or in your session's subclass constructor. -Matej On Mon, Feb 2, 2009 at 7:25 PM, Per Newgro per.new...@gmx.ch wrote: Thanks Thomas and Matej, storing state in session sounds natural in your explanations. It comes into my mind, that i could initiate the instance in

Re: How to change BookmarkablePageLink Model?

2009-02-02 Thread jWeekend
Peter, Create a Panel or Fragment that takes the page you want to link to in its constructor (or returns it in an abstract getPageToLinkTo() method). This will contain your BPL (you can still embed your static img tag in the associated html) and you can set the whole Panel/Fragment to be

Re: Google Adsense.

2009-02-02 Thread Nino Martinez
I have no problems neither with 1.3.x or 1.4.x ... So it might be your page that has incorrect syntax.. You could try both the css syntax checker and the html validator from w3c. If you do that in conjunction with browsershots.org and a couple of different browsers you can get a clear picture

Re: better ways to worjk with java script

2009-02-02 Thread Nino Martinez
This is really where you have to decide, what are your needs. Theres frameworks for every kind of obscure need.. Some are already integrated with wicket so that might be a plus for those but you really have to decide on a case by case basis.. And it theres no integration for wicket already it

Re: new bee jqery or dojo

2009-02-02 Thread Jeremy Thomerson
You might start with some helpful information like what you plan to use it for. On Mon, Feb 2, 2009 at 11:06 AM, miro miroconn...@yahoo.com wrote: I am a new bee to java script and don't know which one to choose dojo or jquery or something else , to get started Please advice me, my

Java EE 6 Platform Draft- Web Profile?

2009-02-02 Thread Hoover, William
Seems like a little wicketization should be in order: http://www.infoq.com/news/2009/01/java-ee6-draft - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

passing values to own exception pages

2009-02-02 Thread Steve Swinsburg
Hi all, I have specified some pages that I would like rendered in place of the Wicket exception pages, in deployment mode, like so: /* if Session expires, show this error instead */ getApplicationSettings ().setPageExpiredErrorPage(SessionExpiredPage.class); /* if internal

Re: How to personalise HTML content with Wicket ?

2009-02-02 Thread Ernesto Reinaldo Barreiro
Hi Stefan, All wanted to stress is the fact that there are very few cases where you will want to generate the HTML by hand... Then what would be the point in using Wicket? And in this particular case I personally would prefer to use panels... Best, Ernesto On Mon, Feb 2, 2009 at 12:18 PM,

Re: new bee jqery or dojo

2009-02-02 Thread miro
Everytime I need java script I search in Google and more often we see them behaving differently with different browsers, rather i would like to use one of the java script framework which is easy to learn and more effective like write less code etc fully functional ? I heard about dojo ,

RE: new bee jqery or dojo

2009-02-02 Thread Stefan Lindner
In my experience jquery is more rubust and the interference with other javascript frameworks is no problem. Scriptacolous for example modifys the javascript basic behavior and tends to cause problems for other frameworks. -Ursprüngliche Nachricht- Von: miro

Re: AjaxFallbackDefaultDataTable and AjaxLink

2009-02-02 Thread Mathias P.W Nilsson
Why should it be strange to edit properties for let's say a user in a modal window? -- View this message in context: http://www.nabble.com/AjaxFallbackDefaultDataTable-and-AjaxLink-tp21687636p21797485.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread James Carman
You could start by declaring the wicket namespace: http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html On Mon, Feb 2, 2009 at 7:33 AM, Kent Larsson kent.lars...@gmail.com wrote: Hi, If I have some HTML with Wicket attributes in it: html head titleNew User Registration/title

Re: mssql connection problem

2009-02-02 Thread Dipu
this is how my code looks /** * Grab Update SQL Connection * * @return * @throws NamingException * @throws SQLException * @throws SQLException */ public Connection getConnection() throws NamingException, SQLException {

RE: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread Hoover, William
?xml version=1.0 encoding=UTF-8? html xmlns=http://www.w3.org/1999/xhtml; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:wicket=http://wicket.apache.org; xsi:schemaLocation=http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd http://wicket.apache.org;

Re: new bee jqery or dojo

2009-02-02 Thread Frank Klein Koerkamp
I would use jquery. With jQuery is good in accessibility(progressive enhanchment), performance and has a good plugin framework. And because the community is very large, there is plugin for each problem. They also working very hard to get 2.0 look and feel. And very easy to integrate with wicket

Re: capture ModalWindow data in Parent page

2009-02-02 Thread Daan van Etten
Sure! You can for example use an abstract method to post the data back to the parent. A complete example is here: http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup - Daan Op 2 feb 2009, om 16:53 heeft wicketworker het volgende geschreven: Hi, Could

Re: Multi-module applications in Wicket

2009-02-02 Thread Antoine Angenieux
I've had your exact use case a few month ago. I did just what you propose : One War and multiple filter mappings pointing to a different Wicket Application in the same web.xml. Works like a charm ! You still get a separate session for each application, but reuse the same underneath layers...

Re: ModalWindow gotcha!

2009-02-02 Thread Daan van Etten
Op 1 feb 2009, om 21:51 heeft Timo Rantalaiho het volgende geschreven: On Sun, 18 Jan 2009, Phillip Rhodes wrote: Declaring the ModalWindow from a panel did not work. The ModalWindow would appear, but the ModalWindow contents (a panel) would be rendered within the parent panel after the

Re: Servlet container authentication in Wicket

2009-02-02 Thread Philipp Daumke
Hi all, just as a last reminder (before the article is archived;-), is there anybody who yould provide me with an example how to user Servlect container authentication in Wicket? I followed the example in http://cwiki.apache.org/WICKET/servlet-container-authentication.html but I get the

Re: How to personalise HTML content with Wicket ?

2009-02-02 Thread Ernesto Reinaldo Barreiro
For this case why not have table/table in a panel (or fragment) and use it instead of generating the string by hand? IMHO that would be much more clear and consistent with wicket way of doing things... Best Ernesto On Mon, Feb 2, 2009 at 11:47 AM, Stefan Lindner lind...@visionet.de

Re: Multi-module applications in Wicket

2009-02-02 Thread Daniel Lipski
Do I really need OSGi container ?(OSGi is great idea, but I would like to keep this simple) Why I cant just map WicketFilter multiple times ? I would like to stay with one war deployed on Tomcat container. Daniel Stoch-2 wrote: Maybe you should look at OSGi? Then each of your application

Re: What are the consequences on sharing panels between pages?

2009-02-02 Thread Thomas Mäder
Well, Wicket has a Session Object. You can create your own subclass and store stuff in there (WebApplication.newSession(...). If you want to share state between pages, it's a natural place to put the state. One question you can ask yourself is: how many instances of that panel would I have? If the

RE: How to personalise HTML content with Wicket ?

2009-02-02 Thread Stefan Lindner
Several Ways to to this. The easiest way for your example HTML: H2span wicket:id=content/H2/ In Java ModelString contentModel = new ModelString(); add(new Label(content, contentModel)); if (user=='admin'= contenModel.setObject(Admin part); else if (user == 'anonymous')

RE: How to personalise HTML content with Wicket ?

2009-02-02 Thread cmoulliard
Thks. Can I also use Model to define HTML section containing regular HTML with wicket id ? table tdtrtrtr/td td wicket id= Additional question : in this case, where content is define dynamically, which java class will trigger the wicket tags ? Stefan Lindner wrote: Several Ways to

Re: Multi-module applications in Wicket

2009-02-02 Thread Daniel Stoch
Maybe you should look at OSGi? Then each of your application can be defined inside a different bundle and runs on the same JVM. We are using such approach in our environment and it works very well. A small downside of such solution is that you have to learn what is it and how to use OSGi (unless

Re: Multi-module applications in Wicket

2009-02-02 Thread Daniel Lipski
yes, they use the same service layer and the same caches. Whats more its easier to deploy build one war insted of many. Does your question suggests that there are problems with few Wicket filters in one webapp ? Thomas Mäder wrote: What you call modules really sounds like different web

Re: CSS Arrangement Order

2009-02-02 Thread Michael Sparer
I'd say just write in in there ;-) Other possiblities are the use of HeaderContributors (see class HeaderContributor) also have a look at http://techblog.molindo.at/2008/08/wicket-interface-speed-up-merging-resources-for-fewer-http-requests.html which might interest you if a lot of your

AW: How to personalise HTML content with Wicket ?

2009-02-02 Thread Stefan Lindner
Of course! And: why not use wicket's Loop for generating each tr and nested Loop for building each td etc. The Examples were just a starting point for doing simple things like few text labels spread around the page. -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro

How to personalise HTML content with Wicket ?

2009-02-02 Thread cmoulliard
Hi, I would like to know how we can personalize the content with Wicket ? With framework like Struts, ... it is possible in a JSP page to display different HTML contents (let's say personalize content) according to conditions (e.g. profile user, ...). if (user == 'admin') H2Admin partH2/ if

Re: Servlet container authentication in Wicket

2009-02-02 Thread James Carman
j_security_check is part of the Servlet Specification section SRV.12.5.3.1 Login Form Notes (at least for version 2.5). It did exist in earlier versions but I've only quoted the latest. On Sun, Feb 1, 2009 at 5:03 PM, Philipp Daumke dau...@averbis.de wrote: Hi all, I followed the Servlet

AW: How to personalise HTML content with Wicket ?

2009-02-02 Thread Stefan Lindner
My answer was not ment ironically. I understand what you mean I too prefer the Panel/Loop way. I just wanted to give a simple answer to a simple question of a wicket beginner. I think that Charles has a good starting point now for further wicket experiences. -Ursprüngliche Nachricht-

Re: Multi-module applications in Wicket

2009-02-02 Thread Daniel Stoch
No, I don't say you need OSGi container, but in more complex environments it may be helpful. Of course you can, as you wrote, map WicketFilter multiple times and this should work - why you didn't try this yet? :) -- Daniel On Mon, Feb 2, 2009 at 12:03 PM, Daniel Lipski daniel.lipski...@gmail.com

Re: Pageable tree?

2009-02-02 Thread Igor Vaynberg
no, use the listview to only list your roots. when you click on one it refreshes the tree to the right with that root. -igor On Mon, Feb 2, 2009 at 7:59 AM, Zhubin Salehi zhooz...@yahoo.com wrote: You mean put several trees in a listview or using a single tree and a single list view? I

Re: What are the consequences on sharing panels between pages?

2009-02-02 Thread Newgro
Hi Thomas, can you please explain this a bit. What do you mean by session state. How can i use session state in my context? Cheers Per -- View this message in context: http://www.nabble.com/What-are-the-consequences-on-sharing-panels-between-pages--tp21772949p21787239.html Sent from the

Re: What are the consequences on sharing panels between pages?

2009-02-02 Thread Matej Knopp
Sharing wicket components between page is a very bad idea. You are about to open large can of very nasty worms. Just don't do it. Proper way is to externalize the navigation state from your component and store it in session. Write couple of detachable models that do that. -Matej On Sun, Feb 1,

RE: How to personalise HTML content with Wicket ?

2009-02-02 Thread Stefan Lindner
Yes, you just have to tell the e.g. Label component not to escapte the model's content (label.setExcapteModelStrings(false)) Then the model's string is inserted into the HTML output without any further processing. You always need a html tag with wicket:id to trigger the output. HTML div

Re: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread Piller Sébastien
Hi, add the xmlns:wicket definition in html: html xmlns:wicket ... this works fine for me Kent Larsson a écrit : Hi, If I have some HTML with Wicket attributes in it: html head titleNew User Registration/title /head body strongEven Newer User Registration

Re: What are the consequences on sharing panels between pages?

2009-02-02 Thread Per Newgro
Thanks Thomas and Matej, storing state in session sounds natural in your explanations. It comes into my mind, that i could initiate the instance in Application.newSession(). Is this the right place for this task? The the navigational panel could extract an initialized model instance from the

Re: Pageable tree?

2009-02-02 Thread Igor Vaynberg
so use two components [listview][tree] where listview lets you select roots and refreshes the tree with the selected root. -igor On Mon, Feb 2, 2009 at 7:04 AM, Zhubin Salehi zhooz...@yahoo.com wrote: I have a rootless tree with a large number of nodes on the first level. I only want to

Re: Wicket-Jasper report

2009-02-02 Thread freak182
Hello, This is the updated version of wicket-jasper-core-1.3.0. download: http://www.nabble.com/file/p21788601/wicket-jasper-core.tgz wicket-jasper-core.tgz freak182 wrote: Hello, I made a small utility based on wicket-contrib-jasper. The feature of this tools is that the jasper

Re: How to personalise HTML content with Wicket ?

2009-02-02 Thread Ernesto Reinaldo Barreiro
Wicket has very powerful means to do skinning... See http://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html for a start... Besides that you could do all kind of tricks working with panels and component visibility: depending on conditions show one (hide one/replace with

Component doesn't disappear when removing it via an ajax link

2009-02-02 Thread Azzeddine Daddah
Hi, I've two text fields wrapped in a container. What I want to do is to let the user remove these fields via a link. This is my code which does not work. The wrapper container stills appear even the link is submitted: html xmlns:wicket wicket:panel div wicket:id=container input

Re: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread Timo Rantalaiho
On Mon, 02 Feb 2009, jWeekend wrote: We've been using: xmlns:wicket=http://svn.apache.org/repos/asf/wicket/trunk/wicket/wicket-xhtml1-strict.dtd;. Nowadays there's also http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd

Re: AjaxFallbackDefaultDataTable and AjaxLink

2009-02-02 Thread Timo Rantalaiho
On Mon, 02 Feb 2009, Mathias P.W Nilsson wrote: Why should it be strange to edit properties for let's say a user in a modal window? Not strange from Wicket point of view but from user interface design point of view: http://en.wikipedia.org/wiki/Modal_window#Criticisms Best wishes, Timo --

Re: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread James Carman
I don't know that I'd point your xmlns at the Apache Subversion server. Can't you just use the URL mentioned in the wiki? On Mon, Feb 2, 2009 at 10:55 PM, Timo Rantalaiho timo.rantala...@ri.fi wrote: On Mon, 02 Feb 2009, jWeekend wrote: We've been using:

Re: Component doesn't disappear when removing it via an ajax link

2009-02-02 Thread Martin Makundi
Run Wicket in development mode and investigate what happens in the Wicket Ajax Debug dialog (right bottom corner of your browser). ** Martin 2009/2/3 Azzeddine Daddah waarhei...@gmail.com: Hi, I've two text fields wrapped in a container. What I want to do is to let the user remove these

RE: Component doesn't disappear when removing it via an ajax link

2009-02-02 Thread Jeremy Thomerson
A couple of problems: 1 - don't remove it. You should make it invisible (setVisible(false)) 2 - you're trying to remove the container from the link, but it was added to the panel. You would have to call IngredientPanel.this.remove (but don't) Jeremy Thomerson http://www.wickettraining.com --

Re: Google Maps / GMap2?

2009-02-02 Thread Martin Funk
Hi Fabrizio, basically this still holds true: http://www.nabble.com/where-is-wicket-contrib-gmap3-1.3.4-td20063260.html#a20064098 mf 2009/2/2 Fabrizio Giudici fabrizio.giud...@tidalwave.it I need to integrate Google Maps in my Wicket application. I searched in the Wiki and found GMap2 - but

Re: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread Kent Larsson
On Tue, Feb 3, 2009 at 4:55 AM, Timo Rantalaiho timo.rantala...@ri.fiwrote: Nowadays there's also http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd Best wishes, Timo But those two are exactly the same (same size