Good reference for clustering and page/session store options?

2008-03-14 Thread Ned Collyer
Can someone tell me of a good reference for this? The wiki and ... even google search results seem a bit light on. Does someone have a handy link? -- View this message in context: http://www.nabble.com/Good-reference-for-clustering-and-page-session-store-options--tp16045170p16045170.html Sent

Re: Good reference for clustering and page/session store options?

2008-03-14 Thread Igor Vaynberg
as of 1.3.1 the clustering piggy backs on whatever clustering you use to cluster httpsession, so i guess there isnt much to tell... -igor On Thu, Mar 13, 2008 at 11:29 PM, Ned Collyer [EMAIL PROTECTED] wrote: Can someone tell me of a good reference for this? The wiki and ... even google

[ANNOUNCE] Apache Wicket 1.3.2 is released

2008-03-14 Thread Frank Bille
Apache Wicket 1.3.2 is released! The Apache Wicket team is proud to announce the availability of the second maintenance release: Apache Wicket 1.3.2. A lot of bugs have been squashed and several improvements implemented. Eager people click here to download the distribution, others can read

Re: ListView: if my entry is one component, can I not have it nested inside the entry?

2008-03-14 Thread Maurice Marrink
you should use item.setRenderBodyOnly(true) if you want to remove span wicket:id=entry and label.setrenderBodyOnly(true) to remove the span wicket:id=label By what you are describing you want item.add(new Label(label).setRenderBodyOnly(true)); Maurice On Fri, Mar 14, 2008 at 5:57 AM,

Re: Good reference for clustering and page/session store options?

2008-03-14 Thread Matej Knopp
I think the default settings should be fine (in 1.3.1). -Matej On Fri, Mar 14, 2008 at 7:29 AM, Ned Collyer [EMAIL PROTECTED] wrote: Can someone tell me of a good reference for this? The wiki and ... even google search results seem a bit light on. Does someone have a handy link? --

TreeTable escape HTML does not work

2008-03-14 Thread wenm
Hi, I create a treetable, for one of the columns I would like to show the HTML tags, such as , so I try to disable the HTML escape using treeTable.setEscapeModelStrings(false); But it does not work at all, it stick to escape the and . I use wicket 1.3.1, and I have tested with another

Re: Is there any way to be notified somehow just after the CompoundPropertyModel is resolved by the component hierarchy?

2008-03-14 Thread Johan Compagner
override this method: /** * [EMAIL PROTECTED] org.apache.wicket.model.IComponentAssignedModel#wrapOnAssignment( org.apache.wicket.Component) */ *public* IWrapModel wrapOnAssignment(*final* Component component) { *return* *new* AssignmentWrapper(component, propertyName); } On Thu, Mar

WicketTester and RequestCycle behavior

2008-03-14 Thread lars vonk
Hi, I noticed that WicketTester behaves differently regarding the RequestCycle based on how you start a Page in your tests. I have my own custom WebRequestCycle which I return in MyWebApplication.onNewRequestCycle(). For instance: If I do: Page myPage = wicketTester.startPage(MyPage.class);

Re: Deploy Wicket 1.3 project to Websphere 6.1

2008-03-14 Thread Gwyn Evans
Does http://cwiki.apache.org/WICKET/websphere.html apply? /Gwyn On 12/03/2008, Justine Yan [EMAIL PROTECTED] wrote: Hi, I am getting Error 404 when running the helloworld example. I read it somewhere that I should use WicketServlet instead of WicketFilter. Anyone has experiences deploy to

Re: Is there any way to be notified somehow just after the CompoundPropertyModel is resolved by the component hierarchy?

2008-03-14 Thread Vitaly Tsaplin
Many thanks Johan, I am just going to explain why I need it. Lets say we have a component which accepts one or some models as a parameter(s). So it can apply initial values to its internal component hierarchy. But in case of use the CompoundPropertyModel we have no chance to do such

Re: How to pre-select a DropDownChoice

2008-03-14 Thread Juan Gabriel Arias
DropDownChoice has a lot of contructors. One of them, DropDownChoice(String id, IModel model, IModel choices, ...) The first model, could be named selectedModel. And represents the selected object, with a wicket model.

Re: Is there any way to be notified somehow just after the CompoundPropertyModel is resolved by the component hierarchy?

2008-03-14 Thread Johan Compagner
there is no specific designed solution for that no. you could also override component.initModel() for that On Fri, Mar 14, 2008 at 11:34 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Many thanks Johan, I am just going to explain why I need it. Lets say we have a component which accepts one

