Re: Ajax response not completed

2008-12-16 Thread Emanuele Gesuato

Nino Saturnino Martinez Vazquez Wael wrote:
Beats me, seems like somethings wrong,maybe a bug..? I'd create a 
quickstart (really easy with maven,  
http://wicket.apache.org/quickstart.html ) and attach it to a jira issue..


If the code are somewhat working, and the only annoying thing are the 
mouse icon you could try to set the mouse icon manually..




Is it normal that the ajax response never get completed ? It remains in 
the Invoking pre-call handler(s); this is why the mouse remains in 
waiting state.


However, i've tried wicket 1.3.5 and problem remains.

I'm not very skilled with javascript but it seems that wicket has its 
own function to change the mouse pointer. How could i call them ? using 
AjaxRequestTarget.appendJavascript() ?


Thanks,
Emanuele




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Palette, AbstractOptions and localizer

2008-12-16 Thread sven


Hi,

is there a reason why AbstractOptions (Palette) uses id and value for 
localization of options?

  value = getLocalizer().getString(id + . + value, this, value);

This requires me to duplicate parts of the keys in my property file. If I'm 
using a ChoiceRenderer(name, name) for a hypothetical class B it looks like:
  Bar.A.Bar.A = Aaaa
  Bar.B.Bar.B = Bbbb
  Bar.C.Bar.C = Cccc

Could we align AbstractOptions with how AbstractChoice works, localizing the 
displayValue only without the id?

  display = getLocalizer().getString(displayValue, this, displayValue);

Thanks

Sven



Re: Wicket, FOP, Markup Inheritance and Markup Type

2008-12-16 Thread Paolo Di Tommaso
Adrian, is not a strange question, I've implemented it and works very well.

And in some use cases is a perfect choice.

In my implementation I use  a FopPage that declares page#getmarkuptype() {
return fop}

The nice thing is that all panel added in that page will look for an
associated markup will a suffix .fop (instead of .html).

This means that you can have a panel implementing a common business logic
with two skins, one html and one fop.

When used in html page it will use the HTML panel and when added in the FOP
page will produce the FOP markup.


Paolo







On Mon, Dec 15, 2008 at 11:14 PM, Adrian Wiesmann awiesm...@somap.orgwrote:

 Hello everybody

 A quick question out of curiosity. Has anybody played around or tried to
 generate XSL-FO from within your Wicket project?

 What I mean is this:

 - Add an XML file to every HTML file.
 - Tell Wicket to use the XML instead of the HTML file for the markup.
 - Have Wicket do the markup inheritance magic and rendering of a FO file
 (instead of plain HTML).
 - Use the resulting FO to render PDF with Apache FOP.
 - Present the PDF file instead the HTML to the client.

 Anyone did so? Anyone played with Wicket and did so in a Swing application
 (instead the web environment)?

 I know, these questions may sound strange, but I am currently thinking
 about the possibilities of Wicket's markup inheritance and if it is
 possible (and makes sense) to use Wicket as a reports generator. Not what
 it is intended to do, but just pretend everything makes sense. :)

 Thanks for your comments.

 Cheers,
 Adrian

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: wicket:border is adding table

2008-12-16 Thread Thorsten Scherler
El lun, 15-12-2008 a las 06:40 -0800, jWeekend escribió:
 Thorsten,
 
 Yes, that's exactly how BoxBorder draws the box/border. You'd probably
 prefer to use CSS.

Can you, please, extend a wee bit?

As I understand the border component: you can inject child content INTO
a template page. The wicket:body/ is the injection hook which get
replaced by the child content.

Like:
div wicket:id=myBorder
 !-- Border markup --
 span wicket:id=myContentcontent/span
 !-- Border markup --
/div

A panel does not allow a body meaning you can inject a panel into your
page but not inject your page into a panel.

div wicket:id=myPanel
 !-- Panel markup --
/div

So what I am looking for is a Border component that does not do any extra 
markup rendering. 

You say use css, I do not understand what you mean.

salu2

 
 Regards - Cemal
 http://www.jWeekend.co.uk jWeekend 
 
 
 
 Thorsten Scherler-3 wrote:
  
  Hi all,
  
  I am playing around with wicket and have a question.
  
  http://wicket.apache.org/examplenavomatic.html
  
  is the page I am following to develop a custom application.
  
  in my html I have
  wicket:border
   div id=content
 
 Navigation Links
 wicket:link
  ulli someThing.html test /ul
 /wicket:link


 wicket:body/

   /div
   Footer Info
  /wicket:border
  
  and in my java class I have:
  
  public class NavomaticBorder extends Border {
public NavomaticBorder(final String componentName) {
  super(componentName);
  add(HeaderContributor.forCss(css/default.css));
  add(new BoxBorder(navigationBorder));
  add(new BoxBorder(bodyBorder));
  add(new Footer(footer));
}
  }
  
  However in my resulting page I have a tabled rendered within.  is rendered
  normal and after this it is
  rendered within a table:
  
   table width = 0% border = 0 cellspacing = 0 cellpadding = 1
  bgcolor = black
tr
 td width = 100% valign = top
  table width = 100% border = 0 cellspacing = 0 cellpadding = 4
  bgcolor = white
   tr
td width = 100%
 Navigation Links
  ...
  
  I suspect that it may be because of new BoxBorder but I am not sure.
  
  Basically my question is: how to tell wicked to NOT render the table?
  
  TIA for any hints
  
  salu2
  
  
  -- 
  Thorsten Scherler thorsten.at.apache.org
  Open Source Java consulting, training and solutions
  
  Sociedad Andaluza para el Desarrollo de la Sociedad 
  de la Información, S.A.U. (SADESI)
  
  
  
  
  
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
 
-- 
Thorsten Scherler thorsten.at.apache.org
Open Source Java consulting, training and solutions

Sociedad Andaluza para el Desarrollo de la Sociedad 
de la Información, S.A.U. (SADESI)





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to donate to Wicket Project

2008-12-16 Thread Johan Compagner
really?

if somebody wants by bankaccount to put some large sum of money on it that
also would be more then welcome ;)

johan

On Mon, Dec 15, 2008 at 19:19, Eelco Hillenius eelco.hillen...@gmail.comwrote:

 As for the Wicket team, nothing is more welcome than being part of the
 community and contributing patches and on the mailing list etc.

 Cheers,

 Eelco

 On Sat, Dec 13, 2008 at 3:47 PM, Ayodeji Aladejebi aladej...@gmail.com
 wrote:
  Thank you..I think the book is the way to go. I will probably buy it for
 all
  all the java developers in my office
  Maybe i should order like 10 copies
 
  Hmm..sounds good
 
  thanks
 
  On Sat, Dec 13, 2008 at 2:16 PM, James Carman
  jcar...@carmanconsulting.comwrote:
 
  Of course, the ASF would always love donations:
 
  http://www.apache.org/foundation/contributing.html
 
  Also, you can buy from the Wicket store and part of the proceeds will
  help the ASF (I believe that's how it's set up):
 
  http://www.cafepress.com/apachewicket
 
  The coffee mug is very nice and I also have the golf shirt!  Wish I
  had a chance to play golf.
 
  On Sat, Dec 13, 2008 at 8:23 AM, Bruno Borges bruno.bor...@gmail.com
  wrote:
   I don't think the project would accept money that way. If you really
  wanna
   do that, just buy the book Wicket in Action and Eelco and Martijn will
 be
   more than happy. =D
  
   But, the best way to really contribute to the project is
   - submitting bugs
   - fixing them
   - helping writing documentation
   - spreading the word (blogging)
  
   =) Good luck with that! And thanks for showing us your willing to
   contribute.
  
   Best regards,
   Bruno Borges
   blog.brunoborges.com.br
   +55 21 76727099
  
   The glory of great men should always be
   measured by the means they have used to
   acquire it.
   - Francois de La Rochefoucauld
  
  
   On Sat, Dec 13, 2008 at 8:14 AM, Ayodeji Aladejebi 
 aladej...@gmail.com
  wrote:
  
   Hi,
   I am really grateful for the Wicket Project and really feel like
 buying
   beer
   for the wicket team but when i checked sponsorship under the Wicket
  Site,
  
   it saw too much information except paying methods
  
   I don't use PayPal as I am not transferring money from US or europe,
 i
   rather require an international Wire transfer account.
  
   Thank you for the Wicket Project
  
  
   --
   Aladejebi Ayodeji A.,
   DabarObjects Solutions
   Phone: +234 9 481 7 156
   Mobile: +234 803 589 1780
   Email: d...@dabarobjects.com
   Web: www.dabarobjects.com
   Blog: blog.dabarobjects.com
  
   Participate, Collaborate, Innovate
   Join Community:
   http://www.cowblock.net/
  
   Get A Free Blog:
   http://blogs.cowblock.net/
  
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  Aladejebi Ayodeji A.,
  DabarObjects Solutions
  Phone: +234 9 481 7 156
  Mobile: +234 803 589 1780
  Email: d...@dabarobjects.com
  Web: www.dabarobjects.com
  Blog: blog.dabarobjects.com
 
  Participate, Collaborate, Innovate
  Join Community:
  http://www.cowblock.net/
 
  Get A Free Blog:
  http://blogs.cowblock.net/
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: [OT] wicket users around the world

2008-12-16 Thread Sergey Didenko
Kiev, Ukraine. Just studying wicket yet.


Re: wickethub.org

2008-12-16 Thread Maarten Bosteels
On Mon, Dec 15, 2008 at 10:43 PM, Jonathan Locke
jonathan.lo...@gmail.comwrote:



 oh yeah, there's a post where we started figuring out some details about
 how
 this would work somewhere on this list


Here it is :
http://www.nabble.com/idea:-automatic-component-repo-to17979177.html

Maarten




 Jonathan Locke wrote:
 
 
  this is cool, although i still think this should be auto-updated through
 a
  maven registry crawler. if everyone put the right meta information in
  their wicket jars, this resource registry would be entirely automatic,
  always fresh, running demos, etc...
 
 
  francisco treacy-2 wrote:
 
  i came up with an idea during the last weeks, having some trouble
  finding wicket resources.
 
  although we have wicketstuff (which is great, and even more now with
  jeremy's awesome job of reorganizing it)  i feel there are still lots
  of components, plugins or tools that are lost in cyberspace. thought
  it would be neat to keep a sort of registry with useful information
  for wicket developers.
 
  so i decided to quickly put some bits together from an old project and
  rebaptised it as the wicket hub - a simple prototype @
  http://wickethub.org.
  it's meant to be flexible, so except for the title there are no
  required fields when you add/edit a module. there are already some
  examples.
 
  let me know what you think about features, its relation with
  wicketstuff and if it's usable, etc. or even if the whole thing makes
  no sense - any suggestions appreciated.
 
  francisco
 
  ps: goes without saying, but [disclaimer: it's completely
  experimental] and be aware the place it's hosted is more like a
  shoebox than a server :)
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/wickethub.org-tp20995774p21022750.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: File Chooser dialog needed

2008-12-16 Thread 123shyam

Thanks for the response.

I have a similar requirement for upload tooo. I want to make a Browse
button, which accepts folder locations, and uploads all the files in that
location. uploading the data from the file is fine... i can handle
but how to create a button, which accepts folder locations of both client
system and server system
?


Jeremy Thomerson-5 wrote:
 
 You simply can't do this in web apps.  You don't choose where to write
 something to - you don't have access to write anything to the user's
 computer.  All you can do is give the user a file to download, and the
 browser will automatically ask them for what folder they want to save it
 to.  For this, search Nabble or Google for DownloadLink.
 
 Give the user a link (DownloadLink) to a file.  They click it.  The
 browser
 opens your dialog for you.
 
 
 -- 
 Jeremy Thomerson
 http://www.wickettraining.com
 
 On Fri, Nov 7, 2008 at 11:48 AM, Shyam Narayanan 
 shyam_naraya...@mindtree.com wrote:
 
 Thanks for your reply.

 My main aim of this task is to download an item into the directory user
 selects.

 So need to open a file dialog to help user choose a directory and then
 from
 it get the path user chose, so as to proceed with my
 download.

 So as you can imagine for this, i have a browse kindoff button for user
 to
 chose a directory and as it closes, need to display the path selected in
 a
 text field.
 The button as well as textfield stand on a wicket page. Just the action
 of
 opening a file browser is what i want.

 I am very new to wicket. Could you pls explain more on what i would have
 to
 do to open such a dialog nd then get the path selected ?

 A code example would be appreciated.

 Thanks
 
 From: Jeremy Thomerson [jer...@wickettraining.com]
 Sent: Friday, November 07, 2008 9:01 PM
 To: users@wicket.apache.org; shyam.naraya...@gmail.com
 Subject: Re: File Chooser dialog needed

 Swing classes are not in the same heirarchy as Wicket's and the two are
 not
 made to work together.  What you need is to add an input type=file
 
 / and a FileUpload (Wicket class).  However, you can't have a user just
 select a directory from their browser - this is a limitation of web apps.
 Besides, what could you possibly do with that directory path once you had
 it?  You don't have access to their local computer

 Depending on what you're doing, if you really had to do something with a
 directory, you may have to horror-music-starts use an applet
 /horror-music.
 Hope this helps.


 --
 Jeremy Thomerson
 http://www.wickettraining.com

 On Fri, Nov 7, 2008 at 5:04 AM, 123shyam shyam.naraya...@gmail.com
 wrote:

 
  Hello,
 
  I am working on wicket. I need to open a filechooser dialog or a file
 open
  =
  dialog (like we have in JFileChooser).
 
  I am currently unable to implement it from my wicket page. All I want
 is
 a
  =
  file chooser dialog showing only directories , user chooses nd I get
 back
  t=
  he path selected.
 
  I tried to call a JFielChosser (sinwg) thorught wicket but there seems
 to
  b=
  e some problem, the dialog cmes in a different location first time and
 in
  t=
  he center of the 2nd time onwards, I guess the modality is wrong. The
  JFile=
  Chooser needs a Component object type as its parent. But I am unable to
  pas=
  s it from thewicket class. It cannot be cast to a Component or Window.
  Kindly help me out on this.
 
  Thanks,
  Shyam
  --
  View this message in context:
 
 http://www.nabble.com/File-Chooser-dialog-needed-tp20378500p20378500.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

 This message (including attachment if any) is confidential and may be
 privileged. If you have received this message by mistake please notify
 the
 sender by return e-mail and delete this message from your system. Any
 unauthorized use or dissemination of this message in whole or in part is
 strictly prohibited. E-mail may contain viruses. Before opening
 attachments
 please check them for viruses and defects. While MindTree Limited
 (MindTree)
 has put in place checks to minimize the risks, MindTree will not be
 responsible for any viruses or defects or any forwarded attachments
 emanating either from within MindTree or outside.

 Please note that e-mails are susceptible to change and MindTree shall not
 be liable for any improper, untimely or incomplete transmission.

 MindTree reserves the right to monitor and review the content of all
 messages sent to or from MindTree e-mail address. Messages sent to or
 from
 this e-mail address may be stored on the MindTree e-mail system or else
 where.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, 

