CSS and Javascript in Modal Panel

2009-09-10 Thread Oliver-Sven Fritsch
Hi everybody! I want to use modal panels for forms which seems to be a good choice. Some of my forms need to have multiple pages which I would like to display on tabs. Tabbing work fine in normal wicket panels and pages when I provide the necessary CSS and Javascript. But somehow the modal

Re: Announcing: Scala-Wicket Extensions Project

2009-09-10 Thread cretzel
Antony Stubbs wrote: Yes, the ⇒ is actually what the = is supposed to be in Scala, and is a UTF8 character, which I'm sure would be supported by all modern editors. I'm surprised you can't see it properly. What OS and version of Eclipse are you viewing them with? I am toying around with

Re: CSS and Javascript in Modal Panel

2009-09-10 Thread Eyal Golan
we used Page in the modal instead of Panel. In the page we added all header contributers. I'm not sure, but what if you add these contributers to the page that the modal window is in? Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn:

Re: how to embed one wicket app into another

2009-09-10 Thread Eyal Golan
I go with Martin, use iFrame. This is what we do. We have two Wicket apps, running on the same machine, the web.xml triggers two different Wicket apps. Why you ask? an old and a VERY BAD decision. In order to navigate from one app to the other we actually use URLs. In order to show page from app B

How to use AjaxPagingNavigationIncrementLink without Navigator...

2009-09-10 Thread Andrej Thiele
Hi, I tried to use the AjaxPagingNavigationIncrementLink as standalone component. As javadoc describes this should be possible like using the PagingNavigationIncrementLink. But if I click on this link an exception is the result. After diving into the code I have seen that the

Variation algorithm

2009-09-10 Thread Chris Colman
With using the getVariation() method is the 'fallback' process for when a particular variant isn't found like this: (a) Incremental removal of variant suffixes using '_' as the delimeter: i.e. Wicket looks for files in the following order until one is found: HeaderPanel_Var1_Var2_Var3.html

RE: Passing parameters from markup to panels

2009-09-10 Thread Michael Mosmann
Am Donnerstag, den 10.09.2009, 14:03 +1000 schrieb Chris Colman: why? what is different between a 10 or a 50 item song panel? the number of items? you should anyhow use a ListView which repeats the her is the song-block as many times as you want to.. It is using a ListView - the desire

RE: Passing parameters from markup to panels

2009-09-10 Thread Chris Colman
Thanks for those suggestions. I've actually got it kind of working *with* an IComponentResolver and that seems to be working fine for now. -Original Message- From: Michael Mosmann [mailto:mich...@mosmann.de] Sent: Thursday, 10 September 2009 6:24 PM To: users@wicket.apache.org

Re: placing multiple gmap markers

2009-09-10 Thread shiraz memon
Thanks for the reply. What I am looking for, is shown under: http://esa.ilmari.googlepages.com/ZMarker2.htm (placing markers which are too close together) Shiraz On Wed, Sep 9, 2009 at 9:34 PM, Pedro Santos pedros...@gmail.com wrote: See if it occurs on http://maps.google.com/ too. You can put

How to hide html sections

2009-09-10 Thread Charles Moulliard
Hi, In JSP pages, it is quite simple to change HTML rendering as it is possible to test java properties and depending on the value we can display or hide html code. How is it possible to do this in Wicket ? Is there a wicket tag that we can use for that ? E.g. Depending of the value returned by

Re: How test modal windows with wicket tester?

2009-09-10 Thread Denis Kandrov
Hi, Martin! I try use tester.assertVisible(messageTabs:panel:company:commentForm:commentCreateModal) where messageTabs:panel:company:commentForm:commentCreateModal is my.app.class.NotificationModalWindow where NotificationModalWindow extends ModalWindow. But it not work,

Re: How test modal windows with wicket tester?

