Re: Customizing palette

2008-08-05 Thread edbay
Thanks. I will do that. I was just looking for an easier way to customize the presentation. I did find out though that you can override the style sheet palette.css pretty easily, although this does not allow you to replace the images -- View this message in context:

Re: Customizing palette

2008-08-05 Thread edbay
Thanks, everyone. I did manage to replace the images by subclassing Palette and overriding newAddComponent() and newRemoveComponent(). Strange I could not do the same for the CSS file, so I created my own palette.css and added that in my html. Igor - how do I add an RFE? -- View this

Re: Palette header

2008-08-04 Thread Edbay
This code does not override the list headers. I'm using 1.3.4 - what am I doing wrong? public class MyPalette extends Palette { private static final long serialVersionUID = 1L; public MyPalette(String wicketId, Model toEntriesModel, Model fromEntriesModel, ChoiceRenderer

Re: Prepopulating palette

2008-08-04 Thread Edbay
Hi, did you find a solution to this?I have the same issue. -- View this message in context: http://www.nabble.com/Prepopulating-palette-tp18656359p18817837.html Sent from the Wicket - User mailing list archive at Nabble.com.

Customizing palette

2008-08-04 Thread Edbay
Can I customize palette to use a different set of images for the arrows? how about the layout of the headers? Can I attach a javascript to the images to do other things (for example, show more info about the selected item)? -- View this message in context:

Re: Prepopulating palette

2008-08-04 Thread Edbay
Hi, The solution is to add the selected profile to the available list See this thread: http://www.nabble.com/Palette-header-td12673870.html#a18817811 -- View this message in context: http://www.nabble.com/Prepopulating-palette-tp18656359p18818301.html Sent from the Wicket - User mailing

Re: Customizing palette

2008-08-04 Thread edbay
Can you be a bit more specific, eg. how would you replace the button images? -- View this message in context: http://www.nabble.com/Customizing-palette-tp18817932p18820997.html Sent from the Wicket - User mailing list archive at Nabble.com.

Refreshing a listview using AJAX

2008-07-29 Thread Edbay
I have a listview consisting of user info in a HTML table that I want to refresh when the user picks a value from a dropdownlist of department codes. Below is the pseudocode, cobbled together from various postings on the net. The code runs the first time; however, subsequent requests do not

Re: Refreshing a listview using AJAX

2008-07-29 Thread Edbay
Worked!!! Can you explain how putting the model name in quotes does the trick? mypage extends page{ private string dept; public mypage() { add(new dropdownchoice(id, new propertymodel(this, dept)); add(new listview(list, new propertymodel(this, users)); } public listuser getusers() {

Re: Refreshing a listview using AJAX

2008-07-29 Thread Edbay
Only problem here is that I populate the dropdown like so: List depts = new ArrayListString (); depts.add(A); depts.add(B); How do I get this list into the dropdown using the suggested code below? mypage extends page{ private string dept; public mypage() { add(new

Re: Another question on client IP address and HttpRequest

2008-07-25 Thread Edbay
Thanks, this works. It's actually in getClientInfo().getProperties().getRemoteAddress(); -- View this message in context: http://www.nabble.com/Another-question-on-client-IP-address-and-HttpRequest-tp18642444p18653387.html Sent from the Wicket - User mailing list archive at Nabble.com.

Another question on client IP address and HttpRequest

2008-07-24 Thread Edbay
I know that the client IP address can be obtained from the raw HttpRequest, but only if you are in a WebPage, but is there a way to get to it from the session? Reason I'm asking is upon the creation of a user session, I'd like to be able to get the IP address of the user and log it for audit

How to build a dynamic navigation bar

2008-07-22 Thread Edbay
Hello, I want to be able to build a left-side dynamic navigation bar based on user permissions. For example, if the user does not have access to the Prices page, I do not want to show the Prices link on the navigation bar. Also, since the link will point to a Wicket page, it has to be a

RE: How to build a dynamic navigation bar

2008-07-22 Thread Edbay
li # Link text here /li /ul Just remember to add whatever you want to the item, and not just use add(...). http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/list/ListView.html Alex -Opprinnelig melding- Fra: Edbay [mailto:[EMAIL

Re: How to build a dynamic navigation bar

2008-07-22 Thread Edbay
I get this approach. Can you provide the code for the panel? ul !-- note: the tag here is only for preview, it will be replaced by the link panel contents -- li wicket:id=menuItem # Foo /li /ul RepeatingView menu = new RepeatingView(menuItem); menu.add(new

Re: How to build a dynamic navigation bar

2008-07-22 Thread Edbay
Works! :clap: wicket:panel Foo /wicket:panel public class MyMenuPanel extends Panel { public MyMenuPanel(String id, String label, Class pageClass) { super(id); Link link = new BookmarkablePageLink(link, pageClass); add(link); link.add(new Label(label, label)); } }