Re: CheckGroupSelector not working at all in a Wizard

2008-12-16 Thread Timo Rantalaiho
On Fri, 05 Dec 2008, jchappelle wrote:
 I have followed the example exactly(from what I can see) and when I click my
 Select All button nothing happens to the other buttons. Here is the code:

I've never used CheckGroupSelector, but as you have your 
CheckBoxes inside a ListView, you should probably call
setReuseItemModels(true) (or something like that) for the 
ListView.

Best wishes,
Timo


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OT] wicket users around the world

2008-12-16 Thread Tsutomu Yano
Tokyo/Japan

Now I'm developing applications with Wicket.

and am writing a book about Wicket in japanese lang.


On 2008/12/12, at 3:57, francisco treacy wrote:

 to know a little bit more of our great (and vast) community, i was
 just wondering if you're keen on sharing where you come from and/or
 where you work with wicket...

 for instance, here argentinian/belgian working with wicket in antibes, france

 francisco

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


---
Tsutomu YANO
benbrand at mac dot com


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket: Testing Request URLs

2008-12-16 Thread walnutmon

One thing I am trying to implement in my most recent wicket application is a
hook in from another site written in JSP.   I'm starting simple, with a
hand-off URL that gives a few peices of information that allows the user to
be logged into the wicket app based on crednetials that had them logged into
the jsp app.

I want to write test cases like follows.

@Test
public void testLogInUrl()
{
   String loginURL = http://somplace.com/wicket/login/?stuff=otherstuff;;
   goToUrl(loginUrl);
   assertRenderedPage(UserPage.class);
   assertLabel(name, someGuysName);
}

Anyone have any idea how to approach this?
-- 
View this message in context: 
http://www.nabble.com/Wicket%3A-Testing-Request-URLs-tp21035024p21035024.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Creating dynamic forms and sumbit problem

2008-12-16 Thread Timo Rantalaiho
On Sat, 06 Dec 2008, mage wrote:
   questionsList = new ListView(survey, new PropertyModel(this,
 survey.questions))

Try questionsList.setReuseItemModels(true);

For more help, you should put your code in an executable 
quickstart. From the email it's too difficult to investigate
it better.

Best wishes,
Timo



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



ERROR: Error while parsing response: Could not find root ajax-response element

2008-12-16 Thread Martin Makundi
Hi!

Critical bug https://issues.apache.org/jira/browse/WICKET-1916

Anybody know what's causing the problem? I attached a quickstart for
repeating the bug.

**
Martin

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OT] wicket users around the world

2008-12-16 Thread Toshihiro Shimizu
Tokyo/Japan

I'm using Wicket for our current project
and looking forward to Japanese Wicket book by Tutomu Yano.

2008/12/17 Tsutomu Yano benbr...@mac.com:
 Tokyo/Japan

 Now I'm developing applications with Wicket.

 and am writing a book about Wicket in japanese lang.


 On 2008/12/12, at 3:57, francisco treacy wrote:

 to know a little bit more of our great (and vast) community, i was
 just wondering if you're keen on sharing where you come from and/or
 where you work with wicket...

 for instance, here argentinian/belgian working with wicket in antibes, france

 francisco

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 ---
 Tsutomu YANO
 benbrand at mac dot com


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Javascript call to wicket

2008-12-16 Thread itayh

Hi Erik,

I used your solution and it works great for ff, while ie seem to have
problems with it. Have you run it also in ie?

Thanks,
  Itay



Erik van Oosten wrote:
 
 I just finished an experiment with something like that. Its still ugly
 and very static, but here is my code.
 
 In the HTML header the function you can call from Flash:
 function(someValue) {
 var inputEl = document.getElementById('anchor8');
 inputEl.value = someValue;
 eval(inputEl.getAttribute('onclick'));
 }
 
 Somewhere in the page:
 form wicket:id=ajaxForm style=display: none;input
 wicket:id=myField type=hidden value=//form
 
 Note that 'anchor8', the Wicket generated id of the input element, still
 needs te be made dynamic. Not sure how yet.
 
 
 The code:
 Form form = new Form(ajaxForm);
 add(form);
 final HiddenField myField = new HiddenField(myField, new
 Model(), String.class);
 form.add(myField);
 myField.add(new AjaxFormSubmitBehavior(onclick) {
 @Override
 protected void onError(AjaxRequestTarget target) {
 throw new RuntimeException(foutje);  // not sure what
 to do here
 }
 
 @Override
 protected void onSubmit(AjaxRequestTarget target) {
 String myValue = (String) myField.getConvertedInput();
 processAjaxRequest(target, myValue);
 }
 });
 
 Improvements are very welcome.
 
 Regards,
 Erik.
 
 
 
 Sébastien Piller wrote:
 Hello guys,

 I've a little question about the javascript and wicket. I need to
 update some models on server side using javascript (in fact, I need to
 update it from a flash object, and that's why I use js).

 But I have no idea about how to do this... I know how to call a JS
 function from flash, but I don't know how to update a wicket model
 using a javascript/ajax call.

 Has anybody some hint about that?

 Thanks you

 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Javascript-call-to-wicket-tp14685384p21035640.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Why am I getting this error?

2008-12-16 Thread dbuttery

Nope.  removeAll is never used. 


Martin Makundi wrote:
 
 Do you ever call listview.removeAll ?
 
 2008/12/15 dbuttery dennis.butt...@connectedenergy.com:

 Hi all,

   I have a ListView in which each repeater row has a button to launch a
 ModalWindow.  I actually do this multiple times in my application so I
 know
 that it does work.

   I just added a new screen that does the same thing and it works fine
 the
 first time that the ModalWindow is launched.  -BUT- after that any click
 on
 a link gives me the error shown below...

   Anyone have a clue as to why this is showing up?

 Thanks in advance for any help you can provide!
 -Dennis

 ~~

 WicketMessage: component reportsTableWMC:reportListView:1:runrpt not
 found
 on page net.bplg.enerview.reports.ReportsConsole[id = 0], listener
 interface
 = [RequestListenerInterface name=IBehaviorListener, method=public
 abstract
 void org.apache.wicket.behavior.IBehaviorListener.onRequest()]Root
 cause:org.apache.wicket.WicketRuntimeException: component
 reportsTableWMC:reportListView:1:runrpt not found on page
 net.bplg.enerview.reports.ReportsConsole[id = 0], listener interface =
 [RequestListenerInterface name=IBehaviorListener, method=public abstract
 void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at
 org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:419)
 at
 org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:464)
 at
 org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246) at
 org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366) at
 org.apache.wicket.RequestCycle.request(RequestCycle.java:498) at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
 at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
 at
 org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
 at
 org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at
 org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67)
 at
 org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at
 org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
 at
 org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at
 org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
 at
 org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at
 org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
 at
 org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at
 org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:277)
 at
 org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at
 org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
 at
 org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at
 org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
 at
 org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at
 

Re: Overriding Text No Records Found

2008-12-16 Thread Adriano dos Santos Fernandes

HITECH79 escreveu:

Hallo,

how can i override/modify the text No Records Found
If you are talking about the DataTable component, write a 
YourApplication.properties on the same package as YourApplication 
class, and put:

datatable.no-records-found=Nenhum registro encontrado


Adriano


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Why am I getting this error?

2008-12-16 Thread Martin Makundi
In my experience, if I cannot repeat the bug with a quickstart, the
bug is in my own code. Otherwise I could replace my own implementation
with the quickstart, and it would work.

**
Martin

2008/12/16 dbuttery dennis.butt...@connectedenergy.com:

 Nope - can't recreate it ...

 I also took one of my other listviews and had it open the errant modal
 window - works fine.
 I then had the errant listview open a different modal window - works fine.

 It seems that it is the specific combination of this one ListView component
 and its subordinate ModalWindow(s)

 I have gone over the code several times and it is exactly the same as the
 other ListView/ModalWindow usages in my app.   Could it be some sort of
 reserved word clash in either the markup or the java code?

 This particular ListView/ModalWindow deals with presenting a list of reports
 for a user to run and then provides a button on each row to allow report
 parameters to be set...   Simple enough, eh?

 -Dennis


 Martin Makundi wrote:

 Can you make a quickstart project that repeats the problem?

 **
 Martin

 2008/12/16 dbuttery dennis.butt...@connectedenergy.com:

 Nope.  removeAll is never used.


 Martin Makundi wrote:

 Do you ever call listview.removeAll ?

 2008/12/15 dbuttery dennis.butt...@connectedenergy.com:

 Hi all,

   I have a ListView in which each repeater row has a button to launch a
 ModalWindow.  I actually do this multiple times in my application so I
 know
 that it does work.

   I just added a new screen that does the same thing and it works fine
 the
 first time that the ModalWindow is launched.  -BUT- after that any
 click
 on
 a link gives me the error shown below...

   Anyone have a clue as to why this is showing up?

 Thanks in advance for any help you can provide!
 -Dennis

 ~~

 WicketMessage: component reportsTableWMC:reportListView:1:runrpt not
 found
 on page net.bplg.enerview.reports.ReportsConsole[id = 0], listener
 interface
 = [RequestListenerInterface name=IBehaviorListener, method=public
 abstract
 void org.apache.wicket.behavior.IBehaviorListener.onRequest()]Root
 cause:org.apache.wicket.WicketRuntimeException: component
 reportsTableWMC:reportListView:1:runrpt not found on page
 net.bplg.enerview.reports.ReportsConsole[id = 0], listener interface =
 [RequestListenerInterface name=IBehaviorListener, method=public
 abstract
 void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at
 org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:419)
 at
 org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:464)
 at
 org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246) at
 org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366) at
 org.apache.wicket.RequestCycle.request(RequestCycle.java:498) at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
 at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
 at
 org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
 at
 org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at
 org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67)
 at
 org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at
 org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
 at
 org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at
 org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
 at
 org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at
 org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
 

Re: Overriding Text No Records Found

2008-12-16 Thread Nino Saturnino Martinez Vazquez Wael

You can also do it on page level or component level..

regards

Adriano dos Santos Fernandes wrote:

HITECH79 escreveu:

Hallo,

how can i override/modify the text No Records Found
If you are talking about the DataTable component, write a 
YourApplication.properties on the same package as YourApplication 
class, and put:

datatable.no-records-found=Nenhum registro encontrado


Adriano


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: IDataProvider/LoadableDetachableModel for indexed lists

2008-12-16 Thread cretzel


igor.vaynberg wrote:
 
 class addressmodel extends ldm {
  private final int idx;
  private final imodel customer;
  public addressmodel(imodel customer, address address) {
this.customer=customer;
this.idx=customer.getaddresses().indexof(address);
   }
   ...
 

Nice. Thanks igor. 

Wouldn't you care about the performance of List.indexOf()? What about using
just the index as a parameter instead of the adress? That would imply a
different IDataProvider like this:

public AdressDataProvider(IModel customerModel) {
this.customerModel = customerModel;
}

public Iterator? iterator(final int first, final int count) {
return new IteratorInteger() {
private int i;

public boolean hasNext() {
return i  first + count;
}

public Integer next() {
return i++;
}

public void remove() {

}
};
}

public IModel model(final Object object) {
final Integer index = (Integer) object;
return new AdressModel(customerModel, index);
}

Although kind of weird, this way you would not have to determine the index
by calling indexOf().
What do you think?

By the way, is there a shorter way of getting an iterator over an Integer
range?

-- 
View this message in context: 
http://www.nabble.com/IDataProvider-LoadableDetachableModel-for-indexed-lists-tp21011916p21031001.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: CSS urls

2008-12-16 Thread Igor Vaynberg
in css image urls are relative to the css file. so if your css file is
in a java package and your images are nearby it should all work as
long as you serve css file through wicket - which will then cause all
your images to also be served through wicket.

-igor

On Tue, Dec 16, 2008 at 3:48 AM, Adriano dos Santos Fernandes
adrian...@uol.com.br wrote:
 Knowing about HeaderContributor.forCss, I didn't realized that the images
 urls would be correctly resolved.

 Thanks.

 Wicket is so cool. :-)


 Adriano


 Martijn Dashorst escreveu:

 See HeaderContributor.forCss()

 Martijn

 On Tue, Dec 16, 2008 at 10:51 AM, Adriano dos Santos Fernandes
 adrian...@uol.com.br wrote:


 No good/better way? The problem of using the web directory is that I
 can't
 do that with non-web utility projects in Eclipse and have the files being
 contributed to web projects.


 Adriano


 Adriano dos Santos Fernandes escreveu:


 Hi!

 What is the better way to handle CSS urls [background: url(...)], inside
 HTML style tags?

 As I see, wicket:link doesn't work, so I'm writing url(style.css) and
 putting style.css on the normal html directory. Obviously, this don't
 work
 if I mount pages with path different than /.


 Adriano


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org









 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Calling Javascript on AJAX load of panel.