2009-09-10 Thread Martin Makundi
Yes.. you need to check the panel INSIDE the modal panel. And a hint: avoid using string paths to the maximum... you'll have more flexibility in refactoring. Just do like this: MessageTabs tabs = (MessageTabs) tester.getLastRenderedPage(); Panel panel = tabs.getPanel(); Company company =

Re: How to hide html sections

2009-09-10 Thread Martin Makundi
How is it possible to do this in Wicket ? Is there a wicket tag that we can use for that ? If you want to hide a component just say component.setVisible(false); If you wnat to hide component and surrounding html markup, do the following: wicket:enclosure

How to redirect from a ModalWindow

2009-09-10 Thread Matthias Keller
Hi I've got a ModalWindow which lets the user select some choices. Now I need a button in that ModalWindow allowing the user to enter some new choices. I don't want that target to be another ModalWindow (as it's referenced from other places too), so I need to redirect the user to that new page

Re: How to hide html sections

2009-09-10 Thread Pedro Santos
With OO you can teach you objects to behave, rater the set then every time: String property; add(new Button(red){ @Override public boolean isVisible() { return property == red condition } }); add(new Button(green){

DropDownChoice with Java Enum

2009-09-10 Thread Charles Moulliard
Hi, I would like to know if I can create a DropDownChoice where the value to be displayed in the drop down list corresponds to the description of my enumeration (e.g. Accepted) while the value to be returned is the value defined in the enumeration (e.g: ACCPT) ? public enum ProcessingStatusType

Re: How to hide html sections

2009-09-10 Thread Martin Makundi
Or with attribute: add(new Button(red_or_green)add(new AttributeModifier(class, new AbstractReadOnlyModelString() { getObject() { return condition ? red : green; }}); ** Martin 2009/9/10 Pedro Santos pedros...@gmail.com: With OO you can teach you objects to behave, rater the set then every

Re: DropDownChoice with Java Enum

2009-09-10 Thread Matthias Keller
Hi Charles No problem. Just make an IChoiceRenderer which calls getDescription for the display value and getValue for the id. Matt Charles Moulliard wrote: Hi, I would like to know if I can create a DropDownChoice where the value to be displayed in the drop down list corresponds to the

Re: How to use AjaxPagingNavigationIncrementLink without Navigator...

2009-09-10 Thread Andrej Thiele
Perhaps you have missunderstand me. I want to present only a PageableListview with '' and '' under it. If I use Ajax free variant PagingNavigationIncrementLink this is no problem but using the Ajax there is an Exception that the navigator is missing. The javadoc says: ...it will update the

Re: DropDownChoice with Java Enum

2009-09-10 Thread cmoulliard
You mean create something like this : add(new DropDownChoice(requestStatus, Arrays.asList(ProcessingStatusType.values()), new IChoiceRenderer() { public Object getDisplayValue(Object objDispl) { return ProcessingStatusType.valueOf((String)

Re: DropDownChoice with Java Enum

2009-09-10 Thread Martin Makundi
Please use debugger to find out.. 2009/9/10 cmoulliard cmoulli...@gmail.com: You mean create something like this : add(new DropDownChoice(requestStatus, Arrays.asList(ProcessingStatusType.values()), new IChoiceRenderer() {                        public Object getDisplayValue(Object

Re: How to use AjaxPagingNavigationIncrementLink without Navigator...

2009-09-10 Thread Pedro Santos
Yes, I take a second read and got the same impression than you. You can extends AjaxPagingNavigationIncrementLink and open a JIRA 1 - to change the doc: pageable and itself or the navigator the link is part to pageable, itself and the navigator the link is part since the

Re: DropDownChoice with Java Enum

2009-09-10 Thread Pedro Santos
@Override public String getDisplayValue(Object status) { return ((ProcessingStatusType) status).getDescription(); } On Thu, Sep 10, 2009 at 9:46 AM, cmoulliard cmoulli...@gmail.com wrote: You mean create something like this : add(new DropDownChoice(requestStatus,

Re: DropDownChoice with Java Enum

2009-09-10 Thread Matthias Keller
Hi Close but not quite. getDisplayValue gets the catual ELEMENT of the list - so objDispl is of type ProcessingStatusType already. So in your case it would be something like: public Object getDisplayValue(Object objDispl) { return ((ProcessingStatusType) objDispl).getDescription(); }

Re: DropDownChoice with Java Enum

2009-09-10 Thread Johannes Schneider
You cast objDispl to String which is obviously(?) a ProcessingStatusType cmoulliard wrote: You mean create something like this : add(new DropDownChoice(requestStatus, Arrays.asList(ProcessingStatusType.values()), new IChoiceRenderer() { public Object

Re: How to redirect from a ModalWindow

2009-09-10 Thread Peter Ertl
throw new RestartResponseException(OtherPage.class) window.close() is not needed! Am 10.09.2009 um 12:50 schrieb Matthias Keller: OtherPage.class - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: How to use AjaxPagingNavigationIncrementLink without Navigator...

2009-09-10 Thread Andrej Thiele
Ok, I will choose option 2 because then it is consistent with the non Ajax variant PagingNavigationIncrementLink. Thanks for your help, best regards, Andrej - Original Message - From: Pedro Santos pedros...@gmail.com To: users@wicket.apache.org Sent: Donnerstag, 10. September 2009

Re: How to redirect from a ModalWindow

2009-09-10 Thread Matthias Keller
Hi Peter You would be right as long as it wasn't for a ModalWindow. When having an open ModalWindow, wicket seems to register an unload javascript event which - when trying to navigate away from the page (be it by following a link, closing the window etc), displays a confirmation message

Re: Variation algorithm

2009-09-10 Thread Igor Vaynberg
wicket will not iterate over '_' delimiters that you supply in the return value of getVariation(). -igor On Thu, Sep 10, 2009 at 1:21 AM, Chris Colman chr...@stepaheadsoftware.com wrote: With using the getVariation() method is the 'fallback' process for when a particular variant isn't found

prevent browser from cahing my pages

2009-09-10 Thread tubin gen
I want to add nocache header to my pages , code from WebPage response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-cache, max-age=0, must-revalidate); // no-store and I also added response.setHeader(Cache-Control,no-cache);

Re: DropDownChoice with Java Enum

2009-09-10 Thread cmoulliard
Thks for all. With the following syntax : add(new DropDownChoice(requestStatus, Arrays.asList(ProcessingStatusType.values()), new IChoiceRenderer() { public Object getDisplayValue(Object status) { return ((ProcessingStatusType)

Re: DropDownChoice with Java Enum

2009-09-10 Thread Pedro Santos
The value on model are on ProcessingStatusType instance. Use ((ProcessingStatusType)model.getObject()).getValue() to access the value REJEC On Thu, Sep 10, 2009 at 12:39 PM, cmoulliard cmoulli...@gmail.com wrote: Thks for all. With the following syntax : add(new

Password Field Question

2009-09-10 Thread jpalmer1026
I have the below snippet of code used to allow the user to change their password by typing their old password and then typing in their new password twice. Not sure why but I'm getting the following exception when the code is executed:WicketMessage: No get method defined for class: class

Re: prevent browser from cahing my pages

2009-09-10 Thread mbrictson
This works for me: @Override protected void setHeaders(WebResponse response) { response.setHeader(Pragma, no-cache); response.setHeader( Cache-Control, no-cache, max-age=0, must-revalidate, no-store ); } no-store is needed to

Re: prevent browser from cahing my pages

2009-09-10 Thread fachhoch
i tried this it did not work , does it have anything to do with urlencodingstrategy ? mbrictson wrote: This works for me: @Override protected void setHeaders(WebResponse response) { response.setHeader(Pragma, no-cache); response.setHeader(

Re: prevent browser from cahing my pages

2009-09-10 Thread Martin Makundi
but the browser is still caching the pages , I hit the back button or forward button the page is not refreshed , please tell me how   to prevent browser from chaching my pages. This has got nothing to do with CACHE. It is Wicket's pagemap. If you hit BACK it loadas the OLD page from PAGEMAP /

Re: prevent browser from cahing my pages

2009-09-10 Thread mbrictson
I am not sure, but you may want to double-check where the caching is actually happening, and whether setHeaders() is working. For example, using Firebug or something simliar you should be able to check if the browser cache is being used or if it is actually making an HTTP roundtrip. You should

Re: Password Field Question

2009-09-10 Thread jpalmer1026
Thanks. Worked great! Pedro Santos-6 wrote: PasswordTextField passwordField1 = new PasswordTextField(password); PasswordTextField passwordField2 = new PasswordTextField(controlPassword); on these lines you are creating components with null model, and on wicket models can be inherited

Re: prevent browser from cahing my pages

2009-09-10 Thread fachhoch
I restarted firefox and then it works.Thanks mbrictson wrote: I am not sure, but you may want to double-check where the caching is actually happening, and whether setHeaders() is working. For example, using Firebug or something simliar you should be able to check if the browser cache

CheckBoxMultipleChoice Component

2009-09-10 Thread jpalmer1026
Wondering if there is a way in Wicket to conditionally disable a particular element from a list of choices in a CheckboxMultipleChoice component? Anyone know if this is possible?

Re: CheckBoxMultipleChoice Component

2009-09-10 Thread Martin Makundi
You'd probably have to roll your own copy of CheckboxMultipleChoice because its method onComponentTagBody is final. There it would be pretty easy to individually make a checkbox enabled/disabled: // Add checkbox element

Re: CheckBoxMultipleChoice Component

2009-09-10 Thread Pedro Santos
The component let all options enabled or disabled. I wondering 3 options: 1- you can implement an AbstractReadOnlyModel that returns only the avaliable options to your CheckboxMultipleChoice 2 - open an JIRA asking to CheckboxMultipleChoice use an isEnabled(choice, index, selected) method to

Re: Wicket Stuff Core 1.4.1 Release[ing]

2009-09-10 Thread nino martinez wael
Hi Jeremy Should we have a list of offendending project? 2009/9/6 Jeremy Thomerson jer...@wickettraining.com: First, jquery was built.  They don't follow the naming conventions like they should, so you have to look into the pom to realize that it's actually wicketstuff-jquery [1]. Second,

Re: how to embed one wicket app into another

2009-09-10 Thread John Armstrong
My vote would be to create a common jar package that contains the relevant panels along with their associated business logic, DAO/ORM etc. Then you can use that jar package in both of your apps seamlessly assuming there are not more complex interactions going on. We use this paradigm on our apps

RE: Variation algorithm

2009-09-10 Thread Chris Colman
Hi Igor, Is there any interface available that we can override to implement that kind of behavior? Wicket's usually pretty good like that - there's usually some interface available that allows us to put in our own home grown implementation of something. I don't know if IResourceLocator is the

Re: how to embed one wicket app into another

2009-09-10 Thread Martin Makundi
Well.. that doesn't help if the other app is on other server and other db and live data should be viewed from the other app.. in that sad case you do need iframe. ** Martin 2009/9/10 John Armstrong siber...@siberian.org: My vote would be to create a common jar package that contains the

Re: how to embed one wicket app into another

2009-09-10 Thread John Armstrong
Databases have this cool feature called 'access control' ;) Its fairly trivial to set up the db to take connections from both apps and share the live data. The only time this hurts is if you need to share non-wicket content (image galleries or pdfs that users upload or something) since NFS is not

Re: how to embed one wicket app into another

2009-09-10 Thread Martin Makundi
Databases have this cool feature called 'access control' ;) Its fairly trivial to set up the db to take connections from both apps and share the live data. Yes but if we assume that the applications are separate, i.e., they cannot be merged. If they can be merged it turns into developing a

Serialization on objects inherited from a container

2009-09-10 Thread J.-F. Rompre
Hello, I would like to know where I could find documentation on the issue of serializing objects inherited from a component's container as in the example below. I tried looking at the wicket source code to see when this occurs but still don't understand when/how it is done. //... final Product

Re: how to embed one wicket app into another

2009-09-10 Thread John Armstrong
This was my point, many times people 'assume' they are individual apps when they are not. I just wanted to highlight that this should be investigated before the assumption was made. For example, I just completed an intranet project where it was 'assumed' that there were 3 different systems.

Re: Variation algorithm

2009-09-10 Thread Igor Vaynberg
IStringResourceLoader is what you want most likely. -igor On Thu, Sep 10, 2009 at 11:37 AM, Chris Colman chr...@stepaheadsoftware.com wrote: Hi Igor, Is there any interface available that we can override to implement that kind of behavior? Wicket's usually pretty good like that - there's

Re: Serialization on objects inherited from a container

2009-09-10 Thread Igor Vaynberg
add new Link( addToCart) { public void onClick() { getSession().getCart().add( p.getId()); //..etc your anonymous class keeps a reference to p because inside you reference p via p.getId(). -igor On Thu, Sep 10, 2009 at 12:00 PM, J.-F. Rompre jrom...@gmail.com wrote: Hello,

Re: Wicket Stuff Core 1.4.1 Release[ing]

2009-09-10 Thread Jeremy Thomerson
In the time it would take to generate the list, you could fix the problems. I wrote detailed instructions for adding projects to WS-core, so someone should be able to take those and fix the projects that are not meeting those standards. You want to do it? -- Jeremy Thomerson

back button using HistoryAjaxBehavior

2009-09-10 Thread tubin gen
I want to disable back and forward button for which I followed HistoryAjaxBehavior example final AjaxLinkVoid linkTwo = new AjaxLinkVoid(linkTwo) { private static final long serialVersionUID = 1L; @Override public void onClick(final

Extract method suggestion in MultipartServletWebRequest class

2009-09-10 Thread Esteban Masoero
Hi there: In MultipartServletWebRequest constructor we have: ... (line 93) DiskFileItemFactory factory = new DiskFileItemFactory(); ... which inhibits anyone from reusing MultipartServletWebRequest with a different factory. The only solution is generate a new class that is a copy of this one,

RefreshingView not Refreshing

2009-09-10 Thread Troy Cauble
I have a RefreshingView followed by (not in) a Form. On form submit, an object is added to the db list associated with the RefreshingView. I'm wondering why the small change (see comments) to my RV causes it to not refresh automatically. A browser refresh shows the changes. Thanks, -troy

Re: Serialization on objects inherited from a container

2009-09-10 Thread kingcode
Thanks Igor for the quick response - I guess this is stating the obvious, but I conclude that this is just part of the page/component serialization? Correct me if I am wrong, but from what I understand the reference to an outer scope obj. is a 'field' of the inner class and therefore required

Re: Serialization on objects inherited from a container

2009-09-10 Thread Igor Vaynberg
wicket serializes the page which contains all the components - so everything your components hold on to is also serialized. this is why we have models that can detach - so you can release the heavy state before the page is serialized, and reacquire it again when needed. -igor On Thu, Sep 10,

history.go(-1) in wickets?

2009-09-10 Thread Jade
Hi people, I want to have a hyperlink or button on click of which does a history.go(-1) similar to javascript.(browser back button is not be used in our application) with page parameters retained. I did see couple of posts on this, like the isVersioned of the page is to be set to true and do

Ajax Redirect with Busy Indicator

2009-09-10 Thread Robert McGuinness
I applied the busy indicator techniques found here: http://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.htmlas a site wide implementation. I am using an ajax to submit the form, and do to some condition, I redirect to the user to another page. My problem