Re: [Wicket-user] Navigator customization

2007-07-12 Thread Igor Vaynberg
On 7/11/07, nazeem [EMAIL PROTECTED] wrote: I have the same case where I wanted to customize the navigation toolbar to add few action menu items as well. So I have written my own version of AjaxFallbackCustomDataTable by just copying the AjaxFallbackDefaultDataTable code in to my package and

Re: [Wicket-user] JPA Annotation Validation

2007-07-12 Thread Martijn Dashorst
According to the source code it supports the hibernate validators. What you put in, it validates. http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicketstuff-hibernate-behavior/src/main/java/org/wicketstuff/hibernate/validator/HibernateFormComponentValidator.java Haven't tried it, but

Re: [Wicket-user] stateless wicket?

2007-07-12 Thread Janne Hietamäki
Hi, Wicket pages are not stateless in a way they are for example in GWT where whole page structure can be generated as a javascript and there is no interaction with the server. That is currently out of scope of Wicket. However, Wicket supports stateless pages which do not create session

Re: [Wicket-user] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)

2007-07-12 Thread Jean-Baptiste Quenot
* Watter: I created a small demo application that demonstrates the problem? Is there somewhere I can upload the zip file (it uses maven so it's only 7kb) with some instructions on the steps necessary to recreate the problem? I hate to open a bug in JIRA for this seeing as how

Re: [Wicket-user] Navigator customization

2007-07-12 Thread nazeem
Thanks Igor for the quick response... I got it solved... - nazeem nazeem wrote: I have the same case where I wanted to customize the navigation toolbar to add few action menu items as well. So I have written my own version of AjaxFallbackCustomDataTable by just copying the

[Wicket-user] How can I prevent a WebPage from being serialized

2007-07-12 Thread Stefan Lindner
How can I prevent a WebPage from being serialized to the FilePageStore? I have a page that ist to be displayed within a modal window. The page recieves an object as parameter but this object is not serializable. Can I tell wicket not to serialize this page? I have tried to set page.isVersioned()

Re: [Wicket-user] stateless wicket?

2007-07-12 Thread Johan Compagner
the real client side wicket , so storing the data in the browser didn't make it and i don't think it will make it very soon because no current committer really sees the big benefit of this approach. johan On 7/11/07, James Law [EMAIL PROTECTED] wrote: Hi, On the features page of the wicket

Re: [Wicket-user] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)

2007-07-12 Thread Johan Compagner
if the jetty classloader is able to load that class then you have a wrong configuration. Jetty shouldn't be able to load the classes at all, those classes shouldn't be in the webapp classpath johan On 7/12/07, Watter [EMAIL PROTECTED] wrote: Jean-Baptiste Quenot-3 wrote: * Watter: I

[Wicket-user] page variations (in 1.2)

2007-07-12 Thread Ittay Dror
Hi, Say I have some entity E, and it can have states A,B,C. now, for each state, I render the entity a bit differently (showing more or less information, changing colors). The page is comprised of many, sometimes nested (in panels) components. What is the best way to achieve those

Re: [Wicket-user] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)

2007-07-12 Thread Watter
Jean-Baptiste Quenot-3 wrote: * Watter: I created a small demo application that demonstrates the problem? Is there somewhere I can upload the zip file (it uses maven so it's only 7kb) with some instructions on the steps necessary to recreate the problem? I hate to open

Re: [Wicket-user] How can I prevent a WebPage from being serialized

2007-07-12 Thread Johan Compagner
thats currently not possible (or you must your another SessionStore completely) because we need to store the page somewhere and the pagemap will only hold one but if the object can't be serialized it also shouldn't go into the http session and that will be the case everytime or you must make the

[Wicket-user] Replace a component with another component by adding a Behaviour

2007-07-12 Thread pixotec
I try to replace a TextArea with a HiddenField (or in next step with a Panel). before: textarea wicket:id=messageInput rows=6 cols=20Input comes here/textarea after: input wicket:id=messageInput type=hidden / I added a Behaviour to the TextArea: public void bind(Component c) {

Re: [Wicket-user] page variations (in 1.2)

2007-07-12 Thread Scott Swank
May I suggest the state pattern :). public class Yours { private YourState state; public Foo someMethod() { return state.getFoo(); } etc. } http://en.wikipedia.org/wiki/State_pattern On 7/12/07, Ittay Dror [EMAIL PROTECTED] wrote: Hi, Say I have some entity E, and it

Re: [Wicket-user] page variations (in 1.2)

2007-07-12 Thread Ittay Dror
can you elaborate how it relates to wicket? Scott Swank wrote on 07/12/07 19:22: May I suggest the "state pattern" :). public class Yours { private YourState state; public Foo someMethod() { return state.getFoo(); } etc. } http://en.wikipedia.org/wiki/State_pattern

