Re: Best way to handle circular references

2009-09-25 Thread Giovanni Cuccu
I have no problem other than i dont like it, but since I don't like it I'd like to know if someone else had the same thoughts I had and what was the conclusion. Giovanni what is the actual problem you are having with this other then i dont like it? -igor On Wed, Sep 23, 2009 at 3:21 AM,

Re: Wicket 1.4.1 and HtmlUnit

2009-09-25 Thread Tomek Sniadach
Hi Igor, yes the application works in a browser. But with wicket 1.4-rc2 my tests are working. The behavior in wicket has changed and Htmlunit has a problem with this. I just try to find the cause, to fix it (or report a bug in htmlunit). I also suppose it is indeed a problem in HtmlUnit but I

wicketstuff-merged-resources: New (much simpler) Version

2009-09-25 Thread Stefan Fußenegger
Hi all, I just wanted to let you know that I've posted an article on the new version of wicketstuff-merged-resources: http://techblog.molindo.at/2009/09/wicketstuff-merged-resources-new-much-simpler-version.html For those that aren't aware of this small library: wicketstuff-merged-resources is

Re: Best way to handle circular references

2009-09-25 Thread Martin Makundi
Best solution is ignore circular dependencies ;) ** Martin 2009/9/25 Giovanni Cuccu giovanni.cu...@cup2000.it: I have no problem other than i dont like it, but since I don't like it I'd like to know if someone else had the same thoughts I had and what was the conclusion. Giovanni what is

Re: Best way to handle circular references

2009-09-25 Thread Igor Vaynberg
a simple way to decouple the menu from the pages is to mount all the pages and pass the mount urls into the menu instead of the page classes. that way you wont have any imports other then java.lang.String -igor On Fri, Sep 25, 2009 at 12:06 AM, Giovanni Cuccu giovanni.cu...@cup2000.it wrote: I

Re: inmethod DataGrid javascript error (with fix?)

2009-09-25 Thread Matej Knopp
Thanks. Should be fixed in SVN. -Matej On Fri, Sep 25, 2009 at 2:05 AM, Russell Morrisey rmorri...@csc.com wrote: I'm getting a javascript error using the inmethod DataGrid; it looks to me like a bug with the DataGrid's script code. I am hoping that the DataGrid script can be patched =)

Re: Is it the best way to code a Link depending on a condition

2009-09-25 Thread cmoulliard
In fact, the example createLabel is not really the most interesting. Let's me explaining what I consider as a good candidate and what I have done 1) A HTML page contains a table which is populated dynamically using a service collecting data from a DB. the last column of the table is a link

Date validation in a form / Javascriupt generation at the client side

2009-09-25 Thread Charles Moulliard
I would like to know How I can validate the string date inputted by a user in a textfield of my form ? e.g : The SimpleDateformat to be used to create a java Date is : dd/MM/ So I would like to check that the user has well introduced its date using this format in the html field. Is it

Display or not an image dynamically

2009-09-25 Thread Charles Moulliard
How can I dynamically display or not an image (= a link) in a html table page using wicket ? It means that depending on a condition, the button link will be displayed or not at all. Is it possible to create a buttonLink in Wicket ? Regards, Charles Moulliard Senior Enterprise Architect Apache

Re: Display or not an image dynamically

2009-09-25 Thread Ernesto Reinaldo Barreiro
Why not create your own panel with a link containing an image? I mean something like: wicket:panel a class=imagebutton wicket:id=link title=img wicket:id= image src=/span wicket:id=label/span/a wicket:child/ /wicket:panel And then control the visibility of this panel with

Wicket Stuff commit access

2009-09-25 Thread Slawek
Hello Please grant me commit access for wicket stuff. I want help develop objectautocomplete component . My sf account name : slawekstec My Jira account name : slawekstec thanx Slawomir Stec - To unsubscribe, e-mail:

Re: Date validation in a form / Javascriupt generation at the client side

2009-09-25 Thread Pedro Santos
I would like to know How I can validate the string date inputted by a user in a textfield of my form ? you can use: org.apache.wicket.datetime.markup.html.form.DateTextField ex: DateTextField date = DateTextField.forDatePattern(date, dd/MM/); This component will validate the inputs against

Difference between DropDownChoice and ListMultipleChoice from the eyes of an IVisitor