2008-12-16 Thread Timo Rantalaiho
On Sun, 07 Dec 2008, Graeme Knight wrote:
 1) Is the header contributor added to the html (this is ajax so there is no
 page refresh).

I think so, just look at the page source e.g. with Firebug?

 2) How to call the function in IFrameLoader.js (initializeIFrame()) AFTER
 the iframe has rendered?

You mean after rendering it with Ajax? You can probably just 
put the call in HTML, if you want it executed on each render.
Or for just Ajax repaints, use AjaxRequestTarget.appendJavaScript().

 Perhaps the above is the wrong way to do the following:
 
 1) User clicks on tab.
 2) Panel is switched into text reading 'context'.
 3) IFrame is rendered, innerHTML of iframe is populated through the
 initializeIFrame() Javascript function (rendering originalContent).
 
 Does this sound plausible in Wicket?

Frankly I don't really get what you're trying to achieve.
Maybe you could use TabbedPanel or AjaxTabbedPanel?

Best wishes,
Timo


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: IDataProvider/LoadableDetachableModel for indexed lists

2008-12-16 Thread Igor Vaynberg
On Tue, Dec 16, 2008 at 2:57 AM, cretzel mailinglists...@gmail.com wrote:

 Wouldn't you care about the performance of List.indexOf()?

i certainly would if it showed up as a hotspot in the profiler.

-igor


 What about using
 just the index as a parameter instead of the adress? That would imply a
 different IDataProvider like this:

public AdressDataProvider(IModel customerModel) {
this.customerModel = customerModel;
}

public Iterator? iterator(final int first, final int count) {
return new IteratorInteger() {
private int i;

public boolean hasNext() {
return i  first + count;
}

public Integer next() {
return i++;
}

public void remove() {

}
};
}

public IModel model(final Object object) {
final Integer index = (Integer) object;
return new AdressModel(customerModel, index);
}

 Although kind of weird, this way you would not have to determine the index
 by calling indexOf().
 What do you think?

 By the way, is there a shorter way of getting an iterator over an Integer
 range?

 --
 View this message in context: 
 http://www.nabble.com/IDataProvider-LoadableDetachableModel-for-indexed-lists-tp21011916p21031001.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Why am I getting this error?

2008-12-16 Thread Martin Makundi
Can you make a quickstart project that repeats the problem?

**
Martin

2008/12/16 dbuttery dennis.butt...@connectedenergy.com:

 Nope.  removeAll is never used.


 Martin Makundi wrote:

 Do you ever call listview.removeAll ?

 2008/12/15 dbuttery dennis.butt...@connectedenergy.com:

 Hi all,

   I have a ListView in which each repeater row has a button to launch a
 ModalWindow.  I actually do this multiple times in my application so I
 know
 that it does work.

   I just added a new screen that does the same thing and it works fine
 the
 first time that the ModalWindow is launched.  -BUT- after that any click
 on
 a link gives me the error shown below...

   Anyone have a clue as to why this is showing up?

 Thanks in advance for any help you can provide!
 -Dennis

 ~~

 WicketMessage: component reportsTableWMC:reportListView:1:runrpt not
 found
 on page net.bplg.enerview.reports.ReportsConsole[id = 0], listener
 interface
 = [RequestListenerInterface name=IBehaviorListener, method=public
 abstract
 void org.apache.wicket.behavior.IBehaviorListener.onRequest()]Root
 cause:org.apache.wicket.WicketRuntimeException: component
 reportsTableWMC:reportListView:1:runrpt not found on page
 net.bplg.enerview.reports.ReportsConsole[id = 0], listener interface =
 [RequestListenerInterface name=IBehaviorListener, method=public abstract
 void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at
 org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:419)
 at
 org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:464)
 at
 org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246) at
 org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366) at
 org.apache.wicket.RequestCycle.request(RequestCycle.java:498) at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
 at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
 at
 org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
 at
 org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at
 org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67)
 at
 org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at
 org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
 at
 org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at
 org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
 at
 org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at
 org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
 at
 org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at
 org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:277)
 at
 org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at
 org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
 at
 org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
 at
 org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
 at
 

Re: Palette, AbstractOptions and localizer

2008-12-16 Thread Igor Vaynberg
yes, i think we can. i am not really sure why it works the way it does
right now. please create a jira issue. and, btw, this can only be
fixed in 1.4.

-igor

On Tue, Dec 16, 2008 at 12:15 AM,  s...@meiers.net wrote:


 Hi,

 is there a reason why AbstractOptions (Palette) uses id and value for 
 localization of options?

   value = getLocalizer().getString(id + . + value, this, value);

 This requires me to duplicate parts of the keys in my property file. If I'm 
 using a ChoiceRenderer(name, name) for a hypothetical class B it looks 
 like:
   Bar.A.Bar.A = Aaaa
   Bar.B.Bar.B = Bbbb
   Bar.C.Bar.C = Cccc

 Could we align AbstractOptions with how AbstractChoice works, localizing the 
 displayValue only without the id?

   display = getLocalizer().getString(displayValue, this, displayValue);

 Thanks

 Sven



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RadioGroup, differences between FireFox and Internet Explorer?

2008-12-16 Thread Swanthe Lindgren
I have this wierd behavior where a RadioGroup works perfectly well with 
FireFox but not with IE7. Both IE and FF fires the event and the server 
side event handler is executed in both cases, but with IE the model is 
not updated when I try to retrieve it in the 
AjaxFormChoiceComponentUpdatingBehaviour.onUpdate method.


Can anyone spot where I took a wrong turn?

//Swanthe

Page java code:

RadioGroupDepositType depositType = new 
RadioGroupDepositType(depositType, new 
PropertyModelDepositType(model.getObject(), depositType));


RadioDepositType wire = new RadioDepositType(wire, new 
ModelDepositType(DepositType.WIRETRANSFER));

wire.setOutputMarkupId(true).setMarkupId(wire);
depositType.add(wire);

RadioDepositType card = new RadioDepositType(card, new 
ModelDepositType(DepositType.OTHER));

card.setOutputMarkupId(true).setMarkupId(card);
depositType.add(card);

RadioDepositType cheque = new RadioDepositType(cheque, new 
ModelDepositType(DepositType.CHEQUE));

cheque.setOutputMarkupId(true).setMarkupId(cheque);
depositType.add(cheque);

depositType.add(new AjaxFormChoiceComponentUpdatingBehavior(){
 @Override
 protected void onUpdate(AjaxRequestTarget target) {
   DepositType depositType = model.getObject().getDepositType();
 }
});


Page html code:

div wicket:id=depositType
 div class=leftColumn 
   div class=contentRow style=border-bottom-style: dotted
 div class=contentRowText
   input wicket:id=wire class=radioButton type=radio/
   div style=float: left; margin-left: 16pxlabel 
for=wirewicket:message key=field.TypeWireDeposit by Wire 
Transfer/wicket:message/label/div

 /div
   /div
   div class=contentRow style=border-bottom-style: dotted
 div class=contentRowText
   input wicket:id=card class=radioButton type=radio/
   div style=float:left; margin-left: 16pxlabel 
for=cardwicket:message key=field.TypeCardDeposit by Debit or 
Credit Card/wicket:message/label/div

 /div
   /div
   div class=contentRow style=border: none
 div class=contentRowText
   input wicket:id=cheque class=radioButton type=radio/
   div style=float: left; margin-left: 16pxlabel 
for=chequewicket:message key=field.TypeChequeDeposit by 
Check/wicket:message/label/div

 /div
   /div
 /div
/div


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: setResponsePage + anchor

2008-12-16 Thread kan
Take a look on this:
http://cwiki.apache.org/WICKET/faqs.html#FAQs-Howtoadd%2523anchor%2528opaque%2529topageurl%253F

2008/12/16 Charlie Dobbie cfmdob...@gmail.com:
 Hi Janos,

 Thanks for your response.  That's an interesting solution to the problem!

 I have been digging through the setResponsePage etc code, trying to find a
 way to fit this into the framework directly, and have come up empty-handed.
 It would seem logical to me that there should be a way to specify either a
 String id or a Component directly inside the request target, but I can't see
 how to fit it in.

 It looks like your solution is the best available at the moment.

 Regards,
 Charlie.



 2008/12/4 Cserep Janos cser...@szeretgom.hu

 I'm doing it like this from my Page:

  @Override
public void renderHead(IHeaderResponse response) {

if (anchor != null) {

response.renderOnLoadJavascript(location.href='# + anchor +
 ';);
anchor = null;
}
}

 Just have a setter for the anchor property on the Page instance you
 pass to setResponsePage().

 janos


 On Thu, Dec 4, 2008 at 1:53 PM, Charlie Dobbie cfmdob...@gmail.com
 wrote:
  Hi,
 
  I know you can set an anchor when you are coming from a Link component,
 but
  how can I set an anchor without the Link?
 
  From a Button's onSubmit, I am calling setResponsePage with a Page
 instance,
  and have a reference to a component on that page that I would like the
  browser to jump directly to.  From my research so far, I don't believe
 this
  to be possible, but easily could have missed something!
 
  Is there a way to do this?
 
  Regards,
  Charlie.
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org






-- 
WBR, kan.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket-1055: How to implement new functionality

2008-12-16 Thread Igor Vaynberg
look at subversion commits tab for the issue, you will see changes
made for radiogroup/radio.

-igor

On Tue, Dec 16, 2008 at 2:11 AM, Marieke Vandamme ma...@tvh.be wrote:

 Hello,

 I was looking at the things that changed in 1.4rc1, and the following looked
 interesting to me:
 https://issues.apache.org/jira/browse/WICKET-1055
 = Add Radio to RadioGroup, but Radio doesn't need to be inside RadioGroup
 in the markup.

 The patch is suggesting that there will be a new function in RadioGroup,
 addRadio(Radio r), but it's not in the 1.4rc1 sources.
 I looked in the subversion
 (http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/)
 and the things that changed (with comment WICKET-1055) are Check and
 CheckGroupSelector. How does that affect the RadioGroup?

 Any help welcome! Thanks! Marieke.
 --
 View this message in context: 
 http://www.nabble.com/wicket-1055%3A-How-to-implement-new-functionality-tp21030374p21030374.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket:border is adding table

2008-12-16 Thread Thorsten Scherler
El mar, 16-12-2008 a las 03:31 -0800, jWeekend escribió:
 Thorsten,
 
 Wicket's Border component has associated markup so it may not be what it
 sounds like you're looking for.
 If all you need is a rectangular border drawn around some widgets, group
 them together (maybe in a div), give the grouping a class attribute and
 apply a CSS style, eg 
 
 .myGroupedWidgets {border: thin solid #ccc;}
 
 If you need more control/something more dynamic, you can map this grouping
 to a WebMarkupContainer and use an attribute modifier.
 
 Of course you could achieve the same effect with a Wicket Border component,
 but if all you're doing is wrapping your content in a div, you may not want
 the overhead of providing the associated markup file such a border would
 require. On the other hand, using a Border would enable you to wrap your
 content with much more interesting stuff than just a rectangle! 
 
 Does that make sense?

Yeah after writing my last mails I had a closer look again on
BoxBorder.java and finally saw the BoxBorder.html. 

I ended up creating a PlainBorder.java and PlainBorder.html that just
added my decorative. Step by step I getting the concept. ;)

thanks.

salu2
-- 
Thorsten Scherler thorsten.at.apache.org
Open Source Java consulting, training and solutions

Sociedad Andaluza para el Desarrollo de la Sociedad 
de la Información, S.A.U. (SADESI)





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket:border is adding table

2008-12-16 Thread Martijn Dashorst
In short: don't use BoxBorder (which should be removed anyway, since
it is a useless component in this day and age of CSS)

Martijn

