Re: [Wicket-user] How to position the panel tab

2007-05-30 Thread Alex Objelean
It seems that you need some css guidance: http://www.positioniseverything.net/ Visit This link Lec wrote: > > Do you happen to know the attribute and its value for setting the position > to the right? > > > Timo Rantalaiho wrote: >> >> On Wed, 30 May 2007, Lec wrote: >>> I need some guidan

Re: [Wicket-user] How to position the panel tab

2007-05-30 Thread Lec
Do you happen to know the attribute and its value for setting the position to the right? Timo Rantalaiho wrote: > > On Wed, 30 May 2007, Lec wrote: >> I need some guidance. By default, normally we will see either a panel tab >> or >> multiple tab appear on the far left of the screen. How do we

Re: [Wicket-user] [BUG]

2007-05-30 Thread Alex Objelean
Not necessarily, only if you (core developers) consider that it worth the effort.. I just thought that this workaround could be useful for anyone who have struggled with the same problem... Alex Eelco Hillenius wrote: > >> 2) Wrap the script into the tag, like this: >> >> >> >> //your

Re: [Wicket-user] modalwindow open fails

2007-05-30 Thread Jonathan Locke
ugh. looks like this was another session issue (different thing though). one thing that was helpful in tracking this down was turning on the AJAX debugging window. Jonathan Locke wrote: > > this may be my problem, but i'm having a bit of trouble with modal windows > that won't open and wonde

Re: [Wicket-user] How to position the panel tab

2007-05-30 Thread Timo Rantalaiho
On Wed, 30 May 2007, Lec wrote: > I need some guidance. By default, normally we will see either a panel tab or > multiple tab appear on the far left of the screen. How do we position them ( > the panel tabs ) in such a way that they will appear on the far right rather > than the left? With CSS. Ju

Re: [Wicket-user] Is it possible to remove something from a page?

2007-05-30 Thread Eelco Hillenius
> new WebMarkupContainer("removeMe") { > protected void onBeforeRender() { > super.onBeforeRender(); > setVisible(sometimesFalse()); > } > } That, or alternatively, new WebMarkupContainer("removeMe") { public boolean isVisible() { return sometimesFalse(); } } Eelc

[Wicket-user] How to position the panel tab

2007-05-30 Thread Lec
I need some guidance. By default, normally we will see either a panel tab or multiple tab appear on the far left of the screen. How do we position them ( the panel tabs ) in such a way that they will appear on the far right rather than the left? -- View this message in context: http://www.nabble

Re: [Wicket-user] Is it possible to remove something from a page?

2007-05-30 Thread Timo Rantalaiho
On Wed, 30 May 2007, Lowell Kirsh wrote: > I making a web page which contains some markup that I'd like to remove > (sometimes). I imagine it would look like: > > ... > Hello World > ... > > Is it possible to remove this markup? new WebMarkupContainer("removeMe") { protected void onBeforeRen

Re: [Wicket-user] Best Practices for accessing/repainting sibling/cousin components?

2007-05-30 Thread James McLaughlin
+1. It can be tedious sometimes figuring out how to update components that are on the other side of the tree from the onClick. best, jim On 5/30/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: > > > Maybe another way to auto-ajax-update a component would be to have it do > that whenever its model

Re: [Wicket-user] Adding more onclick script to ajax link?

2007-05-30 Thread James McLaughlin
If you mean getAjaxCallDecorator(), it is surely there. Just override it to return your implementation of AjaxCallDecorator. To add to the onclick, you will need to override the decorateScript method of AjaxCallDecorator. best, jim On 5/30/07, Tremelune <[EMAIL PROTECTED]> wrote: > > I'm looking

[Wicket-user] Is it possible to remove something from a page?

2007-05-30 Thread Lowell Kirsh
I making a web page which contains some markup that I'd like to remove (sometimes). I imagine it would look like: ... Hello World ... Is it possible to remove this markup? Thanks Lowell - This SF.net email is sponsored by D

Re: [Wicket-user] modalwindow open fails