2009-09-25 Thread Linda van der Pal
I've used the ShinyFormVisitor that Alastair Maw came up with (http://londonwicket.googlecode.com/files/LondonWicket-FormsWithFlair.pdf) to format the validation errors on my form. But now I'm running into something that I can't explain. I have two complex fields on my form, one a

[Ajax/TabbedPanel] Issue deleting all tabs + ajax-update

2009-09-25 Thread Jens Zastrow
Hi, The TabbedPanel internaly uses a Loop to render the tab-components. During a normla GET request the Loop.onPopulate() method ensures that all the loop-childs are removed before adding them again to support a possible change of teh underlying Integer-model. Loop.onPopulate() @Override

IndexedSharedResourceCodingStrategy - shared resource not found

2009-09-25 Thread Gianni
I'm mounting a shared resource with IndexedSharedResourceCodingStrategy and in my Application class I've got: init() { ... // DynamicCss extends DynamicWebResource Resource dynamicCssResource = new DynamicCss(); getSharedResources().add(dynCss, dynamicCssResource); mount(new

Re: [Ajax/TabbedPanel] Issue deleting all tabs + ajax-update

2009-09-25 Thread Pedro Santos
You can avoid this exception making sure to remove the tab from your panel before the request cycle enter in RESPOND step. On Fri, Sep 25, 2009 at 9:05 AM, Jens Zastrow m...@jens-zastrow.de wrote: Hi, The TabbedPanel internaly uses a Loop to render the tab-components. During a normla GET

Re: FYI: new wicket site

2009-09-25 Thread Ralf Eichinger
I added it to this Wiki page: http://cwiki.apache.org/confluence/display/WICKET/Sites+and+Products+based+on+Wicket Sites and Products based on Wicket -- View this message in context: http://www.nabble.com/FYI%3A-new-wicket-site-tp17226228p25612209.html Sent from the Wicket - User mailing list

Re: 508 ajaxdefaultdatatablepanel

2009-09-25 Thread fachhoch
can I make ajaxdefaultdatatablepanel 508 ? 508 (http://www.section508.gov/) I think the pagination provided by wicket is 508 am I right ? fachhoch wrote: I am using lot of ajaxdefaultdatatable and our application should be 508 , is there a way to create the sortable columns from

Re: AjaxFallbackDefaultDataTable header disappear

2009-09-25 Thread Che Schneider
Meh, I am too retarded: Apparently Wicket 1.4.1 does solve this issue. Thanks a lot and sorry for the double post, Che Che Schneider wrote: Hello all, First of all, great mailing list and awesome knowledge assembled here. Some of the posts are true eye-openers... I have a little problem

AjaxFallbackDefaultDataTable header disappear

2009-09-25 Thread Che Schneider
Hello all, First of all, great mailing list and awesome knowledge assembled here. Some of the posts are true eye-openers... I have a little problem with Wicket, or - more likely - with my usage of it. Here goes: I am creating a AjaxFallbackDefaultDataTable and add a couple of rows and my

Wizard help

2009-09-25 Thread Jeffrey Schneller
Sorry for the duplicate post. I don't think my first post went through. I have looked at the examples and the javadocs but can't figure out how to do the following. I am a wicket newbie. I want to create a wizard with 2 steps implemented as panels. Step 1: Asks the user to enter

Re: Wizard help

2009-09-25 Thread Pedro Santos
I am just having trouble with the move from Step 1 to Step 2. I assume the success logic would be implemented in the onFinish() method of my ForgotPasswordWizard You can use an listener to implement success logic, onFinish will to be called when Finish button get pressed

Seeking speaker for BeJug, October 14th

2009-09-25 Thread Martijn Dashorst
The Belgian Java User Group is seeking a speaker for a Wicket event on October 14th, in Leuven, Belgium [1] You can find more details here: http://www.bejug.org/confluenceBeJUG/display/BeJUG/Home Due to a full schedule I'm not able to speak, so I'm looking for someone who wishes to promote

Re: [Ajax/TabbedPanel] Issue deleting all tabs + ajax-update

2009-09-25 Thread Jens Zastrow
Did you mean the the tab from the TabbedPanel or the whole TabbedPane from my page? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

RE: Wizard help

2009-09-25 Thread Jeffrey Schneller
Do I override the onFinish() method of my wizard or do I add a listener to my wizard and put the logic there? It looks like the wicket Wizard that I am extending already implements the IWizardModelListener [according to the java doc] This will allow me to perform logic needed when the wizard

Form Data Not Available When Testing a TextArea component

2009-09-25 Thread Caristi, Joe
I have a very simple Wicket web page with one TextArea for data entry on a form. This is contained in a NavomaticBorder. The form works properly, as the data is successfully saved to the database when the Submit button is clicked. My JUnit test fails however, because the data is null. I am

Re: Palette Update Behaviour Problem

2009-09-25 Thread Tim Hughes
OK, I changed the code as follows, and I'm getting a null on the patentsPalette.getRecorderComponent() method. PaletteCategory patentsPalette = new PaletteCategory (categoryPalette, selected, allCategories, renderer, 10, false); final Recorder recorder =

AjaxLink refresh and calling the constructor again.

2009-09-25 Thread Fernando Wermus
On Fri, Sep 25, 2009 at 12:38 PM, Fernando Wermus fernando.wer...@gmail.com wrote: Hi all, I have this: add(new PanelModulo(module,players,myPlayers.jpg, new PropertyModel(modelo,players), true){ private static final long serialVersionUID = -3739151258006568848L; @Override public

Re: Palette Update Behaviour Problem

2009-09-25 Thread Fernando Wermus
Ok. I am sorry to bother you. I add the behavior at before render time: protected void onBeforeRender() { super.onBeforeRender(); final Recorder recorder=palette.getRecorderComponent(); palette.getRecorderComponent().add(new AjaxFormComponentUpdatingBehavior( onchange) {

User name validation - how to check database to find if a name has already been taken?

2009-09-25 Thread Paul Huang
Hello, I would like to get your suggestion about how to validate a user name input by checking if the name has already been taken (exists in the back-end database); and how to show feedback messages right next to the input field if it has. Typically, when a user registers to a website, he needs

Re: User name validation - how to check database to find if a name has already been taken?

2009-09-25 Thread Ryan Gravener
I think you are overcomplicating things. Validate the users input, if two users want the same name within 1 second of each request you probably have bigger problems to deal with. Anyhow, when submit is called, if you get a nonunique exception. Catch in dao/service and throw an exception wicket

Re: Wicket Stuff commit access

2009-09-25 Thread Jeremy Thomerson
You're added. -- Jeremy Thomerson http://www.wickettraining.com 2009/9/25 Slawek ss...@consol.pl Hello Please grant me commit access for wicket stuff. I want help develop objectautocomplete component . My sf account name : slawekstec My Jira account name : slawekstec thanx

Re: Wicket Stuff commit access

2009-09-25 Thread Igor Vaynberg
damn, beat me by a second! -igor On Fri, Sep 25, 2009 at 9:11 AM, Jeremy Thomerson jer...@wickettraining.com wrote: You're added. -- Jeremy Thomerson http://www.wickettraining.com 2009/9/25 Slawek ss...@consol.pl Hello Please grant me commit access for wicket stuff. I want help

Re: Form Data Not Available When Testing a TextArea component

2009-09-25 Thread Igor Vaynberg
clickLink() ? shouldnt you be submitting the form? links dont submit forms afaik. -igor On Fri, Sep 25, 2009 at 8:21 AM, Caristi, Joe jcari...@whisolutions.com wrote: I have a very simple Wicket web page with one TextArea for data entry on a form.  This is contained in a NavomaticBorder.  The

Re: User name validation - how to check database to find if a name has already been taken?

2009-09-25 Thread Paul Huang
Ryan Gravener-3 wrote: I think you are overcomplicating things. Validate the users input, if two users want the same name within 1 second of each request you probably have bigger problems to deal with. So you think my current solution (extending AbstractValidator) is OK? But I still

Re: User name validation - how to check database to find if a name has already been taken?

2009-09-25 Thread Igor Vaynberg
form { onsubmit() { try { users.persist(getmodelobject()); } catch (usernamealreadyexistsexception e) { error(error.username.exists); } } } -igor On Fri, Sep 25, 2009 at 9:05 AM, Ryan Gravener r...@ryangravener.com wrote: I think you are

Re: [Ajax/TabbedPanel] Issue deleting all tabs + ajax-update

2009-09-25 Thread Jens Zastrow
ok i'm a little bit confused :-( I didt want to invoke 'tabs.remove()' during a onRender(), but during the onClick() method of by AjaxFallbackLink - like in your example. Using a normal Link the TabbedPanel doesnt throw the exception. Try your example with the AjaxTabbedPane and a

Re: defaultFormProcessing is no longer considered when processing multipart form in ajax request

2009-09-25 Thread Vladimir K
Igor, it seems the 1.4 snapshot in the maven repository still contains 1.5 code. I built wicket from sources locally. When I tested the project against that build I found yet another problem. Attempt to submit the form (no matter what value the default processing flag has) led to response with

Re: [Ajax/TabbedPanel] Issue deleting all tabs + ajax-update

2009-09-25 Thread Pedro Santos
I couldn't simulate, can you send the stack trace? On Fri, Sep 25, 2009 at 1:25 PM, Jens Zastrow m...@jens-zastrow.de wrote: ok i'm a little bit confused :-( I didt want to invoke 'tabs.remove()' during a onRender(), but during the onClick() method of by AjaxFallbackLink - like in your

RE: Form Data Not Available When Testing a TextArea component

2009-09-25 Thread Caristi, Joe
Thank you. That was it. I appreciate the help! -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Friday, September 25, 2009 12:22 PM To: users@wicket.apache.org Subject: Re: Form Data Not Available When Testing a TextArea component clickLink() ? shouldnt you

Activate datapicker onblur

2009-09-25 Thread Luca Provenzani
Hi all, how can i activate (open datapicker window) when user click(or focus) on the correlate textbox? Thanks Luca

Re: AjaxLink refresh and calling the constructor again.

2009-09-25 Thread Pedro Santos
ajax wicket debug making the request but, I realized that It didn't call the constructor again the components add to ajax request target already are instantiated. You need to resolve the complexity of new data refresh on your component model. See if at some point you are updating players

GridView and refreshing with an ajax call

2009-09-25 Thread Fernando Wermus
Hi all,I have an ajaxclick which should refresh a gridview, but this doesnt happened. I saw someone reporting the same issue and I would like to know if this has been fixed it. The fact, it is that the gridview' s model is called just one at construction time. It does refresh the gridview but

Re: AjaxLink refresh and calling the constructor again.

2009-09-25 Thread Fernando Wermus
I do. I realized the following: ListDataProvider which I extend to get the data show, doesnt take models!! It only takes list. When ayaxlink is called, the ListDataProvider is refreshed but with old data because It lacks of a model. There is a mail talking about this issue.

ListDataProvider doesnt take models. Why?

2009-09-25 Thread Fernando Wermus
I have some problems refreshing a GridView because ListDataProvider doesnt take Models. Why? It doesnt make sense, models are an esencial part of wicket and I couldn't find any implementation which takes model. Am I wrong? I had to implement my own ListDataProvider. package

Re: AjaxLink refresh and calling the constructor again.

2009-09-25 Thread Pedro Santos
1 - be sure to work on those list items. You are working on new ones? Keep an referent to this list, call list.clear() and add those new items on it. 2 - how about to implement your own IDataProvider? ListDataProvider is a very simple implementation that helds one single list On Fri, Sep 25,

Problem with @RequireHttps and Tests

2009-09-25 Thread Rangel Preis
I put the @RequireHttps annotation in my LoginPage, and it's work fine when i run the app. But when i run my tests all test fail, if I remove @RequireHttps all test pass correctly Here's the problem, when i run this code without the annotation the wicket tester call the button btn_login. If i put

Re: Wicket-auth-roles + EJB 3 (Authentication and Authorization)

2009-09-25 Thread jraanamo
jraanamo wrote: - how did you get the principal all the way to the ejb container (via jndi context?) and which container were you using? - were you able to handle authorization via e.g. @RolesAllowed annotations? Ok, I got principal delegated to ejb container by using Glassfish's

Re: Problem with @RequireHttps and Tests

2009-09-25 Thread Igor Vaynberg
so in your tests do not install the httpsrequestcycleprocessor -igor On Fri, Sep 25, 2009 at 10:46 AM, Rangel Preis rangel...@gmail.com wrote: I put the @RequireHttps annotation in my LoginPage, and it's work fine when i run the app. But when i run my tests all test fail, if I remove

2 new models for wicket

2009-09-25 Thread Garz
heyho everyone, since i'm not satisfied with the provided models, i started to write my own. the current behaviour with compoundproperty model is, that compoundproperty model serves as host for an object and components can use properties of that host by having the correct id that has to equal

Re: AjaxLink refresh and calling the constructor again.

2009-09-25 Thread Fernando Wermus
Pedro, I chose the second option and now is working. What I do not understand is why there isnt a ListDataProvider (provided by wicket) that accepts models. On Fri, Sep 25, 2009 at 2:23 PM, Pedro Santos pedros...@gmail.com wrote: 1 - be sure to work on those list items. You are working on

Re: 2 new models for wicket

2009-09-25 Thread Per Newgro
Puhh, very long article. Did you've tried MyDomainModel myDomainModel; CompoundPropertyModel model = new CompoundPropertyModel(myDomainModel); AContainer.add(new MarkupContainer(new PropertyModel(model, theGetPropertyInMyDomainModelToSubModel)); If MyDomainModel provides an accessor for

Re: Problem with @RequireHttps and Tests

2009-09-25 Thread Rangel Preis
Thanks a lot Igor, now it's works. 2009/9/25 Igor Vaynberg igor.vaynb...@gmail.com: so in your tests do not install the httpsrequestcycleprocessor -igor On Fri, Sep 25, 2009 at 10:46 AM, Rangel Preis rangel...@gmail.com wrote: I put the @RequireHttps annotation in my LoginPage, and it's

Re: 2 new models for wicket

2009-09-25 Thread Igor Vaynberg
or new CompoundPropertyModel(new PropertyModel(model, theGetPropertyInMyDomainModelToSubModel)) which basically creates a CPM that refers to a property of another CPM. personally i do not like CPMs, they are a shortcut that gets abused way too often :) -igor On Fri, Sep 25, 2009 at 11:21 AM,

Re: AjaxLink refresh and calling the constructor again.

2009-09-25 Thread Pedro Santos
In the case of ListDataProvider, it is an very simple interface. I believe the most repeaters with complexity enough that an simple mutable list can't resolve, wish to have they own ListDataProvider. If you figure out an generic ListDataProvider to complex data calculation/search/access, let us

Re: GridView and refreshing with an ajax call

2009-09-25 Thread Altuğ B . Altıntaş
Did you add the component to AjaxRequestTarget target.addComponent(yourGridview) Also don't forget this : yourGridview.setOutputMarkupId(true); A.B.A 2009/9/25 Fernando Wermus fernando.wer...@gmail.com Hi all,I have an ajaxclick which should refresh a gridview, but this doesnt happened.

html tag doesn't render by the browser

2009-09-25 Thread Altuğ B . Altıntaş
Hi all ; Problem is html tag - bold brdoesn't process ; I don't know if this problem related with Wicket. Let me explain it by simple code: HTML side : wicket:panel span wicket:id=test test code comes here /span /wicket:panel Java side : String test = Java bSoftware/b

Re: html tag doesn't render by the browser

2009-09-25 Thread Pedro Santos
Wicket is using html scape character to output your string on model, so it will to be presented as '' and ''. u can set FLAG_ESCAPE_MODEL_STRINGS to the componet http://static.ddpoker.com/javadoc/wicket/1.4-rc2/org/apache/wicket/Component.html#getDefaultModelObjectAsString() On Fri, Sep 25, 2009

Re: html tag doesn't render by the browser

2009-09-25 Thread Altuğ B . Altıntaş
Thanks Pedro; String test = Get the latest Java bSoftware/b and br/explore how Java technology provides a better digital experience.; Label label = new Label(test, new Model(test)); label.setEscapeModelStrings(false); works for me !! setEscapeModelStrings(false); is the key part. Thanks.

Re: Form Processing problem on pages with Border - Wicket 1.4.1

2009-09-25 Thread Flavius
When I first posted this, I posted it multiple times thinking that it wasn't going through. Sorry about that. Pedro S had posted a reply to one of the duplicates I have since removed and I wanted to put it here: = The internalUpdateFormComponentModels method in 1.3.6

Re: html tag doesn't render by the browser

2009-09-25 Thread Jeremy Thomerson
on your label call .setEscapeModelStrings(true); -- Jeremy Thomerson http://www.wickettraining.com On Fri, Sep 25, 2009 at 6:28 PM, Altuğ B. Altıntaş alt...@gmail.com wrote: Thanks Pedro; String test = Get the latest Java bSoftware/b and br/explore how Java technology provides a better

Re: html tag doesn't render by the browser

2009-09-25 Thread Jeremy Thomerson
Oops - meant false - and then also saw the other replies. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Sep 25, 2009 at 10:42 PM, Jeremy Thomerson jer...@wickettraining.com wrote: on your label call .setEscapeModelStrings(true); -- Jeremy Thomerson