On Tue, Dec 16, 2008 at 12:31 PM, jWeekend jweekend_for...@cabouge.com wrote:

 Thorsten,

 Wicket's Border component has associated markup so it may not be what it
 sounds like you're looking for.
 If all you need is a rectangular border drawn around some widgets, group
 them together (maybe in a div), give the grouping a class attribute and
 apply a CSS style, eg

 .myGroupedWidgets {border: thin solid #ccc;}

 If you need more control/something more dynamic, you can map this grouping
 to a WebMarkupContainer and use an attribute modifier.

 Of course you could achieve the same effect with a Wicket Border component,
 but if all you're doing is wrapping your content in a div, you may not want
 the overhead of providing the associated markup file such a border would
 require. On the other hand, using a Border would enable you to wrap your
 content with much more interesting stuff than just a rectangle!

 Does that make sense?

 Regards - Cemal
 http://www.jWeekend.co.uk jWeekend



 Thorsten Scherler-3 wrote:

 El lun, 15-12-2008 a las 06:40 -0800, jWeekend escribió:
 Thorsten,

 Yes, that's exactly how BoxBorder draws the box/border. You'd probably
 prefer to use CSS.

 Can you, please, extend a wee bit?

 As I understand the border component: you can inject child content INTO
 a template page. The wicket:body/ is the injection hook which get
 replaced by the child content.

 Like:
 div wicket:id=myBorder
  !-- Border markup --
  content
  !-- Border markup --
 /div

 A panel does not allow a body meaning you can inject a panel into your
 page but not inject your page into a panel.

 div wicket:id=myPanel
  !-- Panel markup --
 /div

 So what I am looking for is a Border component that does not do any extra
 markup rendering.

 You say use css, I do not understand what you mean.

 salu2


 Regards - Cemal
 http://www.jWeekend.co.uk jWeekend



 Thorsten Scherler-3 wrote:
 
  Hi all,
 
  I am playing around with wicket and have a question.
 
  http://wicket.apache.org/examplenavomatic.html
 
  is the page I am following to develop a custom application.
 
  in my html I have
  wicket:border
   div id=content
 
 Navigation Links
 wicket:link
  ulli someThing.html test /ul
 /wicket:link
 
 
 wicket:body/
 
   /div
   Footer Info
  /wicket:border
 
  and in my java class I have:
 
  public class NavomaticBorder extends Border {
public NavomaticBorder(final String componentName) {
  super(componentName);
  add(HeaderContributor.forCss(css/default.css));
  add(new BoxBorder(navigationBorder));
  add(new BoxBorder(bodyBorder));
  add(new Footer(footer));
}
  }
 
  However in my resulting page I have a tabled rendered within.  is
 rendered
  normal and after this it is
  rendered within a table:
 
   table width = 0% border = 0 cellspacing = 0 cellpadding = 1
  bgcolor = black
tr
 td width = 100% valign = top
  table width = 100% border = 0 cellspacing = 0 cellpadding =
 4
  bgcolor = white
   tr
td width = 100%
 Navigation Links
  ...
 
  I suspect that it may be because of new BoxBorder but I am not sure.
 
  Basically my question is: how to tell wicked to NOT render the table?
 
  TIA for any hints
 
  salu2
 
 
  --
  Thorsten Scherler thorsten.at.apache.org
  Open Source Java consulting, training and solutions
 
  Sociedad Andaluza para el Desarrollo de la Sociedad
  de la Información, S.A.U. (SADESI)
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

 --
 Thorsten Scherler thorsten.at.apache.org
 Open Source Java consulting, training and solutions

 Sociedad Andaluza para el Desarrollo de la Sociedad
 de la Información, S.A.U. (SADESI)






 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 --
 View this message in context: 
 http://www.nabble.com/wicket%3Aborder-is-adding-table-tp21014647p21031448.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: File Chooser dialog needed

2008-12-16 Thread Jeremy Thomerson
Again, you can't do this in a standard HTML form.  For something like this,
you will need to use something like an applet.  Put simply, the browser does
not give you folder locations, and even if it did, your server couldn't list
or grab files from the client's folder.  And, the browser won't
automatically upload an entire folder of anything.  HTML has a file input
only for files - not directories.  Allowing anything different would be a
big security risk.

As far as letting them choose where to save it on the server - why would you
do this?  You can accomplish this by creating or using some sort of browse /
select component, but this is typically a bad idea - why do you want to give
a user access to your server file system over a webapp?  It might be good to
go back and look at your real requirements and evaluate what MUST be done,
and then how best to accomplish it.  (note - there may be certain use cases
where you do need to do this, but they are very rare, and almost
non-existent on a public app - which this may not be)

Anyway, hope this helps.


On Tue, Dec 16, 2008 at 6:26 AM, 123shyam shyam.naraya...@gmail.com wrote:


 Thanks for the response.

 I have a similar requirement for upload tooo. I want to make a Browse
 button, which accepts folder locations, and uploads all the files in that
 location. uploading the data from the file is fine... i can handle
 but how to create a button, which accepts folder locations of both client
 system and server system
 ?


 Jeremy Thomerson-5 wrote:
 
  You simply can't do this in web apps.  You don't choose where to write
  something to - you don't have access to write anything to the user's
  computer.  All you can do is give the user a file to download, and the
  browser will automatically ask them for what folder they want to save it
  to.  For this, search Nabble or Google for DownloadLink.
 
  Give the user a link (DownloadLink) to a file.  They click it.  The
  browser
  opens your dialog for you.
 
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
  On Fri, Nov 7, 2008 at 11:48 AM, Shyam Narayanan 
  shyam_naraya...@mindtree.com wrote:
 
  Thanks for your reply.
 
  My main aim of this task is to download an item into the directory user
  selects.
 
  So need to open a file dialog to help user choose a directory and then
  from
  it get the path user chose, so as to proceed with my
  download.
 
  So as you can imagine for this, i have a browse kindoff button for user
  to
  chose a directory and as it closes, need to display the path selected in
  a
  text field.
  The button as well as textfield stand on a wicket page. Just the action
  of
  opening a file browser is what i want.
 
  I am very new to wicket. Could you pls explain more on what i would have
  to
  do to open such a dialog nd then get the path selected ?
 
  A code example would be appreciated.
 
  Thanks
  
  From: Jeremy Thomerson [jer...@wickettraining.com]
  Sent: Friday, November 07, 2008 9:01 PM
  To: users@wicket.apache.org; shyam.naraya...@gmail.com
  Subject: Re: File Chooser dialog needed
 
  Swing classes are not in the same heirarchy as Wicket's and the two are
  not
  made to work together.  What you need is to add an input type=file
  
  / and a FileUpload (Wicket class).  However, you can't have a user just
  select a directory from their browser - this is a limitation of web
 apps.
  Besides, what could you possibly do with that directory path once you
 had
  it?  You don't have access to their local computer
 
  Depending on what you're doing, if you really had to do something with a
  directory, you may have to horror-music-starts use an applet
  /horror-music.
  Hope this helps.
 
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
  On Fri, Nov 7, 2008 at 5:04 AM, 123shyam shyam.naraya...@gmail.com
  wrote:
 
  
   Hello,
  
   I am working on wicket. I need to open a filechooser dialog or a file
  open
   =
   dialog (like we have in JFileChooser).
  
   I am currently unable to implement it from my wicket page. All I want
  is
  a
   =
   file chooser dialog showing only directories , user chooses nd I get
  back
   t=
   he path selected.
  
   I tried to call a JFielChosser (sinwg) thorught wicket but there seems
  to
   b=
   e some problem, the dialog cmes in a different location first time and
  in
   t=
   he center of the 2nd time onwards, I guess the modality is wrong. The
   JFile=
   Chooser needs a Component object type as its parent. But I am unable
 to
   pas=
   s it from thewicket class. It cannot be cast to a Component or Window.
   Kindly help me out on this.
  
   Thanks,
   Shyam
   --
   View this message in context:
  
 
 http://www.nabble.com/File-Chooser-dialog-needed-tp20378500p20378500.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: 

Re: Wicket error in GlassFish

2008-12-16 Thread Daniel
The welcome file list tag has been remove yet. But the result is the same.

2008/12/16 Ajayi Yinka iamstyaj...@googlemail.com

 I think you are having something in your web.xml file like
  welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list
 if you have it, you may remove it.





 2008/12/16 Daniel lia...@gmail.com

  Hi,
  I'm an newbie in Wicket. When I create my first hello world wicket
 program,
  strange error encounted.
 
  The hello world program is just to show 'Hello World' through Label.
 
  The web.xml is as below,
 
   servlet
servlet-nameHelloWorldApplication/servlet-name
 
 
 
 servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class
init-param
param-nameapplicationClassName/param-name
param-valuecom.example.helloworld.HelloWorldApplication/param-value
/init-param
   /servlet
   servlet-mapping
servlet-nameHelloWorldApplication/servlet-name
url-pattern/helloWorld/*/url-pattern
   /servlet-mapping
 
  In Tomcat env, when I call the URL :
  http://localhost:8080/WicketExamples/helloWorld/.
  http://localhost:8080/WicketExamples/helloWorld/Everything
  goes well.
  When I use the URL: http://localhost:8080/WicketExamples/, show 404
 error.
 
  But the same program runs in GlassFish env. when I call the same URL,
 error
  comes as below
 
  2008-12-16 17:32:00 org.apache.catalina.core.ApplicationContext log
  严重: WebModule[/WicketExamples]StandardWrapper.Throwable
  org.apache.wicket.WicketRuntimeException: Unable to create application of
  class com.example.helloworld.HelloWorldApplication
  at
 
 
 org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:82)
  at
 
 
 org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:49)
  at
 org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:666)
  at
 
 org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:209)
  at javax.servlet.GenericServlet.init(GenericServlet.java:270)
  at
 
 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1198)
  at
 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:863)
  at
 
 
 org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:369)
  at
 
 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
  at
 
 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
  at
 
 
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
  at
 
 
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
  at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
  at
 
 
 com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
  at
 
 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
  at
 
 
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
  at
 
 
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
  at
 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
  at
 
 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
  at
 
 
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
  at
 
 
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
  at
 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
  at
 
 
 org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
  at
 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
  at
 
 
 com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
  at
 
 
 com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
  at
 
 
 com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
  at
 
 
 com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
  at
 
 
 com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
  at
 
 
 com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
  at
 
 com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
  at
 
 com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
  at
  com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
  at
 
 
 com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
  at
 
 
 com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
  at
 
 
 

Re: Wicket error in GlassFish

2008-12-16 Thread Ajayi Yinka
I think you are having something in your web.xml file like
 welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list
if you have it, you may remove it.





2008/12/16 Daniel lia...@gmail.com

 Hi,
 I'm an newbie in Wicket. When I create my first hello world wicket program,
 strange error encounted.

 The hello world program is just to show 'Hello World' through Label.

 The web.xml is as below,

  servlet
   servlet-nameHelloWorldApplication/servlet-name


 servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class
   init-param
   param-nameapplicationClassName/param-name
   param-valuecom.example.helloworld.HelloWorldApplication/param-value
   /init-param
  /servlet
  servlet-mapping
   servlet-nameHelloWorldApplication/servlet-name
   url-pattern/helloWorld/*/url-pattern
  /servlet-mapping

 In Tomcat env, when I call the URL :
 http://localhost:8080/WicketExamples/helloWorld/.
 http://localhost:8080/WicketExamples/helloWorld/Everything
 goes well.
 When I use the URL: http://localhost:8080/WicketExamples/, show 404 error.

 But the same program runs in GlassFish env. when I call the same URL, error
 comes as below

 2008-12-16 17:32:00 org.apache.catalina.core.ApplicationContext log
 严重: WebModule[/WicketExamples]StandardWrapper.Throwable
 org.apache.wicket.WicketRuntimeException: Unable to create application of
 class com.example.helloworld.HelloWorldApplication
 at

 org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:82)
 at

 org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:49)
 at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:666)
 at
 org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:209)
 at javax.servlet.GenericServlet.init(GenericServlet.java:270)
 at

 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1198)
 at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:863)
 at

 org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:369)
 at

 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
 at

 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
 at

 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
 at

 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
 at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
 at

 com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
 at

 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
 at

 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
 at

 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
 at

 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
 at

 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
 at

 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
 at

 org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
 at

 com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
 at

 com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
 at

 com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
 at

 com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
 at

 com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
 at

 com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
 at
 com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
 at
 com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
 at
 com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
 at

 com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
 at

 com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
 at

 com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
 at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
 Caused by: java.lang.ClassNotFoundException:
 com.example.helloworld.HelloWorldApplication
 at

 

Re: CSS urls

2008-12-16 Thread Martijn Dashorst
See HeaderContributor.forCss()

Martijn

On Tue, Dec 16, 2008 at 10:51 AM, Adriano dos Santos Fernandes
adrian...@uol.com.br wrote:
 No good/better way? The problem of using the web directory is that I can't
 do that with non-web utility projects in Eclipse and have the files being
 contributed to web projects.


 Adriano


 Adriano dos Santos Fernandes escreveu:

 Hi!

 What is the better way to handle CSS urls [background: url(...)], inside
 HTML style tags?

 As I see, wicket:link doesn't work, so I'm writing url(style.css) and
 putting style.css on the normal html directory. Obviously, this don't work
 if I mount pages with path different than /.


 Adriano


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket error in GlassFish

2008-12-16 Thread Daniel
Hi,
I'm an newbie in Wicket. When I create my first hello world wicket program,
strange error encounted.

The hello world program is just to show 'Hello World' through Label.

The web.xml is as below,

  servlet
   servlet-nameHelloWorldApplication/servlet-name

servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class
   init-param
   param-nameapplicationClassName/param-name
   param-valuecom.example.helloworld.HelloWorldApplication/param-value
   /init-param
  /servlet
  servlet-mapping
   servlet-nameHelloWorldApplication/servlet-name
   url-pattern/helloWorld/*/url-pattern
  /servlet-mapping

In Tomcat env, when I call the URL :
http://localhost:8080/WicketExamples/helloWorld/.
http://localhost:8080/WicketExamples/helloWorld/Everything
goes well.
When I use the URL: http://localhost:8080/WicketExamples/, show 404 error.

But the same program runs in GlassFish env. when I call the same URL, error
comes as below

2008-12-16 17:32:00 org.apache.catalina.core.ApplicationContext log
严重: WebModule[/WicketExamples]StandardWrapper.Throwable
org.apache.wicket.WicketRuntimeException: Unable to create application of
class com.example.helloworld.HelloWorldApplication
at
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:82)
at
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:49)
at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:666)
at
org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:209)
at javax.servlet.GenericServlet.init(GenericServlet.java:270)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1198)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:863)
at
org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:369)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
at
com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
at
com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
at
com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
at
com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
at
com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
Caused by: java.lang.ClassNotFoundException:
com.example.helloworld.HelloWorldApplication
at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)
at
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:68)
... 38 more

2008-12-16 17:32:00 org.apache.catalina.core.StandardWrapperValve log
严重: StandardWrapperValve[HelloWorldApplication]: PWC1382: Allocate exception
for servlet HelloWorldApplication

Re: CSS urls

2008-12-16 Thread Adriano dos Santos Fernandes
Knowing about HeaderContributor.forCss, I didn't realized that the 
images urls would be correctly resolved.


Thanks.

Wicket is so cool. :-)


Adriano


Martijn Dashorst escreveu:

See HeaderContributor.forCss()

Martijn

On Tue, Dec 16, 2008 at 10:51 AM, Adriano dos Santos Fernandes
adrian...@uol.com.br wrote:
  

No good/better way? The problem of using the web directory is that I can't
do that with non-web utility projects in Eclipse and have the files being
contributed to web projects.


Adriano


Adriano dos Santos Fernandes escreveu:


Hi!

What is the better way to handle CSS urls [background: url(...)], inside
HTML style tags?

As I see, wicket:link doesn't work, so I'm writing url(style.css) and
putting style.css on the normal html directory. Obviously, this don't work
if I mount pages with path different than /.


Adriano


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org







  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket error in GlassFish

2008-12-16 Thread Ajayi Yinka
From the error log, it seems glass fish could not load the webApplication
class.

Make sure your webApplication class is in the correct class path
(com.example.helloworld.HelloWorldApplication)

And the webApplcation class is in the correct format.

or

and may change your web.xml file to be in this format:

filter
filter-nameHelloWorldApplication/filter-name

filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name

param-valuecom.example.helloworld.HelloWorldApplication/param-value
/init-param
init-param
param-namedebug/param-name
param-value2/param-value
/init-param
/filter
2008/12/16 Daniel lia...@gmail.com

 Hi,
 I'm an newbie in Wicket. When I create my first hello world wicket program,
 strange error encounted.

 The hello world program is just to show 'Hello World' through Label.

 The web.xml is as below,

  servlet
   servlet-nameHelloWorldApplication/servlet-name


 servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class
   init-param
   param-nameapplicationClassName/param-name
   param-valuecom.example.helloworld.HelloWorldApplication/param-value
   /init-param
  /servlet
  servlet-mapping
   servlet-nameHelloWorldApplication/servlet-name
   url-pattern/helloWorld/*/url-pattern
  /servlet-mapping

 In Tomcat env, when I call the URL :
 http://localhost:8080/WicketExamples/helloWorld/.
 http://localhost:8080/WicketExamples/helloWorld/Everything
 goes well.
 When I use the URL: http://localhost:8080/WicketExamples/, show 404 error.

 But the same program runs in GlassFish env. when I call the same URL, error
 comes as below

 2008-12-16 17:32:00 org.apache.catalina.core.ApplicationContext log
 严重: WebModule[/WicketExamples]StandardWrapper.Throwable
 org.apache.wicket.WicketRuntimeException: Unable to create application of
 class com.example.helloworld.HelloWorldApplication
 at

 org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:82)
 at

 org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:49)
 at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:666)
 at
 org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:209)
 at javax.servlet.GenericServlet.init(GenericServlet.java:270)
 at

 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1198)
 at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:863)
 at

 org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:369)
 at

 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
 at

 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
 at

 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
 at

 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
 at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
 at

 com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
 at

 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
 at

 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
 at

 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
 at

 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
 at

 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
 at

 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
 at

 org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
 at

 com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
 at

 com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
 at

 com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
 at

 com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
 at

 com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
 at

 com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
 at
 com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
 at
 com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
 at
 

Overriding Text No Records Found

2008-12-16 Thread HITECH79

Hallo,

how can i override/modify the text No Records Found

Thanks
M.K.
-- 
View this message in context: 
http://www.nabble.com/Overriding-Text-%22No-Records-Found%22-tp21031080p21031080.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to update parent component from a panel?

2008-12-16 Thread freak182

Hello,
I just got into this message just now...you know you have to play with
ajaxrequesttartget component...

For: Timo
  I want to ask if this events stuff is already available in wicket 1.3.5
release? if so, what classes should i look into?

Thank you for your help.