2007-05-30 Thread Jonathan Locke
BTW, I know that the AJAX request to open the window is occurring because I get this [15:31:00] INFO - RequestLogger - time=11,event=Interface[target:SendToFriendModalWindow$1(xyz:sendToFriendLink), page: web.pages.index.IndexPage(6), interface: IBehaviorListener.onRequest],[EMAIL

Re: [Wicket-user] Best Practices for accessing/repainting sibling/cousin components?

2007-05-30 Thread Jonathan Locke
Maybe another way to auto-ajax-update a component would be to have it do that whenever its model changes. There are a lot of caveats with model change notifications, but that seems to be a pretty clean idea if the rules for model changes were respected. Might make a good RFE for next Wicket ver

Re: [Wicket-user] Best Practices for accessing/repainting sibling/cousin components?

2007-05-30 Thread Jonathan Locke
It shouldn't be hard to write the method you're talking about. To find all the components using the same model as a given component, just walk the component hierarchy using visitChildren() and add any component which returns true for sameInnermostModel(component). There is a more general case o

[Wicket-user] modalwindow open fails

2007-05-30 Thread Jonathan Locke
this may be my problem, but i'm having a bit of trouble with modal windows that won't open and wondering if there are any known gotchas or words of wisdom for what to look at... -- View this message in context: http://www.nabble.com/modalwindow-open-fails-tf3843250.html#a10883547 Sent from the

[Wicket-user] Adding more onclick script to ajax link?

2007-05-30 Thread Tremelune
I'm looking to add an additional script to the onclick of a (paging) ajax link. I stumbled on this thread: http://www.nabble.com/Appending-to-AJAX-Submit-Button-onclick-tf1695285.html#a4600751 I can't seem to find the additional code in 1.3. The thread is a year old, perhaps the code was discard

[Wicket-user] DateTimeField surviving Ajax updates

2007-05-30 Thread Aaron Hiniker
I have a AjaxTabbedPanel that contains the Yahoo DateTimeField from extensions. The calendar works fine on a page refresh, but when clicking to other tabs with Ajax loading each tab, the DateTimeFields quit working. Has anyone else experienced this and found a workaround or fix? Thanks Aar

Re: [Wicket-user] [BUG]

2007-05-30 Thread Eelco Hillenius
> 2) Wrap the script into the tag, like this: > > > > //your script > Is this something Wicket can/ should do by default? Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE ver

Re: [Wicket-user] Chicken-and-egg w/ Data Provider

2007-05-30 Thread V. Jenks
I prefer not to do it that way because it requires a potentially large list of records to be pulled up initially whereas now, I'm only pulling the records on the current page, making it much faster. I pass the x & y right through to the data access layer. Johan Compagner wrote: > > this only w

[Wicket-user] Wicket & Acegi - small implementation

2007-05-30 Thread Jan Kriesten
huhu! i just gave acegi with your wicket-role-model a try and came up with this quick implementation (2 java & 1 xml-file): http://wicket.silberlicht.de/misc/acegi-wicket.tar.gz (2k size) you need the acegi-framework from http://www.acegisecurity.org/ and the spring.jar (acegi needs this for

[Wicket-user] FW: wicket scriptaculous drag and drop