Re: Conditional markup

2008-03-14 Thread Martijn Dashorst
http://google.com/search?q=wicket+conditional+markup On 3/14/08, Martijn Dashorst [EMAIL PROTECTED] wrote: add(new Component(id) { @override public boolean isVisible() { return someCondition; } }); On 3/14/08, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: I have a question

Re: How to pre-select a DropDownChoice

2008-03-14 Thread Erik van Oosten
Funny, I answered the same question to my colleague this morning. Below the code I gave him. What happens is that the model is wrapped in another model. The wrapping model has a defaultModel that is used to return a value when the underlying model returns null. Below the model wrapper you find

A link-o-label needed

2008-03-14 Thread Vitaly Tsaplin
Hi experts, Does anyone know how to create a label link in wicket? In other words I need a clickable label or a link which acts as a label taking its text from a model exactly like a wicket's label. Vitaly - To

Re: A link-o-label needed

2008-03-14 Thread Vitaly Tsaplin
Thanks James, I wrote a subclass of a wicket link to archive this, but simple adding a label as a child to a link seams to be a really good idea :) Vitaly On Fri, Mar 14, 2008 at 3:17 PM, James Carman [EMAIL PROTECTED] wrote: Have you tried adding a label to your link? I do this with

Re: A link-o-label needed

2008-03-14 Thread James Carman
Yeah, the output would be something like: a href=... wicket:id=myLinkspan wicket:id=myLinkLabel //a off the top of my head. You might want to tell the label to just render its body, also. On 3/14/08, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Thanks James, I wrote a subclass of a wicket

Re: A link-o-label needed

2008-03-14 Thread James Carman
Have you tried adding a label to your link? I do this with images. I don't see why you wouldn't be able to do it with labels. On 3/14/08, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi experts, Does anyone know how to create a label link in wicket? In other words I need a clickable label

RE: How to pre-select a DropDownChoice

2008-03-14 Thread Hoover, William
Can you add this to the wiki (http://cwiki.apache.org/WICKET/dropdownchoice-examples.html)? It seems like a commonly asked question :o) -Original Message- From: Erik van Oosten [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2008 9:35 AM To: users@wicket.apache.org Subject: Re: How to

CheckGroup, CheckBox and Check

2008-03-14 Thread Greg Dunn
I've got a collection of beans (roles) containing user authorization roles that I'm using as the Model for a ListView. I'm confused by the interaction between CheckGroups, Check's and CheckBox's. If I use CheckBox my roles show up selected if the user has the role, but I can't get the Model

Re: A link-o-label needed

2008-03-14 Thread James Carman
On 3/14/08, Thomas Kappler [EMAIL PROTECTED] wrote: On Fri, Mar 14, 2008 at 3:26 PM, James Carman [EMAIL PROTECTED] wrote: Yeah, the output would be something like: a href=... wicket:id=myLinkspan wicket:id=myLinkLabel //a off the top of my head. You might want to tell the

Re: A link-o-label needed

2008-03-14 Thread Thomas Kappler
On Fri, Mar 14, 2008 at 3:26 PM, James Carman [EMAIL PROTECTED] wrote: Yeah, the output would be something like: a href=... wicket:id=myLinkspan wicket:id=myLinkLabel //a off the top of my head. You might want to tell the label to just render its body, also. What do you mean with the

Wicket Portlets

2008-03-14 Thread gaugat
I have a simple portlet created using wicket. It contains a PageableListView and PagingNavigator components. The portlet initially renders just fine. When I click on one of the paging links, I get ClassCastException. Part of the stacktrace looks like this... java.lang.ClassCastException:

Re: TreeTable escape HTML does not work

2008-03-14 Thread Igor Vaynberg
you should call escapemodelstrings on the component that the column generates, not the treetable itself -igor On Fri, Mar 14, 2008 at 2:36 AM, wenm [EMAIL PROTECTED] wrote: Hi, I create a treetable, for one of the columns I would like to show the HTML tags, such as , so I try to disable

Re: A link-o-label needed

2008-03-14 Thread Igor Vaynberg
class textlink extends link { //constructor from link that takes a model protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { replaceComponentTagBody(markupStream, openTag, getModelObjectAsString()); } } obviously

Re: CheckGroup, CheckBox and Check

2008-03-14 Thread Igor Vaynberg
checkgroup's model is the selection mode, so it should be bound to user's assigned roles list, not the list of all available roles. -igor On Fri, Mar 14, 2008 at 7:45 AM, Greg Dunn [EMAIL PROTECTED] wrote: I've got a collection of beans (roles) containing user authorization roles that I'm

Re: Conditional markup

2008-03-14 Thread Doug Leeper
There are actually many ways to what you want: 1) use fragments. to be used during the construction of the containing component 2) utilize isVisible() add( new Label( myLabel ) { public boolean isVisible() { return (if equal to my condition); } } ); This

