Re: [Wicket-user] AJAX and replacing components...

2006-04-03 Thread Ramnivas Laddad
That worked. Thanks. -Ramnivas Igor Vaynberg wrote: you didn tactually replace anything in the page hierarchy which is where you need to do it. the components you add to the target are only queued for rendering, nothing more. so what you need to do in the onclick is: public void

Re: [Wicket-user] Using AuthenticatedWebApplication gives wicket.WicketRuntimeException in wicket-1.2-beta2

2006-04-03 Thread Andre Matheus
Do you know if this is fixed in beta 3? On 3/31/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: Modify AuthenticatedWebApplication.java yourself. If your using the jar, than copy AuthenticatedWebApplication.java, make the changes, add it into the appropriate package in your own project and the

Re: [Wicket-user] PageLink called request two times

2006-04-03 Thread Johan Compagner
yes it is correct and it never changed this was also the case even in 1.1first the request comes in for the pagelink.That request is handled and the response is set in a buffer.Then a redirect is send to the browser and the second request comes in to really serve the page (that is in the buffer)

Re: [Wicket-user] Wicket 1.2-beta3 is available

2006-04-03 Thread Ali Zaid
Hay; Congratulate, it's really one of the best! can't wait for it to be final!!! Regards, Ali On 4/2/06, Martijn Dashorst [EMAIL PROTECTED] wrote: All, I have created and uploaded the third beta release of Wicket 1.2. We have solved quite some bugs, but there are some nasty one's still

Re: [Wicket-user] Using AuthenticatedWebApplication gives wicket.WicketRuntimeException in wicket-1.2-beta2

2006-04-03 Thread Johan Compagner
yes it should be.On 4/3/06, Andre Matheus [EMAIL PROTECTED] wrote: Do you know if this is fixed in beta 3?On 3/31/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: Modify AuthenticatedWebApplication.java yourself. If your using the jar, than copy AuthenticatedWebApplication.java, make the changes,

Re: [Wicket-user] setting required on multiple form components

2006-04-03 Thread Johan Compagner
do you have a small testcase (unit test case or something)Because our form example also has some required and others not and that is working fine.johanOn 3/30/06, jeiess [EMAIL PROTECTED] wrote: having a little trouble with form validation using 1.2-beta2. here's what i've got: public final

SV: [Wicket-user] Wicket 1.2-beta3 is available

2006-04-03 Thread Nino Wael
Going through the bug list I saw that this should be closed http://sourceforge.net/tracker/index.php?func=detailaid=1450567group_id=119783atid=684975 I can confirm that there no longer is classloading problems this is has been tried on jetty and tomcat. Was an issue on 1.1.1 but no longer on

Re: [Wicket-user] New Link component ?

2006-04-03 Thread Timo Stamm
Alex schrieb: Hi, we've been using wicket for about a month now, so far so good. The only complain is about code lisibility, sometimes our constructors are filled with a lot of code, particurally with all the : add(new Link(myLink) { public void onClick(RequestCycle

[Wicket-user] adding required validator to a a component in the list view

2006-04-03 Thread Dipu
Hi , Is there a way to add required validator to a component in the list view If i add a required validator to a component in the list view how will i specify the resource key in the properties file. With the current version wicket is complaining with the following message. Caused by:

Re: [Wicket-user] adding required validator to a a component in the list view