[Wicket-user] Wicket 1.3.0-beta2 WicketFilter Problem

2007-07-12 Thread severian
I've just upgraded from beta1 to beta2 and have encountered a problem getting any tests to run. My configuration in web/xml is pretty standard: filter filter-nameWicketEntryPoint/filter-name

Re: [Wicket-user] page variations (in 1.2)

2007-07-12 Thread Scott Swank
add(state.buildYourComponent(someWicketId)); On 7/12/07, Ittay Dror [EMAIL PROTECTED] wrote: can you elaborate how it relates to wicket? Scott Swank wrote on 07/12/07 19:22: May I suggest the state pattern :). public class Yours { private YourState state; public Foo

[Wicket-user] Intermittent serialization error

2007-07-12 Thread Russell Morrisey
Hi, I'm using wicket 1.3.0 SNAPSHOT, and I'm encountering intermittent errors in console on my pages. I can't seem to determine a reproducible test case for this issue, so I'm not sure how to isolate the problem any further. Please let me know if you have any suggestions on what to look for.

[Wicket-user] TabbedPanel tabs instanciation

2007-07-12 Thread Xavier Hanin
Hi, When debugging my application which uses a TabbedPanel, I realized that one tab was unnecessarily instanciated. After some investigation the reason is simply because I call setSelectedTab based on the parameters of my page, but since the instanciation of a TabbedPanel call setSelectedTab(0),

[Wicket-user] Autocomplete Question (igor?)

2007-07-12 Thread Francisco Diaz Trepat - gmail
Hi all, I wanted to see if I could add an autocomplete that displays a little table (3 columns). It is a simple locations table that shows a ZIPCODE a Provine/City and a Canton/Kanton (CH) field. I already have it working with the default IAutoCompleteRenderer, that renders an Unordered list:

[Wicket-user] How to control where HTML files are loaded from in 1.3?

2007-07-12 Thread David Rosenstrauch
Hi. Wicket newbie here - and loving the framework. Great work! I started tinkering with it a few weeks ago, and wrote some code, but then realized that I probably ought to switch to use v1.3. Running into some conversion problems, though. Specifically, I used the approach described here:

Re: [Wicket-user] JPA Annotation Validation

2007-07-12 Thread Ryan Sonnek
I'm not familiar with the @Column annotation. If you have any info on how it works, I'd be happy to add support in. Even better, the code to add new annotation support is drop dead simple. let me know if have a solution and I can commit it.

Re: [Wicket-user] JPA Annotation Validation

2007-07-12 Thread Craig Lenzen
Sorry, I was a little confused, I thought this project was using the JPA annotations for validation. Instead you are actually using the hibernate validator project annotations. Which means the @Column annotation would be pretty hard to use..:) -Craig Ryan Sonnek-2 wrote: I'm not familiar

[Wicket-user] Can I show and hide a form using javascript still do form processing on the server ?