Re: Fallback support for ModalWindow

2008-03-14 Thread Kaspar Fischer
Anybody has an idea how the modal window can be made to work when JavaScript is disabled? On 11.03.2008, at 17:18, Kaspar Fischer wrote: I am using http://www.wicket-library.com/wicket-examples/ajax/modal-window to show a modal dialog holding a component. -- First of all, thanks to the

Re: Why does SqlTimestampConverter only use the time portion of the timestamp?

2008-03-14 Thread Alex Jacoby
I can't answer your question about why, but I can suggest using a DateTextField from wicket-datetime for more control over the formatting. Unfortunately, it requires adding two jars (wicket- datetime and jodatime). Alex On Mar 13, 2008, at 2:08 PM, Markus Strickler wrote: Hi- is there

Configuring database connection pool with Jetty in QuickStart

2008-03-14 Thread Kevin Murphy
I'm having difficulty adding database functionality to my Wicket QuickStart app by configuring a JNDI data source in Jetty. I've added jetty-naming, jetty-plus, mysql-connector-java, and commons-dbcp to the POM. I have this in WEB-INF/web.xml: resource-ref descriptionMy DataSource

Re: Configuring database connection pool with Jetty in QuickStart

2008-03-14 Thread Igor Vaynberg
wouldnt this be more appropriate for the jetty mailing lists...there is a likelyhood more people on those lists will be able to help you -igor On Fri, Mar 14, 2008 at 9:45 AM, Kevin Murphy [EMAIL PROTECTED] wrote: I'm having difficulty adding database functionality to my Wicket QuickStart

DateTextField and OnChangeAjaxBehavior

2008-03-14 Thread Stephan Koch
Hi all, I'm currently having some trouble with a DateTextField. The DateTextField has a DatePicker component attached to it. Once the user changes the date with the DatePicker, the attached DateTextField is assigned the new date and should trigger the onChange event. Which it doesn't do

Re: LinkTree Node Refresh

2008-03-14 Thread jeredm
I added the following code and it correctly refreshed the node: DefaultTreeModel model = (DefaultTreeModel)tree.getModelObject(); int[] changes = new int[]{model.getIndexOfChild(parentNode, newNode)}; model.nodesWereInserted((TreeNode)parentNode, changes); The time difference seemed close to

Re: Fallback support for ModalWindow

2008-03-14 Thread Martijn Dashorst
it can't. ModalWindow is a javascript component. JavaScript is necessary for displaying, hiding, positioning, closing, etc. the div that is the modal window. The only javascript less option aiui is using popup-settings on a regular link. Martijn On 3/14/08, Kaspar Fischer [EMAIL PROTECTED]

Re: DateTextField and OnChangeAjaxBehavior

2008-03-14 Thread Igor Vaynberg
i dont think values changed via js send out onchange events. you will probably need to hook into the datepicker javascript and invoke onchange explicitly. fortunately yui stuff has a pretty good event system that widgets use, so plugging into it should probably not pose a huge problem. -igor On

RE: How to pre-select a DropDownChoice