2006-04-03 Thread Dipu
thanks , i got it right. - Original Message - From: Maurice Marrink [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Monday, April 03, 2006 2:48 PM Subject: Re: [Wicket-user] adding required validator to a a component in the list view Unless i am mistaken, wicket

Re: [Wicket-user] passing IModel around

2006-04-03 Thread Vincent Jenks
I didn't actually try that...but I like the idea of setting the page model and having access to it that way...that seems to work just fine. Thanks!On 4/2/06, karthik Guru [EMAIL PROTECTED] wrote: just curiousBlog blog = (Blog)blogModel.getObject(null);didn't work for you?On 4/3/06, Vincent Jenks

Re: [Wicket-user] adding required validator to a a component in the list view

2006-04-03 Thread Maurice Marrink
Unless i am mistaken, wicket searches for several keys. You should be able to use myPanel.firstName or simply firstName. Maurice On 4/3/06, Dipu [EMAIL PROTECTED] wrote: Hi , Is there a way to add required validator to a component in the list view If i add a required validator to a

[Wicket-user] getting localized error messages associated with validators

2006-04-03 Thread karthik Guru
Hi All, If i were iterating through all the Validators attached to a FormComponent, how can i get the error message specified in the page.properties file for each of the validators and for that component? Does the Localizer class help me with this ? -- karthik --

Re: [Wicket-user] panels addition to panels

2006-04-03 Thread Igor Vaynberg
you are probably doing something in panel2's constructor that ties to access the page. the page is not yet available in the constructor, it is only available once all add() calls succeede. a refactor in 1.3 will fix this. for now try not to access the page in the constructor of the panels.-IgorOn

Re: [Wicket-user] New Link component ?

2006-04-03 Thread Ayodeji Aladejebi
Personally i use the Netbeans way of GUI code generation done in JFrame GUI builder //constructor public MyPage(){ printPageHeader(); createPageLinks(); createPagePanels(); createPageForms(); printPageFooters(); }infact i have made it a template in NB and i seem to enjoy this approach. even if

Re: [Wicket-user] Nested tables using DataView?

2006-04-03 Thread Igor Vaynberg
one way to do this is to go with a simple RepeatingView and use fragments for the two different row styles you have.tabletr wcket:id=repeating-view span wicket:id=row/span /tr/tablewicket:fragment wicket:id=regular-row tdspan wicket:id=foo1/span/td tdspan wicket:id=foo2/span/td tdspan

Re: [Wicket-user] Problem migrating the application to the new version of Wicket.

2006-04-03 Thread Dipu
I have a scenario like this Base Page | V Intermidiate Page | V My Page and i have defined markup for the pages respectively. I have got some _javascript_ references and the style sheet references in the Base Page which is used accross the applicatiion. and in the mark up those

Re: [Wicket-user] New Link component ?

2006-04-03 Thread Igor Vaynberg
yeah, but how many times are your onclick handles that simple? usually they are more complex, they might have a few try/catch blocks, etc. this is just syntactic sugar.-Igor On 4/3/06, Timo Stamm [EMAIL PROTECTED] wrote: Alex schrieb: Hi, we've been using wicket for about a month now, so far so

[Wicket-user] Nested tables using DataView?

2006-04-03 Thread Michael Hosier
Hi, I've been using DataView quite extensively lately to build my tables but I'm trying to wrap my head around creating nested tables using DataView. What I want to do is create a table with n number of rows, between each of these rows is a row with another table of n number of rows that spans

Re: [Wicket-user] Nested tables using DataView?

2006-04-03 Thread Michael Hosier
Igor,Thank you, this is very interesting.  This makes sense to me so I will try and go that route.Thanks again,MichaelOn Apr 3, 2006, at 8:56 AM, Igor Vaynberg wrote:one way to do this is to go with a simple RepeatingView and use fragments for the two different row styles you have.tabletr

Re: [Wicket-user] Problem migrating the application to the new version of Wicket.

2006-04-03 Thread Juergen Donnerstag
You may send me the files (or the unit test) and I'll check it. Juergen On 4/3/06, Dipu [EMAIL PROTECTED] wrote: I have a scenario like this Base Page | V Intermidiate Page | V My Page and i have defined markup for the pages respectively. I have got some javascript

[Wicket-user] Validations and the TabbedPanel

2006-04-03 Thread Bennett, Timothy (JIS - Applications)
Wicketeers, I'm using the TabbedPanel component in a Wicket 1.1.1 application. Works great in a read-only view mode of my data, but using the TabbedPanel to present a create/edit form for my data is proving to be a bit problematic. One big issue I'm having is that the validators of my form

Re: [Wicket-user] New Link component ?

2006-04-03 Thread Timo Stamm
Igor Vaynberg schrieb: yeah, but how many times are your onclick handles that simple? Quite often, actually. And if they are more complex, I would really like to loose some of the superflous brackets and indentation which anonymous classes add. usually they are more complex, they might

Re: [Wicket-user] Validations and the TabbedPanel

2006-04-03 Thread Igor Vaynberg
tabbedpanel isnt really meant to be used to cover up form components, so you are right, what you need is a tabbedpanel that uses dhtml instead of a server roundtrip.-IgorOn 4/3/06, Bennett, Timothy (JIS - Applications) [EMAIL PROTECTED] wrote: Wicketeers, I'm using the TabbedPanel

Re: [Wicket-user] wicket.authentication package classes.

2006-04-03 Thread Igor Vaynberg
auth roles examples depend on wicket-auth-roles project which is itself an example implementation of a more complicated auth strategy. it can be found alongside wicket in svn, and should also be one of the modules released with beta3. -IgorOn 4/3/06, Michael Hosier [EMAIL PROTECTED] wrote: Hi,I'm

Re: [Wicket-user] wicket.authentication package classes.

2006-04-03 Thread Eelco Hillenius
The wicket-auth-roles-examples project depenends on project wicket-auth-roles. Maybe that's what you are missing. You don't need that project to implement authorization with Wicket, as the core support is in the wicket package, but it includes a convenient role based implementation. Eelco On

RE: [Wicket-user] Wicket 1.2-beta3 is available

2006-04-03 Thread Frank Silbermann
My application uses DataTables whose column headers come from ResultSetMetaData and whose data comes from ResultSet. With the new .jars, Im getting the column headers, but not the table contents. I clicked something and got a no such method exception. Have the DataTable extensions been

[Wicket-user] wicket.authentication package classes.

2006-04-03 Thread Michael Hosier
Hi, I'm trying to migrate my Wicket app to 1.2-beta3. Since checkAccess is deprecated I'm looking into refactoring my authentication. I'm looking at the auth-roles sign in example. The classes extend classes from the wicket.authentication package but I can't seem to find the classes

Re: [Wicket-user] wicket.authentication package classes.

2006-04-03 Thread Michael Hosier
Ok, I see what I missed.  I had to click on the main download link on the Download page, which takes me to a sourceforge page that has all the wicket packages.  I was using the links from the table on the Download page which doesn't include that auth package.  I assumed that table had all the

RE: [Wicket-user] Wicket 1.2-beta3 is available

2006-04-03 Thread Frank Silbermann
Never mind. It looks like a problem with my own incomplete re-compiles. /Frank -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Silbermann Sent: Monday, April 03, 2006 2:16 PM To: wicket-user@lists.sourceforge.net Subject: RE: [Wicket-user]

Re: [Wicket-user] RAD Components

2006-04-03 Thread Igor Vaynberg
not sure your patch is necessary. you can probably do the same with: DynamicMarkupContainer extends MarkupContainer implements IComponentResolver {...-Igor On 4/3/06, Arto Arffman [EMAIL PROTECTED] wrote: Hi, Probably this has been discussed before, but couldn't find those threads. The idea

[Wicket-user] is it possible? -- a wicket component inside a BookmarkablePageLink

2006-04-03 Thread nato
Is it possible to do this?...In MyPage.java...add(new Label(linkTex, I'm the text inside a/a)); add(new BookmarkablePageLink(link, getClass()));In MyPage.html...a href="" wicket:id=linkspan wicket:id=linkText.../span/a I'm asking because doing this I get an error saying:

Re: [Wicket-user] Re: is it possible? -- a wicket component inside a BookmarkablePageLink

2006-04-03 Thread Igor Vaynberg
if you are going to nest the label inside the link in your markup you have to do the same in your javaie Link link=new BookmarkablePageLink(link, getClass()));add(link);link.add(new Label(linkTex, I'm the text inside a/a)); -IgorOn 4/3/06, nato [EMAIL PROTECTED] wrote:correction to a typo in my

[Wicket-user] RAD Components

2006-04-03 Thread Arto Arffman
Hi, Probably this has been discussed before, but couldn't find those threads. The idea is that MarkupContainer could create components dynamically based on wicket:ids given in html-templates if there is no explicitly created component. This could be done by calling a method (for example

Re: [Wicket-user] RAD Components

2006-04-03 Thread Juergen Donnerstag
Igor is right, IComponentResolver does it already. Please see SimpleListView in the displaytag examples. Juergen On 4/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: not sure your patch is necessary. you can probably do the same with: DynamicMarkupContainer extends MarkupContainer implements

Re: [Wicket-user] RAD Components

2006-04-03 Thread Igor Vaynberg
any container can implement the interface afaik.-IgorOn 4/3/06, Arto Arffman [EMAIL PROTECTED] wrote:Heh, wicket is getting too big for me... Can I extend a Panel also? /arto 2006/4/3, Igor Vaynberg [EMAIL PROTECTED]: not sure your patch is necessary. you can probably do the same with:

Re: [Wicket-user] Re: is it possible? -- a wicket component inside a BookmarkablePageLink

2006-04-03 Thread nato
Ok. I now understand how to do this.I have copy-pasted the wrong exception message in my post. Let me correct this to avoid confusion to the readers.The correct exception message should be this one: wicket.markup.MarkupException: Unable to find component with id 'linkText' in [MarkupContainer

Re: [Wicket-user] RAD Components

2006-04-03 Thread Igor Vaynberg
wicket...implementing one dream at a time.-IgorOn 4/3/06, Arto Arffman [EMAIL PROTECTED] wrote:Yes, so it does. Thank you! It's better than I could have dreamed :) 2006/4/3, Igor Vaynberg [EMAIL PROTECTED]: any container can implement the interface afaik. -Igor On 4/3/06, Arto Arffman [EMAIL

Re: [Wicket-user] RAD Components

2006-04-03 Thread Arto Arffman
Yes, so it does. Thank you! It's better than I could have dreamed :) 2006/4/3, Igor Vaynberg [EMAIL PROTECTED]: any container can implement the interface afaik. -Igor On 4/3/06, Arto Arffman [EMAIL PROTECTED] wrote: Heh, wicket is getting too big for me... Can I extend a Panel also? /arto

[Wicket-user] Re: is it possible? -- a wicket component inside a BookmarkablePageLink

2006-04-03 Thread nato
correction to a typo in my post: add(new Label(linkTex, I'm the text inside a/a));should be add(new Label(linkText, I'm the text inside a/a)); On 4/4/06, nato [EMAIL PROTECTED] wrote: Is it possible to do this?...In MyPage.java... add(new Label(linkTex, I'm the text inside a/a)); add(new

[Wicket-user] Weird problem with AJAX and crypted url...

2006-04-03 Thread Ramnivas Laddad
I have a tree with each node containing an AjaxLink. Clicking on certain links works correctly, but others fail with a 500 error. I am using WebRequestWithCryptedUrl, creating by my application as follows: protected WebRequest newWebRequest(HttpServletRequest servletRequest) { return

RE: [Wicket-user] Validations and the TabbedPanel

2006-04-03 Thread Bennett, Timothy (JIS - Applications)
Michael Jouravlev's Wicket Wizard code renders a whole set of panels (as part of the wizard) and then uses a construct like: public void updatePanels() { log.info("-- wizard.updatePanels, step name: " + (wizard != null ? wizard.getCurrentStepName() : "null")); for (int i = 0; i

Re: [Wicket-user] Validations and the TabbedPanel

2006-04-03 Thread Igor Vaynberg
no, this will not work. form component's that are not visible are also not updated.-IgorOn 4/3/06, Bennett, Timothy (JIS - Applications) [EMAIL PROTECTED] wrote: Michael Jouravlev's Wicket Wizard code renders a whole set of panels (as part of the wizard) and then uses a construct like:

Re: [Wicket-user] Wicket 1.2-beta3 is available

2006-04-03 Thread Eelco Hillenius
Do you have a stack trace with that? Eelco On 4/3/06, Frank Silbermann [EMAIL PROTECTED] wrote: My application uses DataTable's whose column headers come from ResultSetMetaData and whose data comes from ResultSet. With the new .jars, I'm getting the column headers, but not the table

Re: [Wicket-user] Validations and the TabbedPanel

2006-04-03 Thread Eelco Hillenius
Actually, that should work. As long as your components are visible in the hierarchy. And they probably are, it's just the panels you have to set visible. The interesting thing is that I think we have a bug in the 1.2 implementation of FormComponent. Compare this, correct visit of form

Re: [Wicket-user] RAD Components

2006-04-03 Thread Arto Arffman
Heh, wicket is getting too big for me... Can I extend a Panel also? /arto 2006/4/3, Igor Vaynberg [EMAIL PROTECTED]: not sure your patch is necessary. you can probably do the same with: DynamicMarkupContainer extends MarkupContainer implements IComponentResolver {... -Igor On 4/3/06, Arto

Re: [Wicket-user] Validations and the TabbedPanel

2006-04-03 Thread Igor Vaynberg
yes, you missed something:notice it is using a validation visitor which is defined on top of the form.java like so:/** * Visitor used for validation * * @author Igor Vaynberg (ivaynberg) */ private static abstract class ValidationVisitor implements FormComponent.IVisitor { /** * @see

Re: [Wicket-user] Validations and the TabbedPanel

2006-04-03 Thread Eelco Hillenius
Ah. Sloppy me :) Eelco On 4/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: yes, you missed something: notice it is using a validation visitor which is defined on top of the form.java like so: /** * Visitor used for validation * * @author Igor Vaynberg (ivaynberg) */

Re: [Wicket-user] panels addition to panels

2006-04-03 Thread R.A
Hi Igor. I get the point. Thank you for your reply. R.A -- View this message in context: http://www.nabble.com/panels-addition-to-panels-t1384873.html#a3736730 Sent from the Wicket - User forum at Nabble.com. --- This SF.Net email is

Re: [Wicket-user] PageLink called request two times

2006-04-03 Thread R.A
Hi Johan. I see...but onBeginRequest is called two times on my application. It seems that this occure when I use both PageLink(not BookmarkableLink) and FeedbackPanel. As a test I put in FeedbackPanel on wicket.examples.compref.NonBookmarkablePage's constructor and onBeginRequest method, and I

[Wicket-user] how to prevent wicket from transforming characters to html entities?

2006-04-03 Thread nato
when wicket renders the html, how can I prevent wicket from transforming characters like , , , into html entities like lt;, gt;, amp; and quot;?

Re: [Wicket-user] how to prevent wicket from transforming characters to html entities?

2006-04-03 Thread karthik Guru
can you try component.setEscapeModelStrings(false); On 4/4/06, nato [EMAIL PROTECTED] wrote: when wicket renders the html, how can I prevent wicket from transforming characters like , , , into html entities like lt;, gt;, amp; and quot;? -- -- karthik --

Re: [Wicket-user] how to prevent wicket from transforming characters to html entities?

2006-04-03 Thread Igor Vaynberg
call setEscapeModelStrings(false) on the component thats displaying the string.-IgorOn 4/3/06, nato [EMAIL PROTECTED] wrote:when wicket renders the html, how can I prevent wicket from transforming characters like , , , into html entities like lt;, gt;, amp; and quot;?

[Wicket-user] api brak in AbstractRequestTargetCodingStrategy

2006-04-03 Thread Igor Vaynberg
i changedprotected ValueMap decodeParameters(String urlFragment)toprotected ValueMap decodeParameters(String urlFragment, Map urlParameters)so that decodeParameters helper method also has access to query string parameters. this should make writing subclasses easier. -Igor