2007-07-12 Thread atul singh
Hi, I want to show and hide forms using javascript, but this will not have components on the server.How do I process the form on the server. What is the reccomended way to do this?? Do I have to make a server call for this?(Based on my experience I feel ajax is the way supported in wicket, but i

Re: [Wicket-user] Can I show and hide a form using javascript still do form processing on the server ?

2007-07-12 Thread Igor Vaynberg
On 7/12/07, atul singh [EMAIL PROTECTED] wrote: Hi, I want to show and hide forms using javascript, but this will not have components on the server.How do I process the form on the server. What is the reccomended way to do this?? Do I have to make a server call for this?(Based on my experience

Re: [Wicket-user] TabbedPanel tabs instanciation

2007-07-12 Thread Erik van Oosten
Xavier, Just an idea, I am not sure this would work: do not use the first tab, and switch to the second tab (index 1) if you do not have the parameter. Regards, Erik. Xavier Hanin wrote: When debugging my application which uses a TabbedPanel, I realized that one tab was unnecessarily

Re: [Wicket-user] Intermittent serialization error

2007-07-12 Thread Johan Compagner
use the default serialization for now, if you know why it happens then please make a test case for this. On 7/12/07, Russell Morrisey [EMAIL PROTECTED] wrote: Hi, I'm using wicket 1.3.0 SNAPSHOT, and I'm encountering intermittent errors in console on my pages. I can't seem to determine a

Re: [Wicket-user] TabbedPanel tabs instanciation

2007-07-12 Thread Igor Vaynberg
On 7/12/07, Xavier Hanin [EMAIL PROTECTED] wrote: Hi, When debugging my application which uses a TabbedPanel, I realized that one tab was unnecessarily instanciated. After some investigation the reason is simply because I call setSelectedTab based on the parameters of my page, but since the

Re: [Wicket-user] How to control where HTML files are loaded from in 1.3?

2007-07-12 Thread Scott Swank
I believe that it's something like this (we're still on 1.2.6 here at work). getResourceSettings().addResourceFolder(/WEB-INF/html); On 7/12/07, David Rosenstrauch [EMAIL PROTECTED] wrote: Hi. Wicket newbie here - and loving the framework. Great work! I started tinkering with it a few

Re: [Wicket-user] How to control where HTML files are loaded from in 1.3?

2007-07-12 Thread David Rosenstrauch
David Rosenstrauch wrote: http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html I needed a way to load up HTML files that are all inside the same directory. That directory happened to be /WEB-INF/html. Essentially, I needed to chop off the fully qualified class name

Re: [Wicket-user] JPA Annotation Validation

2007-07-12 Thread Al Maw
Craig Lenzen wrote: Sorry, I was a little confused, I thought this project was using the JPA annotations for validation. Instead you are actually using the hibernate validator project annotations. Which means the @Column annotation would be pretty hard to use..:) :-) I have JPA annotation

[Wicket-user] Is it possible to test Wicket templates out-of-container?

2007-07-12 Thread mraible
Is it possible to use Tapestry's parser in tests to verify that template syntax is correct? I'd like to run tests (like you do when doing a JSP pre-compile) to verify syntax w/o having to start the app and find out at runtime. Also, is it possible to adjust Wicket's template caching strategy?

[Wicket-user] using images in wicket

2007-07-12 Thread verbal evasion
i am deploying my web application (including website using wicket) in an ear. there are files in the ear under the webapp/img directory and i would like to load them to use with Image and ImageMap. I dont know how to specify the path. i do not want to use the absolute FS path. i would like to

Re: [Wicket-user] Is it possible to test Wicket templates out-of-container?

2007-07-12 Thread Igor Vaynberg
On 7/12/07, mraible [EMAIL PROTECTED] wrote: Is it possible to use Tapestry's parser in tests to verify that template syntax is correct? probably yes, wicket also has a pullparser implementation you can use, or any other html parser. our tests compare string buffer of httpservletrequest to

Re: [Wicket-user] using images in wicket

2007-07-12 Thread Igor Vaynberg
On 7/12/07, verbal evasion [EMAIL PROTECTED] wrote: actually, doing url.getContent() doesnt seem to work. can someone please help me out? in your markup just do img src=img/foo.gif/ wicket will rewrite that url to be context-relative so /mycotnext/img/foo.gif which will map to

Re: [Wicket-user] using images in wicket

2007-07-12 Thread verbal evasion
so i realized that i probably just want to access the image via a URL. the question now is i cant seem to access it with a relative page. do you think i should just URL.getContent() and then save it in my WebApplication? seems weird, but whatever i guess. i would still like to find out how to

[Wicket-user] RepeatingView Class API

2007-07-12 Thread Ballist1c
Hey guys, Ive been reading the apidoc for RepeatingView, and there is one thing that is completely throwing me off. As taken from the API http://wicket.sourceforge.net/wicket-extensions/apidocs/wicket/extensions/markup/html/repeater/RepeatingView.html It says A repeater view that

Re: [Wicket-user] using images in wicket

2007-07-12 Thread verbal evasion
actually, doing url.getContent() doesnt seem to work. can someone please help me out? thanks, verbal On 7/12/07, verbal evasion [EMAIL PROTECTED] wrote: so i realized that i probably just want to access the image via a URL. the question now is i cant seem to access it with a relative page.

Re: [Wicket-user] JPA Annotation Validation

2007-07-12 Thread Craig Lenzen
Thanks Al, I look forward to the post. -Craig Al Maw wrote: Craig Lenzen wrote: Sorry, I was a little confused, I thought this project was using the JPA annotations for validation. Instead you are actually using the hibernate validator project annotations. Which means the @Column

