Re: [Wicket-user] More CSS support in wicket?

2006-07-20 Thread Ayodeji Aladejebi
Okay here my little CSS solution for wicket, so if u have had my headache, you can use it. Please if you have more powerful regex approach...teach me please. May not be killer but it works just fine for me. In your CSS File (textfield.css):.textfieldStyle { background: url(${myImage});}In your

Re: [Wicket-user] More CSS support in wicket?

2006-07-20 Thread Ayodeji Aladejebi
some typo errors in previous mail:In your CSS File (textfield.css):.textfieldStyle { background: url(${myImage});}In your Wicket Code: PackageResourceReference imageRes = new PackageResourceReference(MyPanel.class , image.gif);CSSSettings css = new CSSSettings(

Re: [Wicket-user] Jboss: IOException while loading persisted sessions

2006-07-20 Thread RĂ¼diger Schulz
Hello Johan yeah, this is really strange. The stacktrace of the exception also doesn't have any wicket classes or any of my own in it. But I just see that my custom WebSession implements IRequestCycleFactory - and I don't know why ;) This is still my first wicket application, so this might be

[Wicket-user] wicket extensions palette

2006-07-20 Thread Nino Wael
Hi What do I need to override in order to populate both listboxes on construction? Currently I am giving two models that are filled to the palette, but only the left side listbox are populated, it seems the right side ignores the model? Regards Nino

[Wicket-user] Reusing Wicket Internal Javascript libraries

2006-07-20 Thread Ayodeji Aladejebi
I also want to suggest that Wicket should allow develpers to reuse certain _javascript_ libraries bundled with wicket in extending functionalities. I am not sure if the popular Prototype.js is bundled anywhere in the extensions but a certain resource reference class should be able to deliver the

Re: [Wicket-user] Reusing Wicket Internal Javascript libraries

2006-07-20 Thread Eelco Hillenius
That's pretty easy to do yourself though. See the attachement (unzip) for an example. Eelco On 7/20/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: I also want to suggest that Wicket should allow develpers to reuse certain Javascript libraries bundled with wicket in extending functionalities.

[Wicket-user] Overriding ListView#getListItemModel

2006-07-20 Thread Alex Objelean
The javadoc of the getListItemModel method of the abstract class ListView states that Subclasses may provide their own ListItemModel with extended functionality. The default ListItemModel works fine with mostly static lists where index remains valid. In cases where the underlying list changes a

Re: [Wicket-user] Overriding ListView#getListItemModel

2006-07-20 Thread Johan Compagner
Default the listmodel just stored the index of the list of the ListViewAnd then gets the object from the ListViews list back by that index.But if the list changes the index will return a different object then that ListItem was rendered with. So what you need to do is replace that index with

[Wicket-user] wicket.markup.html.form.checkbox/ajaxform behaviour/set visible(false) -- BUG?

2006-07-20 Thread Nino Wael
Hi I think I might have discovered a bug. I had a checkbox with some ajax behaviour. On the same page I also had a panel which had some form components in it, one of the components did also use ajax. I set visible(false) on the checkbox and 3 things happened 1. checkbox was no

Re: [Wicket-user] wicket.markup.html.form.checkbox/ajaxform behaviour/set visible(false) -- BUG?

2006-07-20 Thread Johan Compagner
If a component is not visible (wherever they are) will not render anything.But they shouldn't stop other behaviours that are still visible to render the right contributions.Do you have a testcase?johan On 7/20/06, Nino Wael [EMAIL PROTECTED] wrote: Hi I think I might have

Re: [Wicket-user] MarkupContainer#contains()

2006-07-20 Thread Johan Compagner
can you debug it a bit more?Because that method should work fine. It just goes through all the parents of the Link looking if one of them is the container itself.So can't see why that will go wrong.Except of course if the link is somehow getting hold on to when it is displayed in a listview and

[Wicket-user] Changing visibility via ajax

2006-07-20 Thread Paolo Di Tommaso
I want to change visibility attribute of a panel (containing other components) using Ajax. The panel initially is hidden panel.setVisible( false ).When user change selection in a radio group the panel should become visible. I've tried to do something like that :radio.add( new

Re: [Wicket-user] Changing visibility via ajax

2006-07-20 Thread Igor Vaynberg
the problem is that if the panel is hidden initially it doesnt have its div/span tag with an id attribute in the markup, so the ajax request cannot find the tag to redraw.in situations like this you have to wrap the panel in a webmarkupcontainer, call setoutputmarkupid(true) on it, and target that

[Wicket-user] Tree not shown correctly

2006-07-20 Thread Rice Yeh
Hi, I write a tree component by extending wicket.markup.html.tree.Tree. Also I extend the javax.swing.tree.DefaultTreeModel. I have my TreeModel tested in swing. It works fine. However, my tree just show the root node in wicket. What is going wrong? I have my code attached. Regards,Rice

[Wicket-user] Wierd NPE in PageMap code

2006-07-20 Thread Aaron Hiniker
When clicking back and forth on links in a fast, repetitive manner, the following error occurred. Note, I'm not sure what the onNewBrowserWindow() call is all about, this was all done from a single browser window and no new window open was triggered from the app. Also, what conditions can

[Wicket-user] Retaining values from one page view to the next

2006-07-20 Thread David Leangen
Apologies for another basic Wicket question... I understand (mostly) how the Wicket model approach works with respect to components and such. However, how do I retain values from one page view to the next? I know that I could use PageParameters, but the object I want to retain in a complex

Re: [Wicket-user] Retaining values from one page view to the next

2006-07-20 Thread Igor Vaynberg
all you have to do is pass the reference of the old page to the new pageclass ListUsersPage extends Webpage { . add(new Link(edit) { onclick() { setResponsePage(new EditUserPage( ListUsersPage.this, (User)getModelObject())); }}class EditUserPage extends WebPage { public EditUserPage(final

Re: [Wicket-user] Retaining values from one page view to the next

2006-07-20 Thread David Leangen
Of course it would have to be that simple... Thanks!! Dave On Thu, 2006-07-20 at 19:33 -0700, Igor Vaynberg wrote: all you have to do is pass the reference of the old page to the new page class ListUsersPage extends Webpage { . add(new Link(edit) { onclick() {

[Wicket-user] wicket.markup.html.tree.Tree is not suitable for very big tree

2006-07-20 Thread Rice Yeh
Hi, I find that the implementation of Wicket.markup.html.tree.Tree is not suitable for big tree. It seems because it depends on javax.swing.tree.DefaultMutableTreeNode too much, which asks for populating the whole tree before rendering Wicket.markup.html.tree.Tree. For my case, the tree is very