Lenka Laurincikova wrote:
 
 Hello, 
 
 I have followed this example. Thank you a lot, it is actually helped me.
 However even though I got refreshed component, the previous state of the
 component is still displayed. I have to refresh the page to remove it.
 
 Any helping hint would be appreciated.
 
 regards
 Lenka
 
 
 Timo Rantalaiho wrote:
 
 On Mon, 09 Jun 2008, freak182 wrote:
 Im having problem of updating parents components.Hereis my problem,
 there is
 page and in that page there is a panel. The panel contain a
 FormUpdatingComponent that attached to a dropdownchoice. Now when the
 dropdown is triggered, i want to update the parents (the page)
 textbox/label..is this possible?
 
 Hmm, what is FormUpdatingComponent?-) A typo perhaps?
 
 Sure it is possible, e.g. something like
 
 public class FooPage extends WebPage {
 public FooPage() {
 Panel fooPanel = new FooPanel(fooPanel, ... 
 
  Foo initialSelection = ...
  IModel fooModel = new Model(initialSelection);
 final Label display = new Label(foo, fooModel);
  display.setOutputMarkupId(true);
  add(display);
  DropDownChoice selection = new DropDownChoice(fooSelection,
 fooModel, choices);
 selection.add(new AjaxFormComponentUpdatingBehavior(onchange) {
  public void onEvent(AjaxRequestTarget target) {
  target.addComponent(display);
  }
  });
  fooPanel.add(selection);
  ...
 }
 }
 
 But if your Panel is further away from the other
 components directly on the page, this might get trickier.
 For normal requests you can often get away with sharing the
 model, but if passing it all the way to the sending
 component gets nasty, or if you want to repaint something in
 the parent via Ajax, something like this might be easier
 
 public interface FooChoiceListener {
   void onSelection(IModel foo, AjaxRequestTarget target);
 }
 
 public class MyLabel extends Label implements FooChoiceListener {
 ...
   public void onSelection(IModel foo, AjaxRequestTarget target) {
 setModelObject(foo.getObject());
 target.addComponent(this);
   }
 }
 
 
 public class FooPage extends WebPage {
   public FooPage() {
 Label display = new MyLabel(...);
 add(new FooPanel());
 ...
   }
 }
 
 public class FooPanel extends Panel {
   public FooPanel(String id, IModel foo) {
   ...
 DropDownChoice selection = new DropDownChoice(fooSelection,
   fooModel, choices);
 selection.add(new AjaxFormComponentUpdatingBehavior(onchange) {
   public void onEvent(AjaxRequestTarget target) {
 getPage().visitChildren(FooChoiceListener.class, 
new IVisitor() {
  public Object component(Component c) {
((FooChoiceListener) c).onSelection(fooModel, target);
return CONTINUE_TRAVERSAL;
   }
  });
   }
 });
   }
 }
 
 A generic eventbroadcaster can be found here
 
   http://issues.apache.org/jira/browse/WICKET-1312
 
 Best wishes,
 Timo
 
 -- 
 Timo Rantalaiho   
 Reaktor Innovations OyURL: http://www.ri.fi/ 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-update-parent-component-from-a-panel--tp17748294p21031933.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



wicket-1055: How to implement new functionality

2008-12-16 Thread Marieke Vandamme

Hello, 

I was looking at the things that changed in 1.4rc1, and the following looked
interesting to me:
https://issues.apache.org/jira/browse/WICKET-1055
= Add Radio to RadioGroup, but Radio doesn't need to be inside RadioGroup
in the markup.

The patch is suggesting that there will be a new function in RadioGroup,
addRadio(Radio r), but it's not in the 1.4rc1 sources. 
I looked in the subversion
(http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/)
and the things that changed (with comment WICKET-1055) are Check and
CheckGroupSelector. How does that affect the RadioGroup?

Any help welcome! Thanks! Marieke.
-- 
View this message in context: 
http://www.nabble.com/wicket-1055%3A-How-to-implement-new-functionality-tp21030374p21030374.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket:border is adding table

2008-12-16 Thread jWeekend

Thorsten,

Wicket's Border component has associated markup so it may not be what it
sounds like you're looking for.
If all you need is a rectangular border drawn around some widgets, group
them together (maybe in a div), give the grouping a class attribute and
apply a CSS style, eg 

.myGroupedWidgets {border: thin solid #ccc;}

If you need more control/something more dynamic, you can map this grouping
to a WebMarkupContainer and use an attribute modifier.

Of course you could achieve the same effect with a Wicket Border component,
but if all you're doing is wrapping your content in a div, you may not want
the overhead of providing the associated markup file such a border would
require. On the other hand, using a Border would enable you to wrap your
content with much more interesting stuff than just a rectangle! 

Does that make sense?

Regards - Cemal
http://www.jWeekend.co.uk jWeekend 



Thorsten Scherler-3 wrote:
 
 El lun, 15-12-2008 a las 06:40 -0800, jWeekend escribió:
 Thorsten,
 
 Yes, that's exactly how BoxBorder draws the box/border. You'd probably
 prefer to use CSS.
 
 Can you, please, extend a wee bit?
 
 As I understand the border component: you can inject child content INTO
 a template page. The wicket:body/ is the injection hook which get
 replaced by the child content.
 
 Like:
 div wicket:id=myBorder
  !-- Border markup --
  content
  !-- Border markup --
 /div
 
 A panel does not allow a body meaning you can inject a panel into your
 page but not inject your page into a panel.
 
 div wicket:id=myPanel
  !-- Panel markup --
 /div
 
 So what I am looking for is a Border component that does not do any extra
 markup rendering. 
 
 You say use css, I do not understand what you mean.
 
 salu2
 
 
 Regards - Cemal
 http://www.jWeekend.co.uk jWeekend 
 
 
 
 Thorsten Scherler-3 wrote:
  
  Hi all,
  
  I am playing around with wicket and have a question.
  
  http://wicket.apache.org/examplenavomatic.html
  
  is the page I am following to develop a custom application.
  
  in my html I have
  wicket:border
   div id=content
 
 Navigation Links
 wicket:link
  ulli someThing.html test /ul
 /wicket:link


 wicket:body/

   /div
   Footer Info
  /wicket:border
  
  and in my java class I have:
  
  public class NavomaticBorder extends Border {
public NavomaticBorder(final String componentName) {
  super(componentName);
  add(HeaderContributor.forCss(css/default.css));
  add(new BoxBorder(navigationBorder));
  add(new BoxBorder(bodyBorder));
  add(new Footer(footer));
}
  }
  
  However in my resulting page I have a tabled rendered within.  is
 rendered
  normal and after this it is
  rendered within a table:
  
   table width = 0% border = 0 cellspacing = 0 cellpadding = 1
  bgcolor = black
tr
 td width = 100% valign = top
  table width = 100% border = 0 cellspacing = 0 cellpadding =
 4
  bgcolor = white
   tr
td width = 100%
 Navigation Links
  ...
  
  I suspect that it may be because of new BoxBorder but I am not sure.
  
  Basically my question is: how to tell wicked to NOT render the table?
  
  TIA for any hints
  
  salu2
  
  
  -- 
  Thorsten Scherler thorsten.at.apache.org
  Open Source Java consulting, training and solutions
  
  Sociedad Andaluza para el Desarrollo de la Sociedad 
  de la Información, S.A.U. (SADESI)
  
  
  
  
  
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
 
 -- 
 Thorsten Scherler thorsten.at.apache.org
 Open Source Java consulting, training and solutions
 
 Sociedad Andaluza para el Desarrollo de la Sociedad 
 de la Información, S.A.U. (SADESI)
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/wicket%3Aborder-is-adding-table-tp21014647p21031448.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: CSS urls

2008-12-16 Thread Adriano dos Santos Fernandes
No good/better way? The problem of using the web directory is that I 
can't do that with non-web utility projects in Eclipse and have the 
files being contributed to web projects.



Adriano


Adriano dos Santos Fernandes escreveu:

Hi!

What is the better way to handle CSS urls [background: url(...)], 
inside HTML style tags?


As I see, wicket:link doesn't work, so I'm writing url(style.css) 
and putting style.css on the normal html directory. Obviously, this 
don't work if I mount pages with path different than /.



Adriano


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: setResponsePage + anchor

2008-12-16 Thread Charlie Dobbie
Hi Janos,

Thanks for your response.  That's an interesting solution to the problem!

I have been digging through the setResponsePage etc code, trying to find a
way to fit this into the framework directly, and have come up empty-handed.
It would seem logical to me that there should be a way to specify either a
String id or a Component directly inside the request target, but I can't see
how to fit it in.

It looks like your solution is the best available at the moment.

Regards,
Charlie.



2008/12/4 Cserep Janos cser...@szeretgom.hu

 I'm doing it like this from my Page:

  @Override
public void renderHead(IHeaderResponse response) {

if (anchor != null) {

response.renderOnLoadJavascript(location.href='# + anchor +
 ';);
anchor = null;
}
}

 Just have a setter for the anchor property on the Page instance you
 pass to setResponsePage().

 janos


 On Thu, Dec 4, 2008 at 1:53 PM, Charlie Dobbie cfmdob...@gmail.com
 wrote:
  Hi,
 
  I know you can set an anchor when you are coming from a Link component,
 but
  how can I set an anchor without the Link?
 
  From a Button's onSubmit, I am calling setResponsePage with a Page
 instance,
  and have a reference to a component on that page that I would like the
  browser to jump directly to.  From my research so far, I don't believe
 this
  to be possible, but easily could have missed something!
 
  Is there a way to do this?
 
  Regards,
  Charlie.
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Palette, AbstractOptions and localizer

2008-12-16 Thread Sven Meier

Done:

https://issues.apache.org/jira/browse/WICKET-1982

Igor Vaynberg schrieb:

yes, i think we can. i am not really sure why it works the way it does
right now. please create a jira issue. and, btw, this can only be
fixed in 1.4.

-igor

On Tue, Dec 16, 2008 at 12:15 AM,  s...@meiers.net wrote:
  

Hi,

is there a reason why AbstractOptions (Palette) uses id and value for 
localization of options?

  value = getLocalizer().getString(id + . + value, this, value);

This requires me to duplicate parts of the keys in my property file. If I'm using a 
ChoiceRenderer(name, name) for a hypothetical class B it looks like:
  Bar.A.Bar.A = Aaaa
  Bar.B.Bar.B = Bbbb
  Bar.C.Bar.C = Cccc

Could we align AbstractOptions with how AbstractChoice works, localizing the 
displayValue only without the id?

  display = getLocalizer().getString(displayValue, this, displayValue);

Thanks

Sven





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wickethub.org

2008-12-16 Thread francisco treacy
we could cover automatic updates of 'compliant' maven artifacts - and
the rest (non-compliant, svn source code, snippets) maintained
manually.

[ compliant = stick to metadata described here:
http://cwiki.apache.org/confluence/display/WICKET/Wicket+Component+JAR+Metadata
]

from the app side this means developing the discovery process
mentioned in the idea... thread, which seems really feasible.

however to start including the aforementioned 'compliant' artifacts,
it would be actually useful to know where to find already existing
ones. so, has anyone taken on the maven repo / metadata plugin / etc
side? is there something available for reuse?

hopefully if we can provide a dead-easy procedure to package wicket
components *and* a place to store them (a maven repo -- how about
apache servers?) , then more and more components will become
'compliant' ... which means more and more will be eventually
discovered and registered.
still, i think it's fair to support non-compliant components as well.
if people use the app, those are very likely to be modified and kept
up-to-date.

francisco




On Tue, Dec 16, 2008 at 5:00 PM, Jonathan Locke
jonathan.lo...@gmail.com wrote:


 you have a point.  but while it's true it's not completely general, i'm
 personally only interested in a library of components. and at present
 components delivered by maven.


 francisco treacy-2 wrote:

 interesting post.
 there's also
 http://www.nabble.com/Open-wicket-component-collection-anywhere--td19450431.html

 however sometimes 'automatic' doesn't work simply because people don't
 mavenize their projects, it's just a bunch of files thrown in an svn
 repo, or even a snippet of code. and you can't force them to use a
 certain container, maven plugin, etc. imagine when it doesn't fit (a
 snippet or an ide plugin).

 depending on the projects' structure i'll take a look and try to find
 the way to automatically pick up as much as possible.

 i'm thinking of publishing wickethub's source code so it feels more of
 a community project.

 francisco


 On Tue, Dec 16, 2008 at 10:08 AM, Maarten Bosteels
 mbosteels@gmail.com wrote:
 On Mon, Dec 15, 2008 at 10:43 PM, Jonathan Locke
 jonathan.lo...@gmail.comwrote:



 oh yeah, there's a post where we started figuring out some details about
 how
 this would work somewhere on this list


 Here it is :
 http://www.nabble.com/idea:-automatic-component-repo-to17979177.html

 Maarten




 Jonathan Locke wrote:
 
 
  this is cool, although i still think this should be auto-updated
 through
 a
  maven registry crawler. if everyone put the right meta information in
  their wicket jars, this resource registry would be entirely automatic,
  always fresh, running demos, etc...
 
 
  francisco treacy-2 wrote:
 
  i came up with an idea during the last weeks, having some trouble
  finding wicket resources.
 
  although we have wicketstuff (which is great, and even more now with
  jeremy's awesome job of reorganizing it)  i feel there are still lots
  of components, plugins or tools that are lost in cyberspace. thought
  it would be neat to keep a sort of registry with useful information
  for wicket developers.
 
  so i decided to quickly put some bits together from an old project
 and
  rebaptised it as the wicket hub - a simple prototype @
  http://wickethub.org.
  it's meant to be flexible, so except for the title there are no
  required fields when you add/edit a module. there are already some
  examples.
 
  let me know what you think about features, its relation with
  wicketstuff and if it's usable, etc. or even if the whole thing makes
  no sense - any suggestions appreciated.
 
  francisco
 
  ps: goes without saying, but [disclaimer: it's completely
  experimental] and be aware the place it's hosted is more like a
  shoebox than a server :)
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/wickethub.org-tp20995774p21022750.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 --
 View this message in context: 
 http://www.nabble.com/wickethub.org-tp20995774p21035901.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: wickethub.org

2008-12-16 Thread Martijn Dashorst
For perusing the maven repository, one should contact the guys from
nexus. They have an api for reading/indexing the repository. Don't
crawl the repository-that will surely get you banned.

Martijn

On Tue, Dec 16, 2008 at 8:51 PM, francisco treacy
francisco.tre...@gmail.com wrote:
 we could cover automatic updates of 'compliant' maven artifacts - and
 the rest (non-compliant, svn source code, snippets) maintained
 manually.

 [ compliant = stick to metadata described here:
 http://cwiki.apache.org/confluence/display/WICKET/Wicket+Component+JAR+Metadata
 ]

 from the app side this means developing the discovery process
 mentioned in the idea... thread, which seems really feasible.

 however to start including the aforementioned 'compliant' artifacts,
 it would be actually useful to know where to find already existing
 ones. so, has anyone taken on the maven repo / metadata plugin / etc
 side? is there something available for reuse?

 hopefully if we can provide a dead-easy procedure to package wicket
 components *and* a place to store them (a maven repo -- how about
 apache servers?) , then more and more components will become
 'compliant' ... which means more and more will be eventually
 discovered and registered.
 still, i think it's fair to support non-compliant components as well.
 if people use the app, those are very likely to be modified and kept
 up-to-date.

 francisco




 On Tue, Dec 16, 2008 at 5:00 PM, Jonathan Locke
 jonathan.lo...@gmail.com wrote:


 you have a point.  but while it's true it's not completely general, i'm
 personally only interested in a library of components. and at present
 components delivered by maven.


 francisco treacy-2 wrote:

 interesting post.
 there's also
 http://www.nabble.com/Open-wicket-component-collection-anywhere--td19450431.html

 however sometimes 'automatic' doesn't work simply because people don't
 mavenize their projects, it's just a bunch of files thrown in an svn
 repo, or even a snippet of code. and you can't force them to use a
 certain container, maven plugin, etc. imagine when it doesn't fit (a
 snippet or an ide plugin).

 depending on the projects' structure i'll take a look and try to find
 the way to automatically pick up as much as possible.

 i'm thinking of publishing wickethub's source code so it feels more of
 a community project.

 francisco


 On Tue, Dec 16, 2008 at 10:08 AM, Maarten Bosteels
 mbosteels@gmail.com wrote:
 On Mon, Dec 15, 2008 at 10:43 PM, Jonathan Locke
 jonathan.lo...@gmail.comwrote:



 oh yeah, there's a post where we started figuring out some details about
 how
 this would work somewhere on this list


 Here it is :
 http://www.nabble.com/idea:-automatic-component-repo-to17979177.html

 Maarten




 Jonathan Locke wrote:
 
 
  this is cool, although i still think this should be auto-updated
 through
 a
  maven registry crawler. if everyone put the right meta information in
  their wicket jars, this resource registry would be entirely automatic,
  always fresh, running demos, etc...
 
 
  francisco treacy-2 wrote:
 
  i came up with an idea during the last weeks, having some trouble
  finding wicket resources.
 
  although we have wicketstuff (which is great, and even more now with
  jeremy's awesome job of reorganizing it)  i feel there are still lots
  of components, plugins or tools that are lost in cyberspace. thought
  it would be neat to keep a sort of registry with useful information
  for wicket developers.
 
  so i decided to quickly put some bits together from an old project
 and
  rebaptised it as the wicket hub - a simple prototype @
  http://wickethub.org.
  it's meant to be flexible, so except for the title there are no
  required fields when you add/edit a module. there are already some
  examples.
 
  let me know what you think about features, its relation with
  wicketstuff and if it's usable, etc. or even if the whole thing makes
  no sense - any suggestions appreciated.
 
  francisco
 
  ps: goes without saying, but [disclaimer: it's completely
  experimental] and be aware the place it's hosted is more like a
  shoebox than a server :)
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/wickethub.org-tp20995774p21022750.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 --
 View this message in context: 
 http://www.nabble.com/wickethub.org-tp20995774p21035901.html
 

Re: newbie help with JavascriptUtils

2008-12-16 Thread francisco treacy
your page should implement IHeaderContributor

or attach a behaviour to your components.

for instance (first snippet i found out there):

private static class MyJSBehavior extends AbstractBehavior {
   private static final long serialVersionUID = 1L;
   @Override
   public void renderHead(IHeaderResponse response) {
   super.renderHead(response);
   response.renderOnDomReadyJavascript(alert('test'););
   }
   }


this is widely documented so you should be able to find better
examples, but that's the way to go

francisco


On Tue, Dec 16, 2008 at 8:51 PM, Marvan Spagnolo marv...@gmail.com wrote:
 Hi,
 I'm trying to write some javascript in a page's markup (subclass of another
 page using wicket:child/wicket:extend mechanism)
 via JavascriptUtils.writeJavascript().

 The fact is it doesn't do anything at all nor I can't find anything related
 in the stack trace (the page displays well with no exceptions nor problems
 at all),
 the expected javascript is simply not in the generated markup.
 Before calling JavascriptUtils I add a form to the page (which works
 normally as expected).

 The actual code looks like:

 ---
 public class MyPage extends MyBasePage
 {
 public MyPage()
 {
 add( new MyForm( formid ));
 String js = ... javascript code here ...;
 JavascriptUtils.writeJavascript( getResponse(), js);
 }
 }
 ---

 Can anyone please help ? Should I maybe use something else instead of
 getResponse() ?
 I expected that the javascript would have been written before the
 /wicket:extend closing tag, or wherever but it's not in the markup at all.
 I'm using wicket 1.3.5 on tomcat 6 and jdk 1.6.

 Reza Marvan Spagnolo


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Javascript call to wicket

2008-12-16 Thread Erik van Oosten

Hello Itay,

It was just an experiment. I have never actually used it. Its been a 
long time ago too..

If may suggest, please try Firebug Lite to debug it.

Sorry I can't be of more help.

Regards,
Erik.



itayh wrote:

Hi Erik,

I used your solution and it works great for ff, while ie seem to have
problems with it. Have you run it also in ie?

Thanks,
  Itay



Erik van Oosten wrote:
  

I just finished an experiment with something like that. Its still ugly
and very static, but here is my code.

In the HTML header the function you can call from Flash:
function(someValue) {
var inputEl = document.getElementById('anchor8');
inputEl.value = someValue;
eval(inputEl.getAttribute('onclick'));
}

Somewhere in the page:
form wicket:id=ajaxForm style=display: none;input
wicket:id=myField type=hidden value=//form

Note that 'anchor8', the Wicket generated id of the input element, still
needs te be made dynamic. Not sure how yet.


The code:
Form form = new Form(ajaxForm);
add(form);
final HiddenField myField = new HiddenField(myField, new
Model(), String.class);
form.add(myField);
myField.add(new AjaxFormSubmitBehavior(onclick) {
@Override
protected void onError(AjaxRequestTarget target) {
throw new RuntimeException(foutje);  // not sure what
to do here
}

@Override
protected void onSubmit(AjaxRequestTarget target) {
String myValue = (String) myField.getConvertedInput();
processAjaxRequest(target, myValue);
}
});

Improvements are very welcome.

Regards,
Erik.






  



--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket and time zones, wrong month?

2008-12-16 Thread Martin Makundi
Hi!

I am using org.apache.wicket.datetime.PatternDateConverter to convert
my date objects (in a select combo) into strings.

The funny thing is that on my test server the debug output says:

AbstractCalendarPanel - Date 2008-06-01 converted into may zone Etc/GMT

On my development computer the debug output says:

AbstractCalendarPanel - Date 2008-06-01 converted into june zone
Europe/Bucharest

Looking deeper into the converter, it does have the ability to use
client time zone. However, that is not what I want. I would like it to
use java TimeZone.getDefault(), but apparently this is not what
happens because sun.util.calendar.ZoneInfo[id=EET ...

I would like to avoid this kind of 'surprises' in the future. Is there
any way to centrally reset the server time zones (for all wicket's
purposes, don't want more surprises ... or was this documented
somewhere)?

To fix this particular occurrence, I added the following line:

public class WicketApplication {
 static {
DateTimeZone.setDefault(DateTimeZone.forTimeZone(TimeZone.getDefault()));
 }
}

**
Martin

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: newbie help with JavascriptUtils

2008-12-16 Thread Marvan Spagnolo
Thank you Francisco,
I attached a behaviour to the page using the snippet you included in your
reply as a base and that worked !

I thought I could use JavascriptUtils for quickly adding js code in the
markup but that maybe worked in previous versions of wicket or it could work
in other contexts, not directly in a page.

Cheers,

Reza Marvan Spagnolo

On Tue, Dec 16, 2008 at 8:56 PM, francisco treacy 
francisco.tre...@gmail.com wrote:

 your page should implement IHeaderContributor

 or attach a behaviour to your components.

 for instance (first snippet i found out there):

 private static class MyJSBehavior extends AbstractBehavior {
   private static final long serialVersionUID = 1L;
   @Override
   public void renderHead(IHeaderResponse response) {
   super.renderHead(response);
   response.renderOnDomReadyJavascript(alert('test'););
   }
   }


 this is widely documented so you should be able to find better
 examples, but that's the way to go

 francisco


 On Tue, Dec 16, 2008 at 8:51 PM, Marvan Spagnolo marv...@gmail.com
 wrote:
  Hi,
  I'm trying to write some javascript in a page's markup (subclass of
 another
  page using wicket:child/wicket:extend mechanism)
  via JavascriptUtils.writeJavascript().
 
  The fact is it doesn't do anything at all nor I can't find anything
 related
  in the stack trace (the page displays well with no exceptions nor
 problems
  at all),
  the expected javascript is simply not in the generated markup.
  Before calling JavascriptUtils I add a form to the page (which works
  normally as expected).
 
  The actual code looks like:
 
  ---
  public class MyPage extends MyBasePage
  {
  public MyPage()
  {
  add( new MyForm( formid ));
  String js = ... javascript code here ...;
  JavascriptUtils.writeJavascript( getResponse(), js);
  }
  }
  ---
 
  Can anyone please help ? Should I maybe use something else instead of
  getResponse() ?
  I expected that the javascript would have been written before the
  /wicket:extend closing tag, or wherever but it's not in the markup at
 all.
  I'm using wicket 1.3.5 on tomcat 6 and jdk 1.6.
 
  Reza Marvan Spagnolo
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Reza Marvan Spagnolo

SW  Network Engineer - Freelancer
@ :: marv...@gmail.com
m :: + 34 622 161 746
skype :: mrvspg


Re: Case sensitivity and PackageRequestTargetUrlCodingStrategy

2008-12-16 Thread Matthew Hanlon
I just realized that gmail wasn't replying to the list.  Sorry.  For
posterity...

On Tue, Dec 16, 2008 at 3:34 PM, Matthew Hanlon mrhan...@gmail.com wrote:

 Below is the updated CaseInsensitiveClassResolver I implemented per your
 suggestions.  It uses MatchingResources from wicketstuff annotation.  It
 scans packages on-demand and caches the results for future lookup.  It seems
 fairly fast, and due to the cache it doesn't have to re-scan the classpath.
  Also below is my CaseInsensitivePackageRequestTargetUrlCodingStrategy
 (Gasp!  What an awfully long name.).
 If you think it's worthwhile, I'd love to contribute it to
 wicketstuff-minis.  How would one got about doing that?

 public class CaseInsensitiveClassResolver implements IClassResolver {

 private static final Logger logger =
 LoggerFactory.getLogger(CaseInsensitiveClassResolver.class);
  private DefaultClassResolver resolver = new DefaultClassResolver();
  public IteratorURL getResources(String name) {
  return resolver.getResources(name);
 }
  private MapString, MapString, Class? cache = new HashMapString,
 MapString,Class?();
  public Class? resolveClass(String classname) throws
 ClassNotFoundException {
 Class? clazz = null;
  try {
 clazz = resolver.resolveClass(classname);
 } catch (ClassNotFoundException e1) {
  clazz = resolveClassCaseInsensitive(classname);
 } catch (NoClassDefFoundError e2) {
  clazz = resolveClassCaseInsensitive(classname);
 }
 if (clazz == null) {
  throw new ClassNotFoundException(Unable to resolve class for name  +
 classname);
 }
  return clazz;
 }
  public Class? resolveClassCaseInsensitive(String classname) {
 if (logger.isDebugEnabled()) {
  logger.debug(Class not found for  + classname + .  Trying to look up
 case-insensitive.);
 }
  String packageName = classname.substring(0, classname.lastIndexOf('.'));
  if (! cache.containsKey(packageName)) {
 cache.put(packageName, scan(getPatternForPackage(packageName)));
  }
  return cache.get(packageName).get(classname.toLowerCase());
  }
  /**
  * Get the Spring search pattern given a package name or part of a
 package name
  * @param packageName a package name
  * @return a Spring search pattern for the given package
  */
 public String getPatternForPackage(String packageName)
 {
 if (packageName == null) packageName = ;
 packageName = packageName.replace('.', '/');
 if (!packageName.endsWith(/))
 {
 packageName += '/';
 }

 return classpath*: + packageName + **/*.class;
 }

 /**
  *
  * @param pattern
  */
 private MapString, Class? scan(final String pattern) {
  MapString, Class? classMap = new HashMapString, Class?();
  MatchingResources resources = new MatchingResources(pattern);
 MetadataReaderFactory f = new SimpleMetadataReaderFactory();
 for (Resource r : resources.getAllMatches()) {
  MetadataReader meta = null;
 try
 {
 meta = f.getMetadataReader(r);
 }
 catch (IOException e)
 {
 throw new RuntimeException(Unable to get MetadataReader
 for  + r, e);
 }
 try {
 ClassMetadata cmd = meta.getClassMetadata();
 String classname = cmd.getClassName();
 try {
  classMap.put(classname.toLowerCase(),
 getClass().getClassLoader().loadClass(classname));
  } catch (ClassNotFoundException e) {
 logger.error(Error loading class for name  + classname);
  }
 } catch (Throwable e) {
 logger.error(Unknown Error., e);
 }
 }
 return classMap;
 }

 }

 public class CaseInsensitivePackageRequestTargetUrlCodingStrategy extends
 PackageRequestTargetUrlCodingStrategy {

 private static final Logger log =
 LoggerFactory.getLogger(CaseInsensitivePackageRequestTargetUrlCodingStrategy.class);
  public CaseInsensitivePackageRequestTargetUrlCodingStrategy(final String
 path, PackageName packageName) {
 super(path, packageName);
  this.packageName = packageName;
 }

 /** package for this mount. */
  private final PackageName packageName;
  private IClassResolver resolver = new CaseInsensitiveClassResolver();
  /**
  * @see
 org.apache.wicket.request.target.coding.IRequestTargetUrlCodingStrategy#decode(org.apache.wicket.request.RequestParameters)
  */
 public IRequestTarget decode(RequestParameters requestParameters)
 {
  String remainder =
 requestParameters.getPath().substring(getMountPath().length());
 final String parametersFragment;
  int ix = remainder.indexOf('/', 1);
 if (ix == -1)
 {
  ix = remainder.length();
 parametersFragment = ;
 }
  else
 {
 parametersFragment = remainder.substring(ix);
  }

 if (remainder.startsWith(/))
 {
  remainder = remainder.substring(1);
 ix--;
 }
  else
 {
 // There is nothing after the mount path!
  return null;
 }

 final String bookmarkablePageClassName = packageName + . +
 remainder.substring(0, ix);
  Class bookmarkablePageClass;
 try
 {
  

Re: newbie help with JavascriptUtils

2008-12-16 Thread Jeremy Thomerson
You can add JS with JavascriptUtils - but in the constructor you're not in
the render phase, so if I remember correctly, the response isn't ready to be
written to, etc.

On Tue, Dec 16, 2008 at 2:30 PM, Marvan Spagnolo marv...@gmail.com wrote:

 Thank you Francisco,
 I attached a behaviour to the page using the snippet you included in your
 reply as a base and that worked !

 I thought I could use JavascriptUtils for quickly adding js code in the
 markup but that maybe worked in previous versions of wicket or it could
 work
 in other contexts, not directly in a page.

 Cheers,

 Reza Marvan Spagnolo

 On Tue, Dec 16, 2008 at 8:56 PM, francisco treacy 
 francisco.tre...@gmail.com wrote:

  your page should implement IHeaderContributor
 
  or attach a behaviour to your components.
 
  for instance (first snippet i found out there):
 
  private static class MyJSBehavior extends AbstractBehavior {
private static final long serialVersionUID = 1L;
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.renderOnDomReadyJavascript(alert('test'););
}
}
 
 
  this is widely documented so you should be able to find better
  examples, but that's the way to go
 
  francisco
 
 
  On Tue, Dec 16, 2008 at 8:51 PM, Marvan Spagnolo marv...@gmail.com
  wrote:
   Hi,
   I'm trying to write some javascript in a page's markup (subclass of
  another
   page using wicket:child/wicket:extend mechanism)
   via JavascriptUtils.writeJavascript().
  
   The fact is it doesn't do anything at all nor I can't find anything
  related
   in the stack trace (the page displays well with no exceptions nor
  problems
   at all),
   the expected javascript is simply not in the generated markup.
   Before calling JavascriptUtils I add a form to the page (which works
   normally as expected).
  
   The actual code looks like:
  
   ---
   public class MyPage extends MyBasePage
   {
   public MyPage()
   {
   add( new MyForm( formid ));
   String js = ... javascript code here ...;
   JavascriptUtils.writeJavascript( getResponse(), js);
   }
   }
   ---
  
   Can anyone please help ? Should I maybe use something else instead of
   getResponse() ?
   I expected that the javascript would have been written before the
   /wicket:extend closing tag, or wherever but it's not in the markup at
  all.
   I'm using wicket 1.3.5 on tomcat 6 and jdk 1.6.
  
   Reza Marvan Spagnolo
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 


 --
 Reza Marvan Spagnolo

 SW  Network Engineer - Freelancer
 @ :: marv...@gmail.com
 m :: + 34 622 161 746
 skype :: mrvspg




-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: How to donate to Wicket Project

2008-12-16 Thread Ayodeji Aladejebi
LOL johan :)
Wicket is a priceless framework so there is no amount large enough yet to
equal the greatness of the framework. Whatever is being contributed is just
a token of appreciation. Our startup company has survived because of the
beauty of thisplatform but as it has been mentioned earlier by someone, we
should rather contribute thru purchase of books, publicity and bug
submission

the best is yet to come

thank you

On Tue, Dec 16, 2008 at 8:42 AM, Johan Compagner jcompag...@gmail.comwrote:

 really?

 if somebody wants by bankaccount to put some large sum of money on it that
 also would be more then welcome ;)

 johan

 On Mon, Dec 15, 2008 at 19:19, Eelco Hillenius eelco.hillen...@gmail.com
 wrote:

  As for the Wicket team, nothing is more welcome than being part of the
  community and contributing patches and on the mailing list etc.
 
  Cheers,
 
  Eelco
 
  On Sat, Dec 13, 2008 at 3:47 PM, Ayodeji Aladejebi aladej...@gmail.com
  wrote:
   Thank you..I think the book is the way to go. I will probably buy it
 for
  all
   all the java developers in my office
   Maybe i should order like 10 copies
  
   Hmm..sounds good
  
   thanks
  
   On Sat, Dec 13, 2008 at 2:16 PM, James Carman
   jcar...@carmanconsulting.comwrote:
  
   Of course, the ASF would always love donations:
  
   http://www.apache.org/foundation/contributing.html
  
   Also, you can buy from the Wicket store and part of the proceeds will
   help the ASF (I believe that's how it's set up):
  
   http://www.cafepress.com/apachewicket
  
   The coffee mug is very nice and I also have the golf shirt!  Wish I
   had a chance to play golf.
  
   On Sat, Dec 13, 2008 at 8:23 AM, Bruno Borges bruno.bor...@gmail.com
 
   wrote:
I don't think the project would accept money that way. If you really
   wanna
do that, just buy the book Wicket in Action and Eelco and Martijn
 will
  be
more than happy. =D
   
But, the best way to really contribute to the project is
- submitting bugs
- fixing them
- helping writing documentation
- spreading the word (blogging)
   
=) Good luck with that! And thanks for showing us your willing to
contribute.
   
Best regards,
Bruno Borges
blog.brunoborges.com.br
+55 21 76727099
   
The glory of great men should always be
measured by the means they have used to
acquire it.
- Francois de La Rochefoucauld
   
   
On Sat, Dec 13, 2008 at 8:14 AM, Ayodeji Aladejebi 
  aladej...@gmail.com
   wrote:
   
Hi,
I am really grateful for the Wicket Project and really feel like
  buying
beer
for the wicket team but when i checked sponsorship under the Wicket
   Site,
   
it saw too much information except paying methods
   
I don't use PayPal as I am not transferring money from US or
 europe,
  i
rather require an international Wire transfer account.
   
Thank you for the Wicket Project
   
   
--
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: d...@dabarobjects.com
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com
   
Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/
   
Get A Free Blog:
http://blogs.cowblock.net/
   
   
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
   --
   Aladejebi Ayodeji A.,
   DabarObjects Solutions
   Phone: +234 9 481 7 156
   Mobile: +234 803 589 1780
   Email: d...@dabarobjects.com
   Web: www.dabarobjects.com
   Blog: blog.dabarobjects.com
  
   Participate, Collaborate, Innovate
   Join Community:
   http://www.cowblock.net/
  
   Get A Free Blog:
   http://blogs.cowblock.net/
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: d...@dabarobjects.com
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com


How to determine which page I am on?

2008-12-16 Thread pieter claassen
I am trying to write a menu that formats the link nicely for the page I am
on. So far, the novomatic tut helped the most, but there is no detail on how
to customize the implementation.

My strategy is to determine which page I am on and then to set an attribute
on the link and format it with css.

I have tried to use getParent() and getPage() on my menu panel with no luck.

public class MainMenu extends Panel {
.
if (getPage().getClass().equals(com.musmato.HomePage.class)) {
System.out.println(Homepage);
}



ERROR - RequestCycle   - Can't instantiate page using
constructor public com.musmato.HomePage(org.apache.wicket.PageParameters)
and argument
org.apache.wicket.WicketRuntimeException: Can't instantiate page using
constructor public com.musmato.HomePage(org.apache.wicket.PageParameters)
and argument
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:168)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:66)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:262)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:283)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:210)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1171)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1248)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:199)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:147)
... 28 more
Caused by: java.lang.IllegalStateException: No Page found for component
[MarkupContainer [Component id = mainmenu, page = No Page, path =
mainmenu.MainMenu]]
at org.apache.wicket.Component.getPage(Component.java:1659)
at com.musmato.navigation.MainMenu.init(MainMenu.java:36)
at com.musmato.MyWebPage.init(MyWebPage.java:16)
at com.musmato.HomePage.init(HomePage.java:14)
... 33 more