Re: [Wicket-user] Is it possible to test Wicket templates out-of-container?

2007-07-12 Thread mraible
Eelco Hillenius wrote: Is it possible to use Tapestry's parser in tests to verify that template syntax is correct? Certainly not Tapestry's; it's a different syntax :) Doh! That's what I get for asking the same question on the Facelets and Tapestry lists. I was bound to screw up

Re: [Wicket-user] Is it possible to test Wicket templates out-of-container?

2007-07-12 Thread mraible
igor.vaynberg wrote: like eelco said, in devel mode this is the default for markup only. if you want class reloading there is a reloadingwicketfilter, or whatever its called. in production reloading templates is rarely necessary. for cases that require them there are a few solutions: you

Re: [Wicket-user] using images in wicket

2007-07-12 Thread verbal
I want to do it dynamically though. As in based on some logic, display 1 of n files. Thanks, verbal On Jul 12, 2007, at 7:13 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/12/07, verbal evasion [EMAIL PROTECTED] wrote: actually, doing url.getContent() doesnt seem to work. can someone

Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row

2007-07-12 Thread Ballist1c
Absolute Genius thanks for covering this!!! you guys have saved me alot of time :) Matej Knopp-2 wrote: As far as I know id is a property of DOMElement, so there should be no need to call setAttribute. -Matej On 6/24/07, Peter Thomas [EMAIL PROTECTED] wrote: On 6/24/07, Peter

Re: [Wicket-user] JPA Annotation Validation

2007-07-12 Thread Ryan Sonnek
I haven't seen anything on JPA annotations. Last I heard, they were in draft or review. Are they actually available now, and if so, who's using them? On 7/12/07, Craig Lenzen [EMAIL PROTECTED] wrote: Thanks Al, I look forward to the post. -Craig Al Maw wrote: Craig Lenzen wrote:

[Wicket-user] Pass value of the selected item from DataView to the modal window

2007-07-12 Thread angela
Hi all, I have a TableViewPage, which has a modal window and the Ajax Link. The modal window is used to edit item from DataView. How do i pass value of the selected item from DataView to the modal window? Anyone can help me? Thanks for spending time to read my codes here. :) I'm using wicket

Re: [Wicket-user] Is it possible to test Wicket templates out-of-container?

2007-07-12 Thread Igor Vaynberg
On 7/12/07, mraible [EMAIL PROTECTED] wrote: Is it possible to expire the page cache with JMX? Or even better, expire individual pages from the cache with JMX? i dont think so, but i also dont think it will be very difficult to implement. we already have a jmx bean here [1], so all thats

Re: [Wicket-user] using images in wicket

2007-07-12 Thread Igor Vaynberg
then use ContextImage component -igor On 7/12/07, verbal [EMAIL PROTECTED] wrote: I want to do it dynamically though. As in based on some logic, display 1 of n files. Thanks, verbal On Jul 12, 2007, at 7:13 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/12/07, verbal evasion [EMAIL

Re: [Wicket-user] Is it possible to test Wicket templates out-of-container?

2007-07-12 Thread Eelco Hillenius
Is it possible to expire the page cache with JMX? Or even better, expire individual pages from the cache with JMX? You can clear the markup cache. See ApplicationMBean#clearMarkupCache (mx Application/ApplicationSettings). You can't do it for individual markup files, and tbh I don't think it

Re: [Wicket-user] using images in wicket

2007-07-12 Thread verbal evasion
thank you for the response igor, you are helpful as always. this may be a totally stupid question, but i am using wicket.* but there seems to be another org.apache.wicket.* and the ContextImage is only in that version? why are there two different versions? i am getting my wicket and

Re: [Wicket-user] Is it possible to test Wicket templates out-of-container?

2007-07-12 Thread Juergen Donnerstag
On 7/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/12/07, mraible [EMAIL PROTECTED] wrote: Is it possible to expire the page cache with JMX? Or even better, expire individual pages from the cache with JMX? i dont think so, but i also dont think it will be very difficult to

[Wicket-user] How to apply sth. like setStripWicketTags() to a single component ?

2007-07-12 Thread rc.china
We know that there is IMarkupSetting.setStripWicketTags(), but it seems that it is a global setting. I want to apply sth. like setStripWicketTags() to a single component(for example: Panel/Fragment/Page), could I ? How ? Thanks! -- View this message in context: