Re: [OT] Apache con 2010 europe, when?

2010-02-26 Thread Martijn Dashorst
This year there's no ApacheCon EU. Martijn On Fri, Feb 26, 2010 at 8:16 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Thanks for the suggestions.. But no one know's when apache con eu are? 2010/2/25 Wilhelmsen Tor Iver toriv...@arrive.no Then there is JavaZone in Oslo later

autolink not work ?

2010-02-26 Thread marioosh.net
I have packages: net.marioosh.wicket.learn1.lesson4 net.marioosh.wicket.learn1.linkownia and webpage: Index.html in linkownia package: wicket:linka href=../lesson4/Lesson4.html Lesson4/a/wicket:linkbr/ wicket:linka href=../linkownia/Index.htmlIndex1/a/wicket:link

Re: autolink not work ?

2010-02-26 Thread Martijn Dashorst
wicket:link doesn't work for ../ paths. Use bookmarkablepagelinks instead. Martijn On Fri, Feb 26, 2010 at 9:42 AM, marioosh.net marioosh@gmail.com wrote: I have packages: net.marioosh.wicket.learn1.lesson4 net.marioosh.wicket.learn1.linkownia and webpage: Index.html in linkownia

Re: autolink not work ?

2010-02-26 Thread Witold Czaplewski
Are you sure Martijn? I use ../ paths in a project without problems. e.g wicket:link lia href=../users/UserPage.htmlUsers/li /wicket:link UserPage.html is the name of the HTML-Template, not the mounted url. Witold Am Fri, 26 Feb 2010 09:46:58 +0100 schrieb Martijn Dashorst

W.: serializable problem

2010-02-26 Thread bj�rn liffers
hello, i´ve got a problem with serialization. my application is connected to a mysql-db and every class of mine implements serializable. but still there are exceptions telling me that java.lang.Object isn´t serializable... quote

Re: DropDown where (type of model property) != (type of choices)

2010-02-26 Thread elygre
MattyDE wrote: Great! Thanks a lot for this BeanDropDownChoice-Component ... iam a little bit dissapointed that something similiar is not include inside the standard-wicket framework Thanks -- I'm glad to hear you enjoyed it :-) If you want this to be part of Wicket itself, you may

Re: [OT] Apache con 2010 europe, when?

2010-02-26 Thread Tomasz Dziurko
If you've never been in Poland I only could invite you to visit us. There is even an occasion :) GeeCon Conference http://2010.geecon.org/main/home -- Pozdrawiam / Regards Tomasz Dziurko - To unsubscribe, e-mail:

UI Layout

2010-02-26 Thread Josh Kamau
Wicket offers high level of flexibility when it comes to page layout. So i ask, what are the best practices? is it ok if i use panels only and one main layout page? Kind regards Josh.

Role-based wicket application

2010-02-26 Thread Jing Ge (Besitec IT DEHAM)
Hello guys, We have been using wicket since more than one year. It is very comfortable to work with wicket and live here in this community. Thanks you guys! Now we want to add more features into our application and we get a (actually very common) problem: What is the correct way for

Same model for ListMultipleChoice and ListView

2010-02-26 Thread Cyril
Hello, I'm looking for the way to use the same IModel for a ListMultipleChoiceUser and a ListViewUser. My model implements IModelListUser because the ListView object needs a IModel? extends java.util.List? extends T. But the ListMutipleChoice needs a IModeljava.util.CollectionT model. I can't

Re: W.: serializable problem

2010-02-26 Thread bgooren
It looks like you are serializing the MySQL connection. You should not keep it around in the session, but rather create a connection when you need it, or use a connection pool. exceptionist wrote: hello, i´ve got a problem with serialization. my application is connected to a mysql-db and

Re: W.: serializable problem

2010-02-26 Thread James Carman
Please don't re-post. We've already started to answer your question in another thread (I asked you if you had a Connection field somewhere). 2010/2/26 björn liffers bad.ad...@arcor.de: hello, i´ve got a problem with serialization. my application is connected to a mysql-db and every class of

Re: Role-based wicket application

2010-02-26 Thread James Carman
Have you looked into wicket-auth-roles? On Fri, Feb 26, 2010 at 5:35 AM, Jing Ge (Besitec IT DEHAM) j...@besitec.com wrote: Hello guys, We have been using wicket since more than one year. It is very comfortable to work with wicket and live here in this community. Thanks you guys! Now

Re: Same model for ListMultipleChoice and ListView

2010-02-26 Thread James Carman
That should have been fixed. We should have probably done IModel? extends CollectionT when we (I believe I submitted a patch) changed all the rest of the stuff to take IModel? extends List? extends T and stuff. We could change it without breaking anything. Widening it up would only allow it to

Re: autolink not work ?

2010-02-26 Thread Thomas Singer
We've made Wicket convert all links automatically (even those starting with ..) without the need for wicket:link. If somebody is interested, please let me know. Tom On 26.02.2010 09:46, Martijn Dashorst wrote: wicket:link doesn't work for ../ paths. Use bookmarkablepagelinks instead.

Re: W.: serializable problem

2010-02-26 Thread exceptionist
i´m sorry for reposting, but i still don´t find the other thread.. i thought my mail didn´t arrived or something like that.. if you have a link for me :) (would be kind) my connection didn´t fail i get all the data i need and the page shows what it should show. what about the connectio-pool?

Re: Shared resources with parameters?

2010-02-26 Thread Vladimir K
For now I can't benefit from 304 Not Modified when shared parameterized resource is mounted with custom mount path (say /databaseimage/ in contrary to /resources/) and backed by database. I mean it is not easy to benefit from just implementing IResourceStream.lastModifiedTime(). It is due

Re: W.: serializable problem

2010-02-26 Thread James Carman
We're not saying your connection failed. What we're saying is that a JDBC connection isn't serializable. You shouldn't have a field in your class for your JDBC connection. What you should do is re-establish your connection during each request by either re-connecting or grabbing a new connection

Re: Model to use for static Label text

2010-02-26 Thread Riyad Kalla
Serban, I really wouldn't trying and mess with detachable models unless you were dealing with 100s of individual Strings that were climbing up beyond 4k each or something like that -- if you are literally talking about UI labels, that is so few bytes that leaving them static references is going

Re: [OT] Apache con 2010 europe, when?

2010-02-26 Thread nino martinez wael
Argh! Thanks for the info Martijn. 2010/2/26 Martijn Dashorst martijn.dasho...@gmail.com This year there's no ApacheCon EU. Martijn On Fri, Feb 26, 2010 at 8:16 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Thanks for the suggestions.. But no one know's when apache con

Re: [OT] Apache con 2010 europe, when?

2010-02-26 Thread nino martinez wael
Interesting, i'll put that in the lineup aswell. Do you know if there's more tracks this year, meaning more simultaneous talks? And if theres any talks on Agile and Test Driven and maybe something about User Experience too? And if it's still only 2 days of conference? regards Nino 2010/2/26

Re: UI Layout

2010-02-26 Thread nino martinez wael
For me it seems it would very confusing if I only had one page. I'd prefer pages that are target against their specific functionality, keeping code simpler. I'd still be using panels though, giving the benefit of ajax, role base plus all the other stuff. my 2 centavos -Nino 2010/2/26 Josh Kamau

jWicket release 0.5.0

2010-02-26 Thread Stefan Lindner
I have committed jWicket version 0.5.0 to wicketstuff Changes: - jQuery update to Version 1.4.2 - jQuery UI update to 1.8RC2 - drag/drop/resize improvements to work in IE 6/7/8 after AJAX update or in LazyLoad panels - drag/drop/resize improvements for less footprint in HTML, smaller js code

Re: W.: serializable problem

2010-02-26 Thread exceptionist
oh my bad.. i read failed instead of field :) the uploaded file is my connection-pooling-class... and now i don´t get the exception at java.lang.object it is org.apache.commons.dbcp.BasicDataSource instead -.- http://old.nabble.com/file/p27718624/conpooling.java conpooling.java this

Re: W.: serializable problem

2010-02-26 Thread James Carman
You could store your connection pool in your Application object. That doesn't get serialized. And, you can get to that easily whenever you want by calling the static get() method. You shouldn't be storing your data source at the page/component level. On Fri, Feb 26, 2010 at 9:01 AM,

Re: format float/double in dataview

2010-02-26 Thread Riyad Kalla
new SimpleAttributeModifier(text-align, right) on the Label? On Thu, Feb 25, 2010 at 4:39 AM, James Carman jcar...@carmanconsulting.comwrote: I would think that you'd add either a style or class attribute to the cell, perhaps? On Thu, Feb 25, 2010 at 6:02 AM, Andreas Lüdtke

Re: format float/double in dataview

2010-02-26 Thread Wilhelmsen Tor Iver
new SimpleAttributeModifier(text-align, right) on the Label? text-align is not a known attribute. It is a CSS property so SimpleAttributeModifier(style, text-align: right) could work, or there is an attribute align that may or may not be OK depending on HTML spec. - Tor Iver

Re: format float/double in dataview

2010-02-26 Thread Riyad Kalla
DOH, Wilhelmsen thanks for catching that. On Fri, Feb 26, 2010 at 7:08 AM, Wilhelmsen Tor Iver toriv...@arrive.nowrote: new SimpleAttributeModifier(text-align, right) on the Label? text-align is not a known attribute. It is a CSS property so SimpleAttributeModifier(style, text-align: right)

Why getString() is replacing placeHolders in value ?

2010-02-26 Thread Michał Letyński
Hi. Lets consider following situation. I have a property: info.msg=User has added ${text} And the object named Content with such string field text. String textFromProperty = getString(info.msg, new ModelContent(content))); When the text with my Content object have value for e.g test i

Re: format float/double in dataview

2010-02-26 Thread James Carman
Using CSS makes it XHTML compatible. On Fri, Feb 26, 2010 at 9:18 AM, Riyad Kalla rka...@gmail.com wrote: DOH, Wilhelmsen thanks for catching that. On Fri, Feb 26, 2010 at 7:08 AM, Wilhelmsen Tor Iver toriv...@arrive.nowrote: new SimpleAttributeModifier(text-align, right) on the Label?

Re: W.: serializable problem

2010-02-26 Thread T Ames
Here was my response to your original post: Serialization gets tricky. You must be very careful about all of the class level fields/objects you use. They must all be serializable and each object that those objects use or refer to must be serializable. Instead of using class level fields, wherever

RE: format float/double in dataview

2010-02-26 Thread Andreas Lüdtke
Riyad, my code is as follows: @Override public void populateItem(ItemICellPopulatorT item, java.lang.String componentId, IModelT rowModel) { item.add(new AttributeAppender(align, true, Model.of(right), ;)); super.populateItem(item, componentId, rowModel); } This way, the cell

Re: [OT] Apache con 2010 europe, when?

2010-02-26 Thread Tomasz Dziurko
2010/2/26 nino martinez wael nino.martinez.w...@gmail.com: Interesting, i'll put that in the lineup aswell. Do you know if there's more tracks this year, meaning more simultaneous talks? Year ago there were two tracks (http://2009.geecon.org/site/schedule ) but I am not sure how would it look

RE: UI Layout

2010-02-26 Thread Frank Silbermann
Single page versus multi-page application? Some people build a single-page application in which panels are replaced dynamically. With this approach, the single page is analogous to a Swing JFrame, to whom components are added and removed (or made visible or invisible as needed). Many

nested fragments?

2010-02-26 Thread wic...@geofflancaster.com
is it possible to have nested fragments? does anyone have a code snippet they can share? when i try to add the new fragment to the existing fragment i get an error stating: WicketMessage: The component(s) below failed to render. A common problem is that you have added a component in code but

Re: UI Layout

2010-02-26 Thread Martin Makundi
Hi! I would propose using mashup approach, it's more flexible you don't need abstract factory methods for adding content: http://code.google.com/p/wicket-mashup/ ** Martin 2010/2/26 Frank Silbermann frank.silberm...@fedex.com: Single page versus multi-page application? Some people build a

Re: format float/double in dataview

2010-02-26 Thread Riyad Kalla
Andreas, Thanks for sharing that. I'm glad you got it working. _R On Fri, Feb 26, 2010 at 7:40 AM, Andreas Lüdtke sam.lued...@t-online.dewrote: Riyad, my code is as follows: @Override public void populateItem(ItemICellPopulatorT item, java.lang.String componentId, IModelT rowModel)

Re: Why getString() is replacing placeHolders in value ?

2010-02-26 Thread Igor Vaynberg
the loop is in variableinterpolator.tostring(). if you want to not escape placeholders then you can output them as $${simple}text -igor 2010/2/26 Michał Letyński mletyn...@consol.pl: Hi. Lets consider following situation. I have a  property:       info.msg=User has added ${text} And the

Re: W.: serializable problem

2010-02-26 Thread Igor Vaynberg
On Fri, Feb 26, 2010 at 4:42 AM, exceptionist bad.ad...@arcor.de wrote: i´m sorry for reposting, but i still don´t find the other thread.. i thought my mail didn´t arrived or something like that.. if you have a link for me :) (would be kind)

Re: nested fragments?

2010-02-26 Thread Igor Vaynberg
On Fri, Feb 26, 2010 at 8:12 AM, wic...@geofflancaster.com wic...@geofflancaster.com wrote: is it possible to have nested fragments? does anyone have a code snippet they can share? maybe you can share more of your code -igor when i try to add the new fragment to the existing fragment i get

Re: How to 'resolve' URL in stylesheet?