2008-03-14 Thread Michael Mehrle
Yeah, I figured that out last night. That's actually a great way of handling the component's state. Thanks for your input. -Original Message- From: Nick Heudecker [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 5:57 PM To: users@wicket.apache.org Subject: Re: How to pre-select a

Re: Conditional markup

2008-03-14 Thread jeredm
You might check out the source for the LabelIconPanel class in org.apache.wicket.markup.html.tree. It sets the icon for the LinkTree via ResourceReferences that point to image files. You might also take a look at the LinkIconPanel (it extends LabelIconPanel) in the same tree. Mathias P.W

Re: DateTextField and OnChangeAjaxBehavior

2008-03-14 Thread Stephan Koch
So basically I could subclass DatePicker and override getAdditionalJavascript to inject some Js that triggers the onchange event in DateTextField when some useful event in DatePicker fires. I also found the appendToInit method below, but that method is never called in DatePicker. Would that

Re: DateTextField and OnChangeAjaxBehavior

2008-03-14 Thread Igor Vaynberg
On Fri, Mar 14, 2008 at 11:00 AM, Stephan Koch [EMAIL PROTECTED] wrote: So basically I could subclass DatePicker and override getAdditionalJavascript to inject some Js that triggers the onchange event in DateTextField when some useful event in DatePicker fires. thats the idea. I also

Quickstart TestHomePage exception with AuthWebSession

2008-03-14 Thread jnorris
Hi everyone, The TestHomePage test class that is created by the wicket quickstart archetype is throwing a ClassCastException when AuthenticatedWebSession is extended: Caused by: java.lang.ClassCastException: org.apache.wicket.protocol.http.WebSession at

Re: Quickstart TestHomePage exception with AuthWebSession

2008-03-14 Thread Igor Vaynberg
public void setUp() { tester = new WicketTester(new MyApplication()); } -igor On Fri, Mar 14, 2008 at 11:27 AM, jnorris [EMAIL PROTECTED] wrote: Hi everyone, The TestHomePage test class that is created by the wicket quickstart archetype is throwing a

Re: Conditional markup

2008-03-14 Thread Mathias P.W Nilsson
Thanks for your suggestions. I think this will solve my problem. -- View this message in context: http://www.nabble.com/Conditional-markup-tp16048105p16051475.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: DateTextField and OnChangeAjaxBehavior

2008-03-14 Thread Stephan Koch
My bad. I used OnChangeAjaxBehavior instead of AjaxEventBehavior, it works perfectly now. I will file a jira issue for the bug though. AjaxEventBehavior dateOnChange = new AjaxEventBehavior(onchange) { @Override protected void onEvent(AjaxRequestTarget target) { -stephan

Re: LinkTree Node Refresh

2008-03-14 Thread Matej Knopp
Sorry, I meant the updateTree method. Anyway, 23 seconds seems quite a lot to me. Any chance you could submit a stripped down example I can take a look at? -Matej On Fri, Mar 14, 2008 at 6:01 PM, jeredm [EMAIL PROTECTED] wrote: I added the following code and it correctly refreshed the node:

RE: CheckGroup, CheckBox and Check

2008-03-14 Thread Greg Dunn
Sorry if I'm being dense. I'm coming to Wicket from the Struts world. ;) The roles beans in the collection have a Boolean property 'hasRole' which I use to set the checkbox state. It has other properties I use to display the descriptions. Maybe it will be helpful for me to explain why the

Re: CheckGroup, CheckBox and Check

2008-03-14 Thread Igor Vaynberg
CheckGroup and Check work like this: CheckGroupT(String id, IModelCollectionT selected); CheckT(String id, IModelT) so checkgroup has the model that holds your selection of objects of type T, while each Check component's model contains an item of type T. when you submit the form checkgroup's

Re: JNLP File Link (within same webapp)

2008-03-14 Thread James Carman
On 3/13/08, Igor Vaynberg [EMAIL PROTECTED] wrote: see ContextImage and how it builds a context-relative path... So, still use an ExternalLink? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: JNLP File Link (within same webapp)

2008-03-14 Thread Igor Vaynberg
yeah. external link is for building non-wicket related urls -igor On Fri, Mar 14, 2008 at 2:16 PM, James Carman [EMAIL PROTECTED] wrote: On 3/13/08, Igor Vaynberg [EMAIL PROTECTED] wrote: see ContextImage and how it builds a context-relative path... So, still use an ExternalLink?

Re: Wicket Testing

2008-03-14 Thread Ricky
Hey Igor, Works for now, but i had to print to figure out the path of component ... just wondering if there is a cleaner way to get the component Path ... may be something that i am not aware of ? Thanks on the DDChoice though. appreciate it. On Fri, Mar 14, 2008 at 6:26 AM, lars vonk [EMAIL

How to pop a warning dialog box when clicking a checkbox

2008-03-14 Thread rtow
I have a requirement that when user click a checkbox, should warn the user with the consequence. The user needs to click OK/Cancel in the box to continue. Here are the checkbox codes. final CheckBox confRequired = new CheckBox(confRequired, new AbstractCheckBoxModel() { private static final

How to handle RuntimeException Ajax?

2008-03-14 Thread Gin Yeah
I have a page with AjaxFallbackButton on it. On RuntimeException, I want to show some error message in the feedbackpanel on the page. For testing, I use this one page and one form and the following code in my WebApplication to try: @Override public RequestCycle newRequestCycle(Request

css menu and wicket

2008-03-14 Thread Mathias P.W Nilsson
Hi! I have troubles creating a css menu with wicket and css. I'm using the RepeatingView in Wicket for the UL, LI list. But the UL and LI needs some extra tweek for IE. I need to do something like this for it to render properly. How can I integrate this with wicket? !--[if lte IE

Re: Configuring database connection pool with Jetty in QuickStart

2008-03-14 Thread Gin Yeah
Are you running your app using Quickstart's test.Start? That one does not have Jetty-Plus and does not load your jetty-env.xml and you will get the error you are seeing. Use 'mvn jetty:run' instead. It does Jetty-Plus and loads jetty-env.xml from WEBINF all without any additional config. If

Ajax + ListView without losing focus

2008-03-14 Thread Dan Kaplan
I have a listview. This listview displays a panel that contains trtd*textbox*/tdtd*label*/td/tr Is there a way i can update the label without making the user lose focus on the textbox they're typing in?

My New Wicket Website

2008-03-14 Thread Dan Kaplan
Hello, I wanted to let you guys know about my new wicket website: http://www.startfound.com http://www.startfound.com/ I've only been working on this for about 1.5 weeks, so there's not much functionality and it's not very interactive, but I have a lot of big plans in the future.

Re: My New Wicket Website

2008-03-14 Thread Jonathan Locke
neato. couple ideas... dropdown to select startups by category (for example, all startups with a way to make money ;-)) bigger font and a bit more margin in the footer page navigator get the startups themselves into presenting their pitch Dan Kaplan-3 wrote: Hello, I wanted to

Re: A link-o-label needed

2008-03-14 Thread Jonathan Locke
you could do it that way. another way to do it would be to create a link panel. you could then subclass and decorate the panel in various ways. i do it this way so i can leverage my application with panel factories. this can be quite powerful: i simply override a factory method or install

Re: A link-o-label needed

2008-03-14 Thread James Carman
On 3/14/08, Jonathan Locke [EMAIL PROTECTED] wrote: you could do it that way. another way to do it would be to create a link panel. you could then subclass and decorate the panel in various ways. i do it this way so i can leverage my application with panel factories. this can be quite

Re: A link-o-label needed

2008-03-14 Thread Jonathan Locke
unfortunately, that's not open source. in general, the structure of your panel factory(ies) probably depends on your application. one simple possibility is to make a factory that associates a panel class for a given model type. then just newPanel(id, model). so this simple case works only

Re: Ajax + ListView without losing focus

2008-03-14 Thread Igor Vaynberg
wicket should remember focus as of 1.3 and restore it...you can always set it manually via ajaxrequesttarget.focus(component) -igor On Fri, Mar 14, 2008 at 4:21 PM, Dan Kaplan [EMAIL PROTECTED] wrote: I have a listview. This listview displays a panel that contains

RE: My New Wicket Website

2008-03-14 Thread Dan Kaplan
Thanks for your suggestions, I appreciate your feedback. I was thinking of adding tagging to the site, would that solve the same problem that the dropdown would? Bigger font has been suggested to me before too. Do you have any specific areas for that advice, or is it just too small in general?

RE: Ajax + ListView without losing focus

2008-03-14 Thread Dan Kaplan
I'm using 1.3.1 and focus gets lost when ajax replaces the component I'm typing in. I suspect that ajaxrequesttarget.focus(component) will put the focus on the front or the end of the component rather than where it was anyway, right? -Original Message- From: Igor Vaynberg

RE: A link-o-label needed

2008-03-14 Thread Dan Kaplan
Couldn't you just do this as a panel: wicket:panel a wicket:id=linkspan wicket:id=labellabel/span/a /wicket:panel And it has this constructor: public LabelLink(String id, IModel urlModel, IModel labelModel); I'd certainly vote for that to be added to the repo -Original Message- From:

Re: My New Wicket Website

2008-03-14 Thread Phil Grimm
Dan, Very impressive for 1.5 weeks of work! How much would you attribute that productivity to Wicket vs your general experience and prowess? I've just started building a site with Wicket, but I can see that it could become very productive after working with it for a while. Coming from Struts/JSP,

Page Serialization/Deserialization

2008-03-14 Thread James Carman
All, I am trying to understand page serialization/deserialization a bit better, so I create a Quickstart project and started tinkering. I modified the HomePage class as follows: public class HomePage extends WebPage implements Externalizable { private static final Logger log =

Re: Ajax + ListView without losing focus

2008-03-14 Thread Igor Vaynberg
well, thats what you get for replacing the component that the user is actively using :) you can always wire in some js to put the cursor at the end of the textfield -igor On Fri, Mar 14, 2008 at 6:02 PM, Dan Kaplan [EMAIL PROTECTED] wrote: I'm using 1.3.1 and focus gets lost when ajax replaces