2007-05-30 Thread Apaar Trivedi
-Original Message- From: Ryan Sonnek [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 30, 2007 12:45 PM To: Apaar Trivedi Subject: Re: wicket scriptaculous drag and drop Thanks for the feedback. This question might be applicable to the wicket user mailing list. My suggestion is to use t

Re: [Wicket-user] Skin effect in wicket

2007-05-30 Thread Eelco Hillenius
> I am using wicket 1.2.6 API. I couldnt find this > "org.apache.wicket.markup.IMarkupCacheKeyProvider" interface. Could you > please tell me which jar or wicket has this interface. It's a new feature of Wicket 1.3. Unfortunately, we can't support this in 1.2. Eelco -

[Wicket-user] Best Practices for accessing/repainting sibling/cousin components?

2007-05-30 Thread dukejansen
I have some state which backs two panels, Panel A and Panel B, that may be included as part of other panels. Ultimately they are both on the same page, and their backing state is shared via the model class that backs both of them. Panel A has an Ajax event handler which modifies the backing model

Re: [Wicket-user] Have to click 2 times to get my search results

2007-05-30 Thread Francisco Diaz Trepat - gmail
Johan many thanks for answering I think so. Here is the structure of the code: 1) A panel that contains a Form (fields name and lastName) and a Table (PageableListView). 2) A small SearchPage like this: public DossierSearch() { super(); add(new ch.logismata.wicket.panels.ajax.Dossi

[Wicket-user] Wiki reference page on custom converter is outdated

2007-05-30 Thread Anto Paul
Hi all, The reference about using custom converter in apache wiki is outdated( http://cwiki.apache.org/confluence/display/WICKET/Using+custom+converters#Usingcustomconverters-Provideacustomconverterfactory). I could'nt find the method getConverterFactory() in Application class. Can somebody upd

[Wicket-user] How To Test with getApplication method

2007-05-30 Thread tma tma
Hi I am not native English speaker. sorry for poor English. I use wicket 1.2.6 . I have question to use WicketTester. i want to make Global object ,create instance in WebApplication Class and create method to access the instance. In WebPage class ,access the instance like this SingleClass clas

Re: [Wicket-user] Skin effect in wicket

2007-05-30 Thread Javed
I am using wicket 1.2.6 API. I couldnt find this "org.apache.wicket.markup.IMarkupCacheKeyProvider" interface. Could you please tell me which jar or wicket has this interface. Thanks in advance. Eelco Hillenius wrote: > > Look at PageWithCustomLoading. It implements IMarkupCacheKeyProvider > a

Re: [Wicket-user] Implementing a PopupPanel

2007-05-30 Thread John Krasnay
Ah, I see. If your popup functionality is pure client-side Javascript, couldn't you just turn it into a Behavior that you attach to a Label, Image, or whatever, that sets the "onclick" attribute of whatever you attached it to? jk On Wed, May 30, 2007 at 10:13:40AM -0400, Ravindra Wankar wrote: >

Re: [Wicket-user] Skin effect in wicket

2007-05-30 Thread Eelco Hillenius
Look at PageWithCustomLoading. It implements IMarkupCacheKeyProvider and has method: /** * Prevent the markup from ever be cached. This is optionally - components * that don't implement [EMAIL PROTECTED] IMarkupCacheKeyProvider} will just have their * markup ca

Re: [Wicket-user] Chicken-and-egg w/ Data Provider

2007-05-30 Thread kroekle
The size() method was one of my biggest stumbling blocks when I started using DataProvders, but for slightly different reasons (i.e. just having a size method makes it less maintainable, perform worse, less scalable and gives less accurate results). But when I tried to work around the size method

[Wicket-user] Stable URLs (Was: Bookmarkable pages and transparent login)

2007-05-30 Thread Thomas Singer
OK, I've tried to create an unversioned page to keep the URL stable using following page code: > public class DownloadFile extends TemplatePage { > > // Constants > == > > private static final String FILE_PARAMETER = "file

Re: [Wicket-user] 1.2.x trunk stack overflow

2007-05-30 Thread Johan Compagner
no i thnk AlMaw wants to take a look at it. johan On 5/30/07, Ingram Chen <[EMAIL PROTECTED]> wrote: In 1.2.x trunk, Settings still use old implemation: public String getContextPath() { // Set the default context path if the context path is not already // set (previou

Re: [Wicket-user] Implementing a PopupPanel

2007-05-30 Thread Ravindra Wankar
Thanks John. I was suspecting no one to reply to a long mail. Unfortunately, in my case the getTitle() returns a component not the label text. The component returned by the child can either be a "label" or an "image" component. The derived class gets the label text in its constructor which it

Re: [Wicket-user] 1.2.x trunk stack overflow

2007-05-30 Thread Ingram Chen
In 1.2.x trunk, Settings still use old implemation: public String getContextPath() { // Set the default context path if the context path is not already // set (previous time or by the developer itself) // This all to do missing api in the servlet spec.. You can't get a

Re: [Wicket-user] [Nuub] Best practise: Navigation Component

2007-05-30 Thread John Krasnay
One idea would be to create a class that represents the logical idea of a link, e.g public class NavEntry { private String title; private Class pageClass; private PageParameters parameters; ... } Pass a list of these to the constructor of your panel, which then renders these i

Re: [Wicket-user] Implementing a PopupPanel

2007-05-30 Thread John Krasnay
One way to solve the "abstract method from the constructor" problem (or more precisely, the "non-final method from the constructor" problem) is to use a Model, e.g... public class PopupPanel extends Panel { public abstract String getTitle(); public PopupPanel(String id) { add(new L

[Wicket-user] [BUG]

2007-05-30 Thread Alex Objelean
Probably it is well known bug for most of you, but I think it worth to mention again about it and its workaround. The bug appears when the ajax response contains a which normally should be evaluated (and it does in gecko browsers) but the script is not evaluated in IE (any version, including IE

Re: [Wicket-user] Bug in 1.3? HeaderContributor.forCss(String)

2007-05-30 Thread Al Maw
Relative URLs are good - they make the page work properly behind proxy servers. Why do you want an absolute one? Do your resources live in a different context or something? If you're trying to serve resources relative to your context root, just add it with: add(HeaderContributor.forCss("resources/

Re: [Wicket-user] Map.Entry and serialization

2007-05-30 Thread Sven Schliesing
Ah, perfect :) Thank you so much for your help! Johan Compagner wrote: > Model model = new Model(map) > { > getObject() > { > return new List(map.entries()) > } > } > > ListView lv = new ListView(x,model); > johan

Re: [Wicket-user] Skin effect in wicket

2007-05-30 Thread Javed
I tried with customresourceloading from wicket-examples its working but the problem is with markup cache. I am having to different markups for the same page(java file) so when I start my server and hit that page it with criteria that selects markup dynamically it displays that page with that mark

Re: [Wicket-user] Chicken-and-egg w/ Data Provider

2007-05-30 Thread Johan Compagner
this only works if you have a seperate method: private List getOrders() { if (orders == null) { orders = DAO.getOrders() } } iterator() { return getOrders().sublist(x,y).iterator() } size() { return getOrders().size(); } detach() { orders = null; } johan On 5/29/07, V. Jenks

Re: [Wicket-user] Map.Entry and serialization

2007-05-30 Thread Johan Compagner
Model model = new Model(map) { getObject() { return new List(map.entries()) } } ListView lv = new ListView(x,model); johan On 5/30/07, Sven Schliesing <[EMAIL PROTECTED]> wrote: I tried that already. But I ran into the following problem: Caused by: java.lang.ClassCastException: java.u

Re: [Wicket-user] Map.Entry and serialization

2007-05-30 Thread Sven Schliesing
I tried that already. But I ran into the following problem: Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.List at org.apache.wicket.markup.html.list.ListView.getList(ListView.java:174) at org.apache.wicket.markup.html.list.ListView.getView

Re: [Wicket-user] 1.2.x trunk stack overflow

2007-05-30 Thread Johan Compagner
that seems to be a problem yes what i did was change the Settigngs one: contextPath = ((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getContextPath(); so that i directly call the context path of the http servlet request. i think that should work fine, or does some have We

Re: [Wicket-user] Map.Entry and serialization

2007-05-30 Thread Johan Compagner
ahh ok change this new ListView("list", new ArrayList>(map.entrySet())) { thats wrong you can't keep Map.Entry objects in a arraylist. why not keep the map yourself? new ListView("list", new Model(map) { johan On 5/30/07, Sven Schliesing <[EMAIL PROTECTED]> wrote: Changing the code to: new

Re: [Wicket-user] Map.Entry and serialization

2007-05-30 Thread Matthieu Casanova
2007/5/30, Sven Schliesing <[EMAIL PROTECTED]>: Changing the code to: new ListView("list", new ArrayList>(map.entrySet())) { public void populateItem(ListItem listItem) { Map.Entry entry = (Map.Entry) listItem.getModelObject(); ... } }; doesn't fix the problem. Furthermore h

Re: [Wicket-user] Autocomplete - selecting (higlighting)firstoptionby default.

2007-05-30 Thread Dipu
I have created a JIRA issue https://issues.apache.org/jira/browse/WICKET-602 Regards Dipu - Original Message - From: "Eelco Hillenius" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 29, 2007 5:08 PM Subject: Re: [Wicket-user] Autocomplete - selecting (higlighting)firstoptionby default.

Re: [Wicket-user] Map.Entry and serialization

2007-05-30 Thread Sven Schliesing
Changing the code to: new ListView("list", new ArrayList>(map.entrySet())) { public void populateItem(ListItem listItem) { Map.Entry entry = (Map.Entry) listItem.getModelObject(); ... } }; doesn't fix the problem. Furthermore http://java.sun.com/j2se/1.5.0/docs/api/java/util/M

Re: [Wicket-user] Conditional output

2007-05-30 Thread Maurice Marrink
You should use an attribute modifier on the totals row. like this totalsRow.add(new AttributeModifier("colspan",myModel)); If you know for a fact the number of columns is not going to change after a page refresh you could use a new SimpleAttributeModifier("colspan",length) else you should use a mod

Re: [Wicket-user] RadioGroup vs RadioChoice

2007-05-30 Thread Nino Saturnino Martinez Vazquez Wael
Hi The largest difference between the two is how much control you want over the components. the Radio(used with radiogroup) lets you place your radios exactly where you desire where as the radiochoice has a somewhat fixed formatting and "just" prints out radios. regards Nino howzat wrote: > T