2010-02-26 Thread Igor Vaynberg
if you keep your css and your images together in a package and use relative urls in the css it will work. -igor On Fri, Feb 26, 2010 at 8:21 AM, Sergey Olefir solf.li...@gmail.com wrote: Hi, I'm wondering if it is possible to 'resolve' URLs in stylesheets so that they would point to packaged

Re: Hint on best way of setting a dinamic value to a localized message

2010-02-26 Thread Esteban Masoero
Thanks igor. Would it be possible to add this example to some wicket example page? Because I think it could be a common use case. Thanks, Esteban El 25/02/2010 20:22, Igor Vaynberg escribió: getstring(key,new model(new micromap(url,url)); -igor On Thu, Feb 25, 2010 at 1:59 PM, Esteban

Wicket Courses - Spring 2010, London and Amsterdam

2010-02-26 Thread Cemal Bayramoglu
Here is our public Wicket course schedule for Spring 2010: March 6-7(Sat-Sun) March 9-10(Tue-Wed) April 10-11(Sat-Sun) April 12-13(Mon-Tue) May 8-9(Sat-Sun) May 10-11(Mon-Tue) For full details and bespoke requirements see http://jWeekend.com Dates for Amsterdam will be announced soon. We also

Re: Hint on best way of setting a dinamic value to a localized message

2010-02-26 Thread Igor Vaynberg
you are more then welcome to add it to the wiki -igor On Fri, Feb 26, 2010 at 8:52 AM, Esteban Masoero emaso...@getsense.com.ar wrote: Thanks igor. Would it be possible to add this example to some wicket example page? Because I think it could be a common use case. Thanks, Esteban El

Ajax refresh outer panel

2010-02-26 Thread marioosh.net
I have LoginPanel like below: public class LoginPanel extends Panel { public LoginPanel(String id) { super(id); MySession.get().setLoginPanel(this); this.setOutputMarkupId(true); if(MySession.get().getUser() != null) {

Re: autolink not work ?

2010-02-26 Thread Andrew Lombardi
Index1 and Index2 are generated as italics because you are on the same page. If you use autolink and you're on the same page, they show up as italics Index3 doesn't work because you've got a slash preceding the package name. And linkownia isn't one of the packages defined in your root, so

Re: Hint on best way of setting a dinamic value to a localized message

2010-02-26 Thread Esteban Masoero
ok, let me find the right place for it. In the meantime, who is allowed to give me access to edit the wiki? El 26/02/2010 14:12, Igor Vaynberg escribió: you are more then welcome to add it to the wiki -igor On Fri, Feb 26, 2010 at 8:52 AM, Esteban Masoero emaso...@getsense.com.ar wrote:

wicketstuff svn organisation

2010-02-26 Thread Stefan Lindner
I have committed jWicket 0.5 to trunk. It's a stable an distribution ready version. Should I commit changes to releases/wicketstuff-core-1.4-rc7? Or is this done by the wicketstuff maintainers? Stefan - To unsubscribe, e-mail:

Re: Hint on best way of setting a dinamic value to a localized message

2010-02-26 Thread Igor Vaynberg
you can sign up yourself -igor On Fri, Feb 26, 2010 at 10:06 AM, Esteban Masoero emaso...@getsense.com.ar wrote: ok, let me find the right place for it. In the meantime, who is allowed to give me access to edit the wiki? El 26/02/2010 14:12, Igor Vaynberg escribió: you are more then

How to keep language .properties file in a separate folder from the html pages

2010-02-26 Thread Eric Reagan
I would like to keep my .html files in a seperate folder from the language files and I was wondering how to do this? I keep my html files in html/main/*.html and my language .properties files in language/(languageName)/*.properties. I tried adding the following to my MyWebApp. When I try and run

Conditionally Render Different Fragments (via Radio Choice Selection)?

2010-02-26 Thread Corbin, James
I have radio group (RadioChoice) with two options that conditionally renders one of two fragments. The two fragments are pre-created and then attach onchange ajax behavior to the RadioChoice component that toggles the visibility of the fragments depending upon the selection made for the

Re: Conditionally Render Different Fragments (via Radio Choice Selection)?

2010-02-26 Thread Riyad Kalla
JD, If you flip the initial visible fragment to the 2nd one, does the inverse condition apply? (frag2 is visible and frag1 isn't visible?) If you check the source of the generated HTML, you are seeing the generated placeholder tag for the 2nd fragment so it can be made visible right? -R On

RE: Conditionally Render Different Fragments (via Radio Choice Selection)?

2010-02-26 Thread Corbin, James
I looked at the ajax debug output and noticed there was no reference to one of the fragments. With only one div for the fragment, what I needed to do was conditionally add and remove the fragment components depending upon the selection of the RadioChoice and re-add the form via

Re: Conditionally Render Different Fragments (via Radio Choice Selection)?

2010-02-26 Thread Riyad Kalla
J.D., What did your HTML look like for each of these conditional fragments and how were they represented in your code before you fixed it? Curious what it looked like before/after for my own know-how. -R On Fri, Feb 26, 2010 at 12:26 PM, Corbin, James jcor...@iqnavigator.comwrote: I looked

Print friendly panel

2010-02-26 Thread Josh Chappelle
Hi, Does anyone know of a suggested method to render a printer friendly panel to a separate browser window so that user's can print? The only thing I have found is the following article and it looks a little clunky. http://cwiki.apache.org/WICKET/rendering-panel-to-a-string.html

Re: nested fragments?

2010-02-26 Thread wic...@geofflancaster.com
Ok, So I have a repeater that repeats different fragments many times. One of the fragments has a sub-fragment. On another note, a fragment may not be the best solution to my problem. Essentially I want to be able to show/hide a piece of HTML depending on a previous form selection. ie. in a drop

Re: Wicket Stuff Html Validator

2010-02-26 Thread Martijn Dashorst
I am unable to reproduce it. I've downloaded the jar from the wicketstuff repo and put it in a quickstart and added it as a jar dependency. I then modified the homepage to look like this: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN

Re: Print friendly panel

2010-02-26 Thread Michael O'Cleirigh
Hi Josh, I'd create a PrinterFriendlyPage and then use a customized Link from the NotPrinterFriendlyPage to have it open in a new window. Link has this public method where you can setup the PopupSettings class that seems to provide the configuration hooks for how the popup should work when

Re: nested fragments?

2010-02-26 Thread Igor Vaynberg
the code is incomplete, but im going to guess that it is this line: outerFragment.add(sampleTypeFragment); does that have a matching html placeholder? i also dont see any nested fragments, eg nested wicket:fragment tags, so this isnt about fragments. you are not nesting your components properly

Generic warning ListMultipleChoice

2010-02-26 Thread Juris Maskalans
Hi, I have a question regarding ListMultipleChoice. How to overcome generic warning. ListMultipleChoice is a raw type. References to generic type ListMultipleChoiceT should be parameterized Despite of this the code works fine: ListMultipleChoice tmp = new ListMultipleChoice(tmp, new

Re: How to keep language .properties file in a separate folder from the html pages

2010-02-26 Thread Igor Vaynberg
when such an error happens, as part of it there is a message that tells you to enable a resource logger to see all paths tried. what does that output? -igor On Fri, Feb 26, 2010 at 10:33 AM, Eric Reagan reaga...@gmail.com wrote: I would like to keep my .html files in a seperate folder from the

Re: Generic warning ListMultipleChoice

2010-02-26 Thread Igor Vaynberg
ListMultipleChoiceString tmp = new ListMultipleChoiceString(... -igor On Fri, Feb 26, 2010 at 2:07 PM, Juris Maskalans jmaskal...@gmail.com wrote: Hi, I have a question regarding ListMultipleChoice. How to overcome generic warning. ListMultipleChoice is a raw type. References to generic

Debugging in Netbeans - Lists don't load

2010-02-26 Thread Garrett Fry
Qualifying information: Im a noob Trying to get a DropDownChoice working. Ive read every post I can find, and slowly losing my mind. I like to solve my own problems if I can, but I can't even debug properly. Everytime I set a breakpoint and step through... the Lists that are loaded via

Re: Debugging in Netbeans - Lists don't load

2010-02-26 Thread Riyad Kalla
Garrett, I would start simple, remove Wicket as much as possible from this situation first. In your DAO or whatever you are using to do the query and load the results from the DB -- just System.out the contents of the list to the console. Until you get that working, don't bother thinking about

wicket-guicier -- Another Guice integration for Wicket

2010-02-26 Thread Joachim F. Kainz
Fellow Users, Because the retails application my team is developing is mostly stateless, we are quite frequently have to use PageParameters. The untyped nature of this class has let to some nasty code. To address the issue I have thrown together wicket-guicer, which is Yet Another Guice

Re: wicketstuff svn organisation

2010-02-26 Thread Jeremy Thomerson
Code goes in trunk. When you (or anyone else) cut a release, you tag that revision of trunk into releases (svn cp .../trunk .../releases/release-name) -- Jeremy Thomerson http://www.wickettraining.com On Fri, Feb 26, 2010 at 12:18 PM, Stefan Lindner lind...@visionet.dewrote: I have