Any help is appreciated.

Regards,
Pieter


Re: How to determine which page I am on?

2008-12-16 Thread Adriano dos Santos Fernandes

pieter claassen wrote:

I am trying to write a menu that formats the link nicely for the page I am
on. So far, the novomatic tut helped the most, but there is no detail on how
to customize the implementation.

My strategy is to determine which page I am on and then to set an attribute
on the link and format it with css.

I have tried to use getParent() and getPage() on my menu panel with no luck.

public class MainMenu extends Panel {
.
if (getPage().getClass().equals(com.musmato.HomePage.class)) {
System.out.println(Homepage);
}
  

I think if you put that code on onBeforeRender it will work.


Adriano


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Why don't all Link classes support a label like ExternalLink does?

2008-12-16 Thread Phil Grimm
Guys,

Maybe I'm missing something, but it seems odd that I need to create custom
components in order to set the label on a link. The ability to set the label
(the text the user sees) on a link seems like a very basic use case. Why
would that not be provided in all Link classes?

So far, I've needed to create my own LabeledLink, LabeledSubmitLink and now
it looks like I need to create a LabeledPageLink in order to do what
ExternalLink already provides.

I'm not sure this is the best way to do this, but this is what I've done to
implement a Link that allows the label to be specified.

public class LabeledLink extends Link
{
protected String label;

public LabeledLink(java.lang.String id, IModel model, String label)
{
super(id, model);
this.label = label;
}

@Override
protected void onComponentTagBody(final MarkupStream markupStream, final
ComponentTag openTag)
{
replaceComponentTagBody(markupStream, openTag, label);
}
}

Is there a better way?
Am I missing something?

Thanks!
Phil


Re: Why don't all Link classes support a label like ExternalLink does?

2008-12-16 Thread Martijn Dashorst
Not everybody puts a label inside a link. Not as common as you might
think it is. It is also common to attach a link to a span, div, td or
even tr.

Martijn

On Wed, Dec 17, 2008 at 12:29 AM, Phil Grimm phil.gr...@gmail.com wrote:
 Guys,

 Maybe I'm missing something, but it seems odd that I need to create custom
 components in order to set the label on a link. The ability to set the label
 (the text the user sees) on a link seems like a very basic use case. Why
 would that not be provided in all Link classes?

 So far, I've needed to create my own LabeledLink, LabeledSubmitLink and now
 it looks like I need to create a LabeledPageLink in order to do what
 ExternalLink already provides.

 I'm not sure this is the best way to do this, but this is what I've done to
 implement a Link that allows the label to be specified.

 public class LabeledLink extends Link
 {
protected String label;

public LabeledLink(java.lang.String id, IModel model, String label)
{
super(id, model);
this.label = label;
}

@Override
protected void onComponentTagBody(final MarkupStream markupStream, final
 ComponentTag openTag)
{
replaceComponentTagBody(markupStream, openTag, label);
}
 }

 Is there a better way?
 Am I missing something?

 Thanks!
 Phil




-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



How can we make runtime templates switching?

2008-12-16 Thread Alex Chew
Hi, all

I think i fall in troubles with template switching during runtime.

Formerly we build the whole application with default template using markup
inheritance.
Unfortunately,we are requested to support runtime templates switching .
In other words, our customer want to use different templates to fit their
needs with setting but not developing.
The final effective is just like joomla!'s template managment.

The problem is,
We using EXTENDS to support default template with markup inheritance.
But we cannot change base class while in runtime.

Can anybody show me the light? Any advice will be appreciated.
Thanks in advance.

BR,
Alex


Re: Case sensitivity and PackageRequestTargetUrlCodingStrategy

2008-12-16 Thread Matthew Hanlon
No, I do not have commit rights.  I have created an issue on JIRA and
attached the project with the classes added.
http://wicketstuff.org/jira/browse/WSMINIS-8

Regards,
Matthew.

On Tue, Dec 16, 2008 at 4:08 PM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 Do you have commit rights to wicketstuff?  If you do, just commit it.  If
 not, you could ask for it or create a patch on the JIRA:
 http://wicketstuff.org/jira/secure/BrowseProject.jspa?id=10020

 If you need help, let us know.



 On Tue, Dec 16, 2008 at 3:37 PM, Matthew Hanlon mrhan...@gmail.com
 wrote:

  I just realized that gmail wasn't replying to the list.  Sorry.  For
  posterity...
 
  On Tue, Dec 16, 2008 at 3:34 PM, Matthew Hanlon mrhan...@gmail.com
  wrote:
 
   Below is the updated CaseInsensitiveClassResolver I implemented per
 your
   suggestions.  It uses MatchingResources from wicketstuff annotation.
  It
   scans packages on-demand and caches the results for future lookup.  It
  seems
   fairly fast, and due to the cache it doesn't have to re-scan the
  classpath.
Also below is my CaseInsensitivePackageRequestTargetUrlCodingStrategy
   (Gasp!  What an awfully long name.).
   If you think it's worthwhile, I'd love to contribute it to
   wicketstuff-minis.  How would one got about doing that?
  
   public class CaseInsensitiveClassResolver implements IClassResolver {
  
   private static final Logger logger =
   LoggerFactory.getLogger(CaseInsensitiveClassResolver.class);
private DefaultClassResolver resolver = new DefaultClassResolver();
public IteratorURL getResources(String name) {
return resolver.getResources(name);
   }
private MapString, MapString, Class? cache = new HashMapString,
   MapString,Class?();
public Class? resolveClass(String classname) throws
   ClassNotFoundException {
   Class? clazz = null;
try {
   clazz = resolver.resolveClass(classname);
   } catch (ClassNotFoundException e1) {
clazz = resolveClassCaseInsensitive(classname);
   } catch (NoClassDefFoundError e2) {
clazz = resolveClassCaseInsensitive(classname);
   }
   if (clazz == null) {
throw new ClassNotFoundException(Unable to resolve class for name  +
   classname);
   }
return clazz;
   }
public Class? resolveClassCaseInsensitive(String classname) {
   if (logger.isDebugEnabled()) {
logger.debug(Class not found for  + classname + .  Trying to look
 up
   case-insensitive.);
   }
String packageName = classname.substring(0,
 classname.lastIndexOf('.'));
if (! cache.containsKey(packageName)) {
   cache.put(packageName, scan(getPatternForPackage(packageName)));
}
return cache.get(packageName).get(classname.toLowerCase());
}
/**
* Get the Spring search pattern given a package name or part of a
   package name
* @param packageName a package name
* @return a Spring search pattern for the given package
*/
   public String getPatternForPackage(String packageName)
   {
   if (packageName == null) packageName = ;
   packageName = packageName.replace('.', '/');
   if (!packageName.endsWith(/))
   {
   packageName += '/';
   }
  
   return classpath*: + packageName + **/*.class;
   }
  
   /**
*
* @param pattern
*/
   private MapString, Class? scan(final String pattern) {
MapString, Class? classMap = new HashMapString, Class?();
MatchingResources resources = new MatchingResources(pattern);
   MetadataReaderFactory f = new SimpleMetadataReaderFactory();
   for (Resource r : resources.getAllMatches()) {
MetadataReader meta = null;
   try
   {
   meta = f.getMetadataReader(r);
   }
   catch (IOException e)
   {
   throw new RuntimeException(Unable to get
 MetadataReader
   for  + r, e);
   }
   try {
   ClassMetadata cmd = meta.getClassMetadata();
   String classname = cmd.getClassName();
   try {
classMap.put(classname.toLowerCase(),
   getClass().getClassLoader().loadClass(classname));
} catch (ClassNotFoundException e) {
   logger.error(Error loading class for name  + classname);
}
   } catch (Throwable e) {
   logger.error(Unknown Error., e);
   }
   }
   return classMap;
   }
  
   }
  
   public class CaseInsensitivePackageRequestTargetUrlCodingStrategy
 extends
   PackageRequestTargetUrlCodingStrategy {
  
   private static final Logger log =
  
 
 LoggerFactory.getLogger(CaseInsensitivePackageRequestTargetUrlCodingStrategy.class);
public CaseInsensitivePackageRequestTargetUrlCodingStrategy(final
 String
   path, PackageName packageName) {
   super(path, packageName);
this.packageName = packageName;
   }
  
   /** package for this mount. */
private final PackageName packageName;
private IClassResolver resolver = 

Re: How can we make runtime templates switching?

2008-12-16 Thread Igor Vaynberg
see component#getvariation() and component#getstyle(). there is also a
wiki page that talks about skinning.

-igor


On Tue, Dec 16, 2008 at 7:19 PM, Alex Chew chew.a...@gmail.com wrote:
 Hi, all

 I think i fall in troubles with template switching during runtime.

 Formerly we build the whole application with default template using markup
 inheritance.
 Unfortunately,we are requested to support runtime templates switching .
 In other words, our customer want to use different templates to fit their
 needs with setting but not developing.
 The final effective is just like joomla!'s template managment.

 The problem is,
 We using EXTENDS to support default template with markup inheritance.
 But we cannot change base class while in runtime.

 Can anybody show me the light? Any advice will be appreciated.
 Thanks in advance.

 BR,
 Alex


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OT] wicket users around the world

2008-12-16 Thread Iman Rahmatizadeh
Tehran, Iran
I'm using wicket in developing the next gen nuclear bombs
errr... sorry, no political jokes here :-)
Using wicket in developing software for educational institues  elearning
apps.

Iman


Re: Wicket, FOP, Markup Inheritance and Markup Type

2008-12-16 Thread Adrian Wiesmann
Thanks for all of your comments. Looks promising.

 When used in html page it will use the HTML panel and when added in the
 FOP page will produce the FOP markup.

You don't happen to use that in a Swing application as well? :)

I guess I will try that Wicket Tester hint in a Swing environment. Just to
look how this works. For me the Wicket only version does not suffice or I
would have to write my renderer twice. Once for Wicket, once for Swing.

Cheers and Thanks,
Adrian

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket error in GlassFish

2008-12-16 Thread Daniel
Changed follow your advice, but the error is the same. It may not the code's
problem but some special configuration of the Web Container.
Error Page from browser:

*type* Exception report

*message*

*description*The server encountered an internal error () that prevented it
from fulfilling this request.

*exception*

javax.servlet.ServletException: PWC1391: Servlet.init() for servlet
HelloWorldApplication threw exception

*root cause*

org.apache.wicket.WicketRuntimeException: Unable to create application
of class com.example.helloworld.HelloWorldApplication

*root cause*

java.lang.ClassNotFoundException: com.example.helloworld.HelloWorldApplication

*note* *The full stack traces of the exception and its root causes are
available in the GlassFish/v3 logs.*

2008/12/16 Ajayi Yinka iamstyaj...@googlemail.com

 From the error log, it seems glass fish could not load the webApplication
 class.

 Make sure your webApplication class is in the correct class path
 (com.example.helloworld.HelloWorldApplication)

 And the webApplcation class is in the correct format.

 or

 and may change your web.xml file to be in this format:

 filter
filter-nameHelloWorldApplication/filter-name

 filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
 init-param
param-nameapplicationClassName/param-name

 param-valuecom.example.helloworld.HelloWorldApplication/param-value
/init-param
 init-param
param-namedebug/param-name
param-value2/param-value
/init-param
/filter
 2008/12/16 Daniel lia...@gmail.com

  Hi,
  I'm an newbie in Wicket. When I create my first hello world wicket
 program,
  strange error encounted.
 
  The hello world program is just to show 'Hello World' through Label.
 
  The web.xml is as below,
 
   servlet
servlet-nameHelloWorldApplication/servlet-name
 
 
 
 servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class
init-param
param-nameapplicationClassName/param-name
param-valuecom.example.helloworld.HelloWorldApplication/param-value
/init-param
   /servlet
   servlet-mapping
servlet-nameHelloWorldApplication/servlet-name
url-pattern/helloWorld/*/url-pattern
   /servlet-mapping
 
  In Tomcat env, when I call the URL :
  http://localhost:8080/WicketExamples/helloWorld/.
  http://localhost:8080/WicketExamples/helloWorld/Everything
  goes well.
  When I use the URL: http://localhost:8080/WicketExamples/, show 404
 error.
 
  But the same program runs in GlassFish env. when I call the same URL,
 error
  comes as below
 
  2008-12-16 17:32:00 org.apache.catalina.core.ApplicationContext log
  严重: WebModule[/WicketExamples]StandardWrapper.Throwable
  org.apache.wicket.WicketRuntimeException: Unable to create application of
  class com.example.helloworld.HelloWorldApplication
  at
 
 
 org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:82)
  at
 
 
 org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:49)
  at
 org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:666)
  at
 
 org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:209)
  at javax.servlet.GenericServlet.init(GenericServlet.java:270)
  at
 
 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1198)
  at
 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:863)
  at
 
 
 org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:369)
  at
 
 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
  at
 
 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
  at
 
 
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
  at
 
 
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
  at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
  at
 
 
 com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
  at
 
 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
  at
 
 
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
  at
 
 
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
  at
 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
  at
 
 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
  at
 
 
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
  at
 
 
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
  at
 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
  at