Re: navigation menu
Well at the beginning of my email I stated that it is not complete. I don't there is a way to do it directly, but you may wanna change the code or use some pieces to make it the way you want it, better than starting from scratch. Take a look at the source of both components and then you can create your own. cheers, fatih -Original Message- From: hubert_hupe Sent: Thursday, June 09, 2011 15:31 PM To: users@wicket.apache.org Subject: Re: navigation menu hi, the wicket menu works fairly ( http://www.cooldatasoft.com/wicket-menu-demo/wicket/bookmarkable/com.cooldatasoft.page.SunriseGlossDropDownMenuDemo?1 ) the problem at the moment is that the target page (p1) replaces the current page where the menu is inside. is there a way to define a target container/DIV where the target page should be shown? for example like this: http://wicketstuff.org/wicket/navomatic/ regards hubert i used the component in this way: final testMenu p1 = new testMenu(); //Define Primary Menu items (menuText,destinationWebPage) MenuItem primaryMenu1 = new MenuItem("MENU 1",p1); List primaryMenuList = new ArrayList(); primaryMenuList.add(primaryMenu1); add(new SunriseGlossDropDownMenu("sunriseGlossMenu", primaryMenuList)); markup: Am 08.06.2011 um 21:33 schrieb Peter Karich: Am 08.06.2011 um 17:51 schrieb Fatih Mehmet Ucar: http://code.google.com/p/wicket-menu/ Not complete but if you see the source code, it will give you an idea. cheers, -fatih On 8 June 2011 16:28, hubert_hupe wrote: hi guys, i have no clue how to create a simple navigation bar like this: http://net.tutsplus.com/tutorials/javascript-ajax/a-different-top-navigation/ if possible i need images for the headlines. when you move the mouse over the menu it drops down - there are millions of website with this functionality. the problem is: i have to ceate the menu dynamically. the informations which menuitem should be in the menu comes from the database. so i cannot use a static javascript code in the html file. is anybody there who can give me a hint or even an example? best regards hubert - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: navigation menu
http://code.google.com/p/wicket-menu/ Not complete but if you see the source code, it will give you an idea. cheers, -fatih On 8 June 2011 16:28, hubert_hupe wrote: > hi guys, > > i have no clue how to create a simple navigation bar like this: > http://net.tutsplus.com/tutorials/javascript-ajax/a-different-top-navigation/ > if possible i need images for the headlines. > when you move the mouse over the menu it drops down - there are millions of > website with this functionality. > the problem is: i have to ceate the menu dynamically. the informations which > menuitem should be in the menu comes from the database. so i cannot use a > static javascript code in the html file. > is anybody there who can give me a hint or even an example? > > best regards > > hubert > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: setRenderBodyOnly with ListView and attributes
I think ListView is designed for html TABLE and each iteration prints the TR tag, see the wiki for example. You may wanna use DataView instead to avoid that case. Live examples can be reference point for that. -fmu - Original Message - From: "J" To: Sent: Saturday, August 21, 2010 4:44 PM Subject: Re: setRenderBodyOnly with ListView and attributes Here is the complete (test) code SOLUTION 1 : wicket:container = TestPage.html TestPage.java import java.util.Arrays; import java.util.List; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.list.ListItem; import org.apache.wicket.markup.html.list.ListView; public class TestPage extends WebPage { public TestPage() { List products = Arrays.asList("productA", "productB", "productC"); ListView productsView = new ListView("products", products) { protected void populateItem(ListItem item) { String product = (String) item.getModelObject(); item.add(new Label("product", product)); } }; add(productsView); } } == SOLUTION 2 : extra div in WicketHTML == TestPage.html TestPage.java import java.util.Arrays; import java.util.List; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.list.ListItem; import org.apache.wicket.markup.html.list.ListView; public class TestPage extends WebPage { public TestPage() { List products = Arrays.asList("productA", "productB", "productC"); ListView productsView = new ListView("products", products) { protected void populateItem(ListItem item) { String product = (String) item.getModelObject(); item.add(new Label("product", product)); item.setRenderBodyOnly(true); } }; add(productsView); } } Wanted/Required and generated output of solution1 & 2 === productA productB productC == For this common scenario: -solution 1 violates Wickets "Just HTML" philosophy in that the wicket:container tag is used. -solution 2 violates Wickets "Just HTML" philosophy in that an extra unwanted div is required in WicketHTML (although not visible in the generated HTML). No other solutions have been found/discussed yet. - Original Message - From: Fatih Mehmet UCAR Sent: 08/21/10 05:02 PM To: users@wicket.apache.org Subject: Re: setRenderBodyOnly with ListView and attributes send your html and java code, there may be other ways of doing this. - Original Message - From: "J" To: Sent: Saturday, August 21, 2010 3:29 PM Subject: Re: setRenderBodyOnly with ListView and attributes >I made a mistake in my first post. The output of wasn't: > > > . > . > . > . > > > but it was: > . > . > . > . > > So the outer div is missing. > Which is caused by item.setRenderBodyOnly(true). But if I disable (set > to > false) this (the default), I get: > > . > . > . > . > > which is even worse. > > A solution (the only?) to this double div problem and at the same time > the > missing attribute problem, is using wicket:container tags. (see > http://apache-wicket.1842946.n4.nabble.com/Panel-in-List-remove-extra-div-td1877053.html ) > This leads to this solution: > > > > > . > > > > Wicket:container tags make it ugly imo, because it violates wickts > "just > HTML" philosophy, even though my problem is a very common scenario. > > >> - Original Message - >> From: Fatih Mehmet UCAR >> Sent: 08/21/10 04:05 PM >> To: users@wicket.apache.org >> Subject: Re: setRenderBodyOnly with ListView and attributes >> >> Add another html div with css class you want around the below list div >> ; >> >> >> >> and for the productsViev in the java code setRenderBodyOnly to true. >> >> -fmu >> >> >> - Original Message - >> From: "J" >> To: >> Sent: Saturday, August 21, 2010 2:49 PM >> Subject: Re: setRenderBodyOnly with ListView and attributes >> >> >> > It somehow feels bad/wrong to move CSS from WicketHTML to JavaCode, >> > where >> > it shouldn't belong, for such a common scenario. >> > It defeats the purpose of having HTML in Wicket. But there probably >> > is >> > no >> > other way. >> > >> > Anyway, thanks for your reply :) >> > >> > >> >
Re: setRenderBodyOnly with ListView and attributes
send your html and java code, there may be other ways of doing this. - Original Message - From: "J" To: Sent: Saturday, August 21, 2010 3:29 PM Subject: Re: setRenderBodyOnly with ListView and attributes I made a mistake in my first post. The output of wasn't: . . . . but it was: . . . . So the outer div is missing. Which is caused by item.setRenderBodyOnly(true). But if I disable (set to false) this (the default), I get: . . . . which is even worse. A solution (the only?) to this double div problem and at the same time the missing attribute problem, is using wicket:container tags. (see http://apache-wicket.1842946.n4.nabble.com/Panel-in-List-remove-extra-div-td1877053.html ) This leads to this solution: . Wicket:container tags make it ugly imo, because it violates wickts "just HTML" philosophy, even though my problem is a very common scenario. - Original Message - From: Fatih Mehmet UCAR Sent: 08/21/10 04:05 PM To: users@wicket.apache.org Subject: Re: setRenderBodyOnly with ListView and attributes Add another html div with css class you want around the below list div ; and for the productsViev in the java code setRenderBodyOnly to true. -fmu - Original Message - From: "J" To: Sent: Saturday, August 21, 2010 2:49 PM Subject: Re: setRenderBodyOnly with ListView and attributes > It somehow feels bad/wrong to move CSS from WicketHTML to JavaCode, > where > it shouldn't belong, for such a common scenario. > It defeats the purpose of having HTML in Wicket. But there probably is > no > other way. > > Anyway, thanks for your reply :) > > >> - Original Message - >> >> From: Fatih Mehmet UCAR >> Sent: 08/21/10 03:43 PM >> To: users@wicket.apache.org >> Subject: Re: setRenderBodyOnly with ListView and attributes >> >> AttributeAppender class will help you to acheive that. >> >> -fmu >> >> - Original Message - >> From: "J" >> To: >> Sent: Saturday, August 21, 2010 2:24 PM >> Subject: setRenderBodyOnly with ListView and attributes >> >> >> > hi, I want to have Wicket to generate the following HTML precisely: >> > >> > >> > . >> > . >> > . >> > . >> > >> > >> > But with my code, I don't get further than: >> > >> > >> > . >> > . >> > . >> > . >> > >> > >> > so the class attribute is missing in the outer div. >> > >> > My Wicket HTML is: >> > >> > . >> > >> > >> > >> > My code: >> > ListView productsView = new ListView("productsView", products) { >> > protected void populateItem(ListItem item) { >> > item.setRenderBodyOnly(true); >> > item.add(new ProductPanel("productPanel", item.getModelObject())); >> > } >> > }; >> > add(productsView); >> > >> > >> > What is the Wicket way of achieving this? >> > (A solution is to use the wicket:container tag, but that's a bit >> > ugly, >> > right?) >> > >> > - >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> > For additional commands, e-mail: users-h...@wicket.apache.org >> > >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: setRenderBodyOnly with ListView and attributes
Add another html div with css class you want around the below list div ; and for the productsViev in the java code setRenderBodyOnly to true. -fmu - Original Message - From: "J" To: Sent: Saturday, August 21, 2010 2:49 PM Subject: Re: setRenderBodyOnly with ListView and attributes It somehow feels bad/wrong to move CSS from WicketHTML to JavaCode, where it shouldn't belong, for such a common scenario. It defeats the purpose of having HTML in Wicket. But there probably is no other way. Anyway, thanks for your reply :) - Original Message ----- From: Fatih Mehmet UCAR Sent: 08/21/10 03:43 PM To: users@wicket.apache.org Subject: Re: setRenderBodyOnly with ListView and attributes AttributeAppender class will help you to acheive that. -fmu - Original Message - From: "J" To: Sent: Saturday, August 21, 2010 2:24 PM Subject: setRenderBodyOnly with ListView and attributes > hi, I want to have Wicket to generate the following HTML precisely: > > > . > . > . > . > > > But with my code, I don't get further than: > > > . > . > . > . > > > so the class attribute is missing in the outer div. > > My Wicket HTML is: > > . > > > > My code: > ListView productsView = new ListView("productsView", products) { > protected void populateItem(ListItem item) { > item.setRenderBodyOnly(true); > item.add(new ProductPanel("productPanel", item.getModelObject())); > } > }; > add(productsView); > > > What is the Wicket way of achieving this? > (A solution is to use the wicket:container tag, but that's a bit ugly, > right?) > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: setRenderBodyOnly with ListView and attributes
AttributeAppender class will help you to acheive that. -fmu - Original Message - From: "J" To: Sent: Saturday, August 21, 2010 2:24 PM Subject: setRenderBodyOnly with ListView and attributes hi, I want to have Wicket to generate the following HTML precisely: . . . . But with my code, I don't get further than: . . . . so the class attribute is missing in the outer div. My Wicket HTML is: . My code: ListView productsView = new ListView("productsView", products) { protected void populateItem(ListItem item) { item.setRenderBodyOnly(true); item.add(new ProductPanel("productPanel", item.getModelObject())); } }; add(productsView); What is the Wicket way of achieving this? (A solution is to use the wicket:container tag, but that's a bit ugly, right?) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: scroll bar for palette
You need to override the getCSS method. You may use the below code and css. @Override protected ResourceReference getCSS() { return new ResourceReference(Palette.class, "RelistPalette.css"); } table.palette { border: 0; } table.palette td.header { text-align: center; font-weight: bold; font-size: 9pt; background-color: #eef7ff; padding: 2px; border-top: 1px solid #729ac2; border-bottom: 1px solid #729ac2; } table.palette td.pane { width: 200px; text-align: center; } table.palette td.pane select { width: 200px; } table.palette td.buttons { text-align: center; padding-left: 10px; padding-right: 10px; } table.palette td.buttons button { width: 40px; height: 40px; } select::-moz-dummy-option { visibility: hidden; content: ""; } - Original Message - From: "rasheed" To: Sent: Tuesday, August 10, 2010 6:38 PM Subject: scroll bar for palette hello, is there a way to show scroll bar in wicket palette? i've tried this css but doesn't work : table.palette td.pane select { width:400px !important; scroll: auto!important; } help plz -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/scroll-bar-for-palette-tp2320164p2320164.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: serializable problem
probably you have some non-serializable object in your page, have you checked? -fmu On 25 February 2010 14:40, James Carman wrote: > Do you have a java.sql.Connection field in one of your components/pages? > > 2010/2/25 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... >> >> >> org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: >> Unable to serialize class: java.lang.Object >> >> private java.util.Map com.mysql.jdbc.ConnectionImpl.charsetConverterMap >> [class=java.util.HashMap] >> private java.util.Map >> com.mysql.jdbc.ConnectionImpl.charsetConverterMap[write:1][write:2] >> [class=java.lang.Object] <- field that is not serializable >> >> >> is there a possibility to deactivate serialization? >> or how shall i solve this problem? >> >> kind regards ans many thanks to those who can help me out of the >> serialization-jungle (never serialized anything before and i am relatively >> new to wicket with my very first real wicket-project) >> >> Immer auf dem Laufenden! Sport, Auto, Reise, Politik und Promis. Von uns für >> Sie: der neue Arcor.de-Newsletter! >> Jetzt anmelden und einfach alles wissen: >> http://www.arcor.de/rd/footer.newsletter >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT] Wicket App Hosting
linode is the best for me up to now www.linode.com you may need to know a little bit linux/unix though On 25 February 2010 12:39, Josh Kamau wrote: > When i wanted to do the same, i bought a server space at > www.theserverexperts.com and installed my staff there . ie. Jetty, postgres > and the like. I then bought a domain and liked it with my public ip address. > > Regards. > > On Thu, Feb 25, 2010 at 3:50 AM, Mauro Ciancio wrote: > >> Hello everyone, >> >> I need to deploy a couple of wicket apps (2 or 3 apps). I'm looking for >> advices >> in order to get a good hosting service. In fact, I think i'll get a vps >> service. >> >> Any advices? Which vps providers are good? >> >> Thanks in advance. >> Cheers! >> -- >> Mauro Ciancio >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: javascript confirm - seems to work fine with link markup but not with button markup
yes, if you are gonna use this in several places, creating a class like AttributePrepender may be a better idea. 2010/1/20 Ernesto Reinaldo Barreiro : > I remember Martijn advising to copy/paste AttributeAppender and transforming > it to AttributePrepender for such a use case... > > Best, > > Ernesto > > On Wed, Jan 20, 2010 at 4:26 PM, Steve Whitson > wrote: > >> Thanks for the suggestion... >> >> It appears as though I need to insert the attribute before the existing >> onclick attribute. How do I retrieve the existing onclick attribute? My >> hope is to retrieve the existing onclick attribute so I can prepend my >> onclick action and use AttributeModifier to replace the existing with the >> newly prepended content. >> >> Thanks much, >> -Steve >> >> >> >> Fatih Mehmet Ucar wrote: >> >>> AttributeAppender should solve your problem. >>> >>> fmu >>> >>> 2010/1/20 Steve Whitson : >>> >>> >>>> Hi, >>>> >>>> I'm new to wicket, and am working on my first app. Great alternative to >>>> other WebUI frameworks! >>>> >>>> I've added a link to my panel using this code: >>>> >>>> Link deleteReportLink = new Link( "deletereport" ) { >>>> �...@override >>>> public void onClick() { >>>> System.out.println("deleting report" ); >>>> service.deleteReport( selectedReport ); >>>> } >>>> }; >>>> add( deleteReportLink ); >>>> >>>> // add a confirmation to the Delete Report operation >>>> deleteReportLink.add( >>>> new SimpleAttributeModifier( "onclick", "return confirm( 'Are >>>> you >>>> sure?');" ) >>>> ); >>>> >>>> Here's the markup: >>>> >>>> Delete Report >>>> >>>> >>>> >>>> In the markup, when I use an 'a' tag the javascript confirmation dialog >>>> works fine along with the onClick() override. When I use it with either >>>> of >>>> the (commented out) button inputs, the dialog appears, but the >>>> 'onClick()' >>>> override is never executed. >>>> >>>> I'd much rather this work with a button and not a hyperlink. >>>> >>>> Any ideas or help is greatly appreciated. >>>> -Steve >>>> >>>> >>>> >>>> - >>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>> >>>> >>>> >>>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: javascript confirm - seems to work fine with link markup but not with button markup
onClick code is created in onComponentTag(), and replaced by getOnClickScript() you can override the getOnClickScript() to prepend custom js code. fmu 2010/1/20 Steve Whitson : > Thanks for the suggestion... > > It appears as though I need to insert the attribute before the existing > onclick attribute. How do I retrieve the existing onclick attribute? My > hope is to retrieve the existing onclick attribute so I can prepend my > onclick action and use AttributeModifier to replace the existing with the > newly prepended content. > > Thanks much, > -Steve > > > Fatih Mehmet Ucar wrote: >> >> AttributeAppender should solve your problem. >> >> fmu >> >> 2010/1/20 Steve Whitson : >> >>> >>> Hi, >>> >>> I'm new to wicket, and am working on my first app. Great alternative to >>> other WebUI frameworks! >>> >>> I've added a link to my panel using this code: >>> >>> Link deleteReportLink = new Link( "deletereport" ) { >>> �...@override >>> public void onClick() { >>> System.out.println("deleting report" ); >>> service.deleteReport( selectedReport ); >>> } >>> }; >>> add( deleteReportLink ); >>> >>> // add a confirmation to the Delete Report operation >>> deleteReportLink.add( >>> new SimpleAttributeModifier( "onclick", "return confirm( 'Are >>> you >>> sure?');" ) >>> ); >>> >>> Here's the markup: >>> >>> Delete Report >>> >>> >>> >>> In the markup, when I use an 'a' tag the javascript confirmation dialog >>> works fine along with the onClick() override. When I use it with either >>> of >>> the (commented out) button inputs, the dialog appears, but the >>> 'onClick()' >>> override is never executed. >>> >>> I'd much rather this work with a button and not a hyperlink. >>> >>> Any ideas or help is greatly appreciated. >>> -Steve >>> >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: javascript confirm - seems to work fine with link markup but not with button markup
AttributeAppender should solve your problem. fmu 2010/1/20 Steve Whitson : > Hi, > > I'm new to wicket, and am working on my first app. Great alternative to > other WebUI frameworks! > > I've added a link to my panel using this code: > > Link deleteReportLink = new Link( "deletereport" ) { > @Override > public void onClick() { > System.out.println("deleting report" ); > service.deleteReport( selectedReport ); > } > }; > add( deleteReportLink ); > > // add a confirmation to the Delete Report operation > deleteReportLink.add( > new SimpleAttributeModifier( "onclick", "return confirm( 'Are you > sure?');" ) > ); > > Here's the markup: > > Delete Report > > > > In the markup, when I use an 'a' tag the javascript confirmation dialog > works fine along with the onClick() override. When I use it with either of > the (commented out) button inputs, the dialog appears, but the 'onClick()' > override is never executed. > > I'd much rather this work with a button and not a hyperlink. > > Any ideas or help is greatly appreciated. > -Steve > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: filter options in available side of palette w/o losing selected options
if you can paste some code and it will help us understand the problem better. fmu - Original Message - From: To: Sent: Wednesday, January 13, 2010 8:23 PM Subject: Re: filter options in available side of palette w/o losing selected options I've tried that as well but when my onUpdate method is called, i call palette.getDefaultModelObject() and cast it to a list (the same way I do on form submit) but it acts as if there are no selections. Original Message: - From: Fatih Mehmet UCAR fmu...@gmail.com Date: Wed, 13 Jan 2010 20:18:44 - To: users@wicket.apache.org Subject: Re: filter options in "available" side of palette w/o losing selected options you keep your original objects in another list so you can put them back into palette's model when you need fmu - Original Message - From: To: Sent: Wednesday, January 13, 2010 8:10 PM Subject: filter options in "available" side of palette w/o losing selected options I'm using a text field to filter the available options in a palette which i have working but when the options are filtered the previously selected options get deleted. is there any way i can keep the previously selected options in the palette? mail2web LIVE - Free email based on Microsoft® Exchange technology - http://link.mail2web.com/LIVE - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org mail2web LIVE - Free email based on Microsoft® Exchange technology - http://link.mail2web.com/LIVE - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: filter options in "available" side of palette w/o losing selected options
you keep your original objects in another list so you can put them back into palette's model when you need fmu - Original Message - From: To: Sent: Wednesday, January 13, 2010 8:10 PM Subject: filter options in "available" side of palette w/o losing selected options I'm using a text field to filter the available options in a palette which i have working but when the options are filtered the previously selected options get deleted. is there any way i can keep the previously selected options in the palette? mail2web LIVE - Free email based on Microsoft® Exchange technology - http://link.mail2web.com/LIVE - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: page expired problem issue wicket how resolve fix eofexception peekbyte
that as well counts as a change. for the expiration, you may try to extend the tomcat session timeout interval. fmu - Original Message - From: "Martin Asenov" To: Sent: Wednesday, January 13, 2010 4:26 PM Subject: RE: page expired problem issue wicket how resolve fix eofexception peekbyte Actually, I haven't changed them... Only added them to components that did not have ones... BR, -Original Message----- From: Fatih Mehmet UCAR [mailto:fmu...@gmail.com] Sent: Wednesday, January 13, 2010 6:23 PM To: users@wicket.apache.org Subject: Re: page expired problem issue wicket how resolve fix eofexception peekbyte In fact you should not be changing UIDs once you have generated them. fmu - Original Message - From: "Martin Asenov" To: Sent: Wednesday, January 13, 2010 4:21 PM Subject: RE: page expired problem issue wicket how resolve fix eofexception peekbyte So, I suppose I need to clear AS cache before deploying with different UIDs? BR, -Original Message- From: Fatih Mehmet UCAR [mailto:fmu...@gmail.com] Sent: Wednesday, January 13, 2010 6:18 PM To: users@wicket.apache.org Subject: Re: page expired problem issue wicket how resolve fix eofexception peekbyte I dont think the exception and page expired things are related if you are only getting the exception when the AS starts. When you stop the AS, it normally tries to serialize active sessions and read them back when you start it again to restore. After stopping server, if you change serialUID of any class that was serialized that exception may occur. Also if you do not shut down server properly, server wont be able to serialize everything in a correct way and may not be able to read back which will again cause this kind of exceptions. fmu - Original Message - From: "Martin Asenov" To: Sent: Wednesday, January 13, 2010 3:56 PM Subject: RE: page expired problem issue wicket how resolve fix eofexception peekbyte I get 'page expired messages as I browse through my webapp. However, the exception is placed before 'server startup statement in catalina.log... BR, -Original Message- From: Fatih Mehmet UCAR [mailto:fmu...@gmail.com] Sent: Wednesday, January 13, 2010 5:52 PM To: users@wicket.apache.org Subject: Re: page expired problem issue wicket how resolve fix eofexception peekbyte Does it happens when the application server starts ? If yes, are you terminating the AS process or shutting down appropriate commands. fmu - Original Message - From: "Martin Asenov" To: Sent: Wednesday, January 13, 2010 3:44 PM Subject: RE: page expired problem issue wicket how resolve fix eofexception peekbyte Thanks, kirillkh! I'll try this... Any other suggestions, anyone? Thanks! -Original Message- From: kirillkh [mailto:kiril...@gmail.com] Sent: Wednesday, January 13, 2010 3:13 PM To: users@wicket.apache.org Subject: Re: page expired problem issue wicket how resolve fix eofexception peekbyte Hi Martin, Some IDEs (NetBeans, for one) allow to place an exception breakpoint, which means the debugger will pause when certain exception is triggered. You should try downloading wicket's sources as suggested and placing breakpoint at EOFException. -Kirill On Wed, Jan 13, 2010 at 12:48 PM, Martin Asenov wrote: Please, everyone, I'm really despaired about this one, I'll greatly appreciate any help! Best regards, -Original Message- From: Martin Asenov [mailto:mase...@velti.com] Sent: Tuesday, January 12, 2010 4:37 PM To: users@wicket.apache.org Subject: RE: page expired problem issue wicket how resolve fix eofexception peekbyte Thanks a lot for your time, Chuck! I hope others will join our conversation... Regards, -Original Message- From: Chuck Brinkman [mailto:chasb1...@gmail.com] Sent: Tuesday, January 12, 2010 3:57 PM To: users@wicket.apache.org Subject: Re: page expired problem issue wicket how resolve fix eofexception peekbyte Martin, I was not suggesting a permanent change to the framework. Just temporary while you debug the problem. I got the source, did mvn install, it generated the jar file which I then copied over to my project. If I can do it anyone can. The problem isn't in wicket but in your domain object(s). I'm out of ideas. Maybe someone from the wicket team has a good suggestion. Sorry :-( Chuck On Tue, Jan 12, 2010 at 8:42 AM, Martin Asenov wrote: > No, Chuck, I don't know what page is causing this. As you can see the > thrown exception messages don't say anything particular. I think the > messaging is poor. I face such problems in lots of frameworks, for example > hibernate and so on. The messages are not pointing to a particular problem, > only messing your head with unclear statements. Anyway, I don't plan to edit > the frameworks. Do you think if not generic parameterized TextField or > DropDownChoice for exam
Re: page expired problem issue wicket how resolve fix eofexception peekbyte
In fact you should not be changing UIDs once you have generated them. fmu - Original Message - From: "Martin Asenov" To: Sent: Wednesday, January 13, 2010 4:21 PM Subject: RE: page expired problem issue wicket how resolve fix eofexception peekbyte So, I suppose I need to clear AS cache before deploying with different UIDs? BR, -Original Message----- From: Fatih Mehmet UCAR [mailto:fmu...@gmail.com] Sent: Wednesday, January 13, 2010 6:18 PM To: users@wicket.apache.org Subject: Re: page expired problem issue wicket how resolve fix eofexception peekbyte I dont think the exception and page expired things are related if you are only getting the exception when the AS starts. When you stop the AS, it normally tries to serialize active sessions and read them back when you start it again to restore. After stopping server, if you change serialUID of any class that was serialized that exception may occur. Also if you do not shut down server properly, server wont be able to serialize everything in a correct way and may not be able to read back which will again cause this kind of exceptions. fmu - Original Message - From: "Martin Asenov" To: Sent: Wednesday, January 13, 2010 3:56 PM Subject: RE: page expired problem issue wicket how resolve fix eofexception peekbyte I get 'page expired messages as I browse through my webapp. However, the exception is placed before 'server startup statement in catalina.log... BR, -----Original Message- From: Fatih Mehmet UCAR [mailto:fmu...@gmail.com] Sent: Wednesday, January 13, 2010 5:52 PM To: users@wicket.apache.org Subject: Re: page expired problem issue wicket how resolve fix eofexception peekbyte Does it happens when the application server starts ? If yes, are you terminating the AS process or shutting down appropriate commands. fmu - Original Message - From: "Martin Asenov" To: Sent: Wednesday, January 13, 2010 3:44 PM Subject: RE: page expired problem issue wicket how resolve fix eofexception peekbyte Thanks, kirillkh! I'll try this... Any other suggestions, anyone? Thanks! -Original Message- From: kirillkh [mailto:kiril...@gmail.com] Sent: Wednesday, January 13, 2010 3:13 PM To: users@wicket.apache.org Subject: Re: page expired problem issue wicket how resolve fix eofexception peekbyte Hi Martin, Some IDEs (NetBeans, for one) allow to place an exception breakpoint, which means the debugger will pause when certain exception is triggered. You should try downloading wicket's sources as suggested and placing breakpoint at EOFException. -Kirill On Wed, Jan 13, 2010 at 12:48 PM, Martin Asenov wrote: Please, everyone, I'm really despaired about this one, I'll greatly appreciate any help! Best regards, -Original Message- From: Martin Asenov [mailto:mase...@velti.com] Sent: Tuesday, January 12, 2010 4:37 PM To: users@wicket.apache.org Subject: RE: page expired problem issue wicket how resolve fix eofexception peekbyte Thanks a lot for your time, Chuck! I hope others will join our conversation... Regards, -Original Message- From: Chuck Brinkman [mailto:chasb1...@gmail.com] Sent: Tuesday, January 12, 2010 3:57 PM To: users@wicket.apache.org Subject: Re: page expired problem issue wicket how resolve fix eofexception peekbyte Martin, I was not suggesting a permanent change to the framework. Just temporary while you debug the problem. I got the source, did mvn install, it generated the jar file which I then copied over to my project. If I can do it anyone can. The problem isn't in wicket but in your domain object(s). I'm out of ideas. Maybe someone from the wicket team has a good suggestion. Sorry :-( Chuck On Tue, Jan 12, 2010 at 8:42 AM, Martin Asenov wrote: > No, Chuck, I don't know what page is causing this. As you can see the > thrown exception messages don't say anything particular. I think the > messaging is poor. I face such problems in lots of frameworks, for example > hibernate and so on. The messages are not pointing to a particular problem, > only messing your head with unclear statements. Anyway, I don't plan to edit > the frameworks. Do you think if not generic parameterized TextField or > DropDownChoice for example can cause this? > > Thanks, > > -Original Message- > From: Chuck Brinkman [mailto:chasb1...@gmail.com] > Sent: Tuesday, January 12, 2010 2:13 PM > To: users@wicket.apache.org > Subject: Re: page expired problem issue wicket how resolve fix eofexception > peekbyte > > Martin, > > I don't know a good way. > > Do you know what page is causing the problem? Manually check each > object > in > all components of the page. > > Once you know the page you can try removing components until the error goes > away. Last one removed is the offender. There may be multiple offenders.
Re: page expired problem issue wicket how resolve fix eofexception peekbyte
I dont think the exception and page expired things are related if you are only getting the exception when the AS starts. When you stop the AS, it normally tries to serialize active sessions and read them back when you start it again to restore. After stopping server, if you change serialUID of any class that was serialized that exception may occur. Also if you do not shut down server properly, server wont be able to serialize everything in a correct way and may not be able to read back which will again cause this kind of exceptions. fmu - Original Message - From: "Martin Asenov" To: Sent: Wednesday, January 13, 2010 3:56 PM Subject: RE: page expired problem issue wicket how resolve fix eofexception peekbyte I get 'page expired messages as I browse through my webapp. However, the exception is placed before 'server startup statement in catalina.log... BR, -Original Message- From: Fatih Mehmet UCAR [mailto:fmu...@gmail.com] Sent: Wednesday, January 13, 2010 5:52 PM To: users@wicket.apache.org Subject: Re: page expired problem issue wicket how resolve fix eofexception peekbyte Does it happens when the application server starts ? If yes, are you terminating the AS process or shutting down appropriate commands. fmu - Original Message - From: "Martin Asenov" To: Sent: Wednesday, January 13, 2010 3:44 PM Subject: RE: page expired problem issue wicket how resolve fix eofexception peekbyte Thanks, kirillkh! I'll try this... Any other suggestions, anyone? Thanks! -Original Message- From: kirillkh [mailto:kiril...@gmail.com] Sent: Wednesday, January 13, 2010 3:13 PM To: users@wicket.apache.org Subject: Re: page expired problem issue wicket how resolve fix eofexception peekbyte Hi Martin, Some IDEs (NetBeans, for one) allow to place an exception breakpoint, which means the debugger will pause when certain exception is triggered. You should try downloading wicket's sources as suggested and placing breakpoint at EOFException. -Kirill On Wed, Jan 13, 2010 at 12:48 PM, Martin Asenov wrote: Please, everyone, I'm really despaired about this one, I'll greatly appreciate any help! Best regards, -Original Message- From: Martin Asenov [mailto:mase...@velti.com] Sent: Tuesday, January 12, 2010 4:37 PM To: users@wicket.apache.org Subject: RE: page expired problem issue wicket how resolve fix eofexception peekbyte Thanks a lot for your time, Chuck! I hope others will join our conversation... Regards, -Original Message- From: Chuck Brinkman [mailto:chasb1...@gmail.com] Sent: Tuesday, January 12, 2010 3:57 PM To: users@wicket.apache.org Subject: Re: page expired problem issue wicket how resolve fix eofexception peekbyte Martin, I was not suggesting a permanent change to the framework. Just temporary while you debug the problem. I got the source, did mvn install, it generated the jar file which I then copied over to my project. If I can do it anyone can. The problem isn't in wicket but in your domain object(s). I'm out of ideas. Maybe someone from the wicket team has a good suggestion. Sorry :-( Chuck On Tue, Jan 12, 2010 at 8:42 AM, Martin Asenov wrote: > No, Chuck, I don't know what page is causing this. As you can see the > thrown exception messages don't say anything particular. I think the > messaging is poor. I face such problems in lots of frameworks, for example > hibernate and so on. The messages are not pointing to a particular problem, > only messing your head with unclear statements. Anyway, I don't plan to edit > the frameworks. Do you think if not generic parameterized TextField or > DropDownChoice for example can cause this? > > Thanks, > > -Original Message- > From: Chuck Brinkman [mailto:chasb1...@gmail.com] > Sent: Tuesday, January 12, 2010 2:13 PM > To: users@wicket.apache.org > Subject: Re: page expired problem issue wicket how resolve fix eofexception > peekbyte > > Martin, > > I don't know a good way. > > Do you know what page is causing the problem? Manually check each > object > in > all components of the page. > > Once you know the page you can try removing components until the error goes > away. Last one removed is the offender. There may be multiple offenders. > > Maybe not a good way. Get the source for wicket and modify > org.apache.wicket.Component.readObject(Component.java:4465) to catch the > exception. At this point you can either print the class of the object > being > read (some type of Component) or use the debugger (my preference). You > might have to back up to org.apache.wicket.protocol. > > http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.readObject(SecondLevelCacheSessionStore.java:417). > This may be a bit of work and might not tell you anything. The up side is > that you
Re: page expired problem issue wicket how resolve fix eofexception peekbyte
Does it happens when the application server starts ? If yes, are you terminating the AS process or shutting down appropriate commands. fmu - Original Message - From: "Martin Asenov" To: Sent: Wednesday, January 13, 2010 3:44 PM Subject: RE: page expired problem issue wicket how resolve fix eofexception peekbyte Thanks, kirillkh! I'll try this... Any other suggestions, anyone? Thanks! -Original Message- From: kirillkh [mailto:kiril...@gmail.com] Sent: Wednesday, January 13, 2010 3:13 PM To: users@wicket.apache.org Subject: Re: page expired problem issue wicket how resolve fix eofexception peekbyte Hi Martin, Some IDEs (NetBeans, for one) allow to place an exception breakpoint, which means the debugger will pause when certain exception is triggered. You should try downloading wicket's sources as suggested and placing breakpoint at EOFException. -Kirill On Wed, Jan 13, 2010 at 12:48 PM, Martin Asenov wrote: Please, everyone, I'm really despaired about this one, I'll greatly appreciate any help! Best regards, -Original Message- From: Martin Asenov [mailto:mase...@velti.com] Sent: Tuesday, January 12, 2010 4:37 PM To: users@wicket.apache.org Subject: RE: page expired problem issue wicket how resolve fix eofexception peekbyte Thanks a lot for your time, Chuck! I hope others will join our conversation... Regards, -Original Message- From: Chuck Brinkman [mailto:chasb1...@gmail.com] Sent: Tuesday, January 12, 2010 3:57 PM To: users@wicket.apache.org Subject: Re: page expired problem issue wicket how resolve fix eofexception peekbyte Martin, I was not suggesting a permanent change to the framework. Just temporary while you debug the problem. I got the source, did mvn install, it generated the jar file which I then copied over to my project. If I can do it anyone can. The problem isn't in wicket but in your domain object(s). I'm out of ideas. Maybe someone from the wicket team has a good suggestion. Sorry :-( Chuck On Tue, Jan 12, 2010 at 8:42 AM, Martin Asenov wrote: > No, Chuck, I don't know what page is causing this. As you can see the > thrown exception messages don't say anything particular. I think the > messaging is poor. I face such problems in lots of frameworks, for example > hibernate and so on. The messages are not pointing to a particular problem, > only messing your head with unclear statements. Anyway, I don't plan to edit > the frameworks. Do you think if not generic parameterized TextField or > DropDownChoice for example can cause this? > > Thanks, > > -Original Message- > From: Chuck Brinkman [mailto:chasb1...@gmail.com] > Sent: Tuesday, January 12, 2010 2:13 PM > To: users@wicket.apache.org > Subject: Re: page expired problem issue wicket how resolve fix eofexception > peekbyte > > Martin, > > I don't know a good way. > > Do you know what page is causing the problem? Manually check each > object > in > all components of the page. > > Once you know the page you can try removing components until the error goes > away. Last one removed is the offender. There may be multiple offenders. > > Maybe not a good way. Get the source for wicket and modify > org.apache.wicket.Component.readObject(Component.java:4465) to catch the > exception. At this point you can either print the class of the object > being > read (some type of Component) or use the debugger (my preference). You > might have to back up to org.apache.wicket.protocol. > > http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.readObject(SecondLevelCacheSessionStore.java:417). > This may be a bit of work and might not tell you anything. The up side is > that you now have wicket source and can debug your next problem. I usually > assume there will be another problem. > > I'm sure others reading along will have better ideas. > > Chuck > > > > On Tue, Jan 12, 2010 at 6:27 AM, Martin Asenov wrote: > > > Hi Chuck, nice to read from you! > > > > Yes, this could be all true, but I can't see anywhere in the logs > > comprehendible reports of what happens. Nothing says which is the > > problematic object, and I can only guess. Do you now a way to trace down > > where the problem comes from? > > > > Thank you! > > > > P.S. I'm new to Wicket too :) > > > > -Original Message- > > From: Chuck Brinkman [mailto:chasb1...@gmail.com] > > Sent: Tuesday, January 12, 2010 1:23 PM > > To: users@wicket.apache.org > > Subject: Re: page expired problem issue wicket how resolve fix > eofexception > > peekbyte > > > > Hi Martin, > > > > I'm new to wicket. Could this have something to do with wicket trying to > > restore a page from serialized data. If one of the objects on your page > > can > > not be serialized you will get an error when wicket tries to restore the > > page. I think you might see this when the back button is pressed. I > think > > using a detachable model is one option if you use a 3rd party object that > > isn't serializable.. If you wrote t
Re: TextField & Class Type Validation
button.setDefaultFormProcessing(boolean b) http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/Button.html#setDefaultFormProcessing%28boolean%29 - Original Message - From: "sakthi vel" To: Sent: Thursday, January 07, 2010 4:30 PM Subject: TextField & Class Type Validation Hello, I have a text field and added the class type as Date, to validate the date entered. TextField txtDate = new TextField("txtDate", new Model(), Date.class); I have two button in the same screen one for the Save for another for Reset. When i enter invalid date and press the save button, valid error message is shown. But when i press the reset button then also it validates and shows the errro message. How to avoid this and kindly explain the factor. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Palette selector width and sort
Palette palette = new Palette("palette", new Model(new ArrayList()), new Model( (Serializable)persons), renderer, 10, true){ public ResourceReference getCSS(){ return .; } }; you can use firefox to get the original css. copy all css to a new file change width in css and return that file inside getCSS above. fmu 2010/1/5 wic...@geofflancaster.com : > Any suggestions on how to do that? > > Original Message: > ----- > From: Fatih Mehmet Ucar fmu...@gmail.com > Date: Tue, 5 Jan 2010 16:31:33 + > To: users@wicket.apache.org > Subject: Re: Palette selector width and sort > > > for width, you can override css returning method in palette. > > 2010/1/5 wic...@geofflancaster.com : >> How can I change the width of the "available" and "selected" menus on a >> palette? >> >> Also, is it possible to sort the choices after they are moved between the >> two menus so they aren't just appended to the end but sorted > alphabetically? >> >> ie. moving an item from "available" to "selected" will sort items now in >> "selected" and vice versa >> >> >> >> mail2web.com – What can On Demand Business Solutions do for you? >> http://link.mail2web.com/Business/SharePoint >> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > mail2web.com – Enhanced email for the mobile individual based on Microsoft® > Exchange - http://link.mail2web.com/Personal/EnhancedEmail > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Palette selector width and sort
for width, you can override css returning method in palette. 2010/1/5 wic...@geofflancaster.com : > How can I change the width of the "available" and "selected" menus on a > palette? > > Also, is it possible to sort the choices after they are moved between the > two menus so they aren't just appended to the end but sorted alphabetically? > > ie. moving an item from "available" to "selected" will sort items now in > "selected" and vice versa > > > > mail2web.com – What can On Demand Business Solutions do for you? > http://link.mail2web.com/Business/SharePoint > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: add me to the mailing list
ok, I added you. :) 2009/11/30 chinedu efoagui : > Please > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: how to inject arbitrary javascript code to a component markup?
Add a div to your page like below: Insert title here -Original Message- From: PaulH98 [mailto:paulhuan...@gmail.com] Sent: 10 October 2009 14:58 To: users@wicket.apache.org Subject: Re: how to inject arbitrary javascript code to a component markup? McIlwee, Craig wrote: > > If your component is a MarkupContainer you can override > getAssociatedMarkupStream(boolean) and build the markup on the fly. So > maybe still have the HTML file that you read in as a template with some > place holder string and in the override you replace the place holder with > stuff you want to be assigned to the data variable. Then use a > StringResourceStream to create a MarkupResourceStream, use > SimpleMarkupLoader to create a Markup instance from the > MarkupResourceStream, and finally create a MarkupStream with your Markup > instance. > > One thing to note is that if your markup container has child components > that will be updated via AJAX AND you don't have an HTML file (you build > the entire string on the fly) then you may also have to override > hasAssociatedMarkupStream and always return true else the component being > updated won't be able to locate its parent. > > Craig > Here is the java code of my component "CategorySelectPanel" that extends Panel > public class CategorySelectPanel extends Panel{ > private static final long serialVersionUID = 1L; > public CategorySelectPanel(String wicketId){ > super(wicketId); > WebMarkupContainer cat0=new WebMarkupContainer("cat0"); > cat0.setOutputMarkupId(true); > add(cat0); > MarkupStream ms=getAssociatedMarkupStream(true); > System.out.println(ms.toString()); > > } > } > and here is the associated markup file "CategorySelectPanel.html" > > > > > Now I have a simple test > > public class TestPage extends WebPage{ > public TestPage(){ > CategorySelectPanel a= new CategorySelectPanel("csp"); > add(a); > } > } > with the the following page html > > > > > Insert title here > > > > > > > when I run the test, I got the following exception > WicketMessage: Can't instantiate page using constructor public > com.tree.TestPage() > > Root cause: > > java.lang.IllegalStateException: No Page found for component > [MarkupContainer [Component id = csp]] > at org.apache.wicket.Component.getPage(Component.java:1763) > at > org.apache.wicket.markup.html.WebMarkupContainer.getMarkupType(WebMarkupCont ainer.java:60) > at > org.apache.wicket.markup.DefaultMarkupCacheKeyProvider.getCacheKey(DefaultMa rkupCacheKeyProvider.java:57) > at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:291) > at > org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:216) > at > org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer. java:351) > at com.tree.CategorySelectPanel.(CategorySelectPanel.java:37) > at com.tree.TestPage.(TestPage.java:7) > > Basically, "MarkupStream ms=getAssociatedMarkupStream(true) " caused this exception. Can anyone shed some light on this? I am trying to Carig's suggestion to get the MarkupStream and alter it with my stuff. -- View this message in context: http://www.nabble.com/how-to-inject-arbitrary-javascript-code-to-a-component -markup--tp25833726p25834380.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice and onSelectionChanged error.
If you use the below constrcutor, it should solve your problem. DropDownChoice(java.lang.String id, IModel model, IModel choices, IChoiceRenderer renderer) 2009/10/9 Altuğ B. Altıntaş : > Hi; > I have a problem with DropDownChoice; The code block is here : > > ListfaaliyetListesi = // data comes > > final DropDownChoice faaliyetler = > new DropDownChoice("Faaliyetler", > new Model((Serializable) faaliyetListesi), > faaliyetlerRenderer) { > > �...@override > protected boolean wantOnSelectionChangedNotifications() > { > return true; > } > > �...@override > protected void onSelectionChanged(Faaliyet newSelection) > { > super.onSelectionChanged(newSelection); > PageParameters params = new PageParameters(); > params.add("ay", finalAy + ""); > params.add("yil", finalYil + ""); > params.add("faaliyetId", newSelection.getId() + ""); > setResponsePage(ActionPage.class, params); > > } > }; > > > add(faaliyetler); > > > > The error message is : > > wicketMessage: Method onSelectionChanged of interface > org.apache.wicket.markup.html.form.IOnChangeListener targeted at > component [MarkupContainer [Component id = Faaliyetler]] threw an > exception > > Root cause: > > java.lang.IllegalStateException: Attempt to set model object on null > model of component: Faaliyetler > at org.apache.wicket.Component.setDefaultModelObject(Component.java:3038) > at > org.apache.wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:1168) > at > org.apache.wicket.markup.html.form.DropDownChoice.onSelectionChanged(DropDownChoice.java:158) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182) > at > org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73) > at > org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.j > > -- > > Any suggestions ? > > Altuğ. > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Out Of Memory with Websphere 6.1 & Wicket 1.3.5
This is probably not related to Wicket, it was normally a java bug. Which java version you are using? What is the max heap size? RAM of the machine running your application? If you start a jvm with a really large -xmx memory, say 75% percent of all available ram, then only 25% of the memory is left addressable to the process outside of the heap. For java <1.6 (afaik) for a zip file, entire file is mapped to memory so if you are trying to read a large zip file or many zip files but large in total that may be the problem. fmu 2009/5/11 Carlo Camerino > also did you install the websphere fix packs? > > On Mon, May 11, 2009 at 9:58 PM, Carlo M. Camerino > wrote: > > did you set your application to deployment mode? > > > > - Original Message - > > From: "Serge Libotte" > > To: users@wicket.apache.org > > Sent: Monday, May 11, 2009 9:06:14 PM GMT +08:00 Beijing / Chongqing / > Hong Kong / Urumqi > > Subject: Out Of Memory with Websphere 6.1 & Wicket 1.3.5 > > > > Hi all Wicket fellows, > > > > We have annoying OOM happening to our Wicket app based applications. > > We are running Wicket 1.3.5 > > Before going to some more details, I'd like to know is the stacktrace > > rings someone's bell. > > > > Thanks, > > > > Serge. > > > > [5/11/09 9:43:47:585 MEST] 004a ServletWrappe E SRVE0068E: > > Uncaught exception thrown in one of the service methods of t > > he servlet: wicket. Exception thrown : java.lang.OutOfMemoryError > >at java.util.zip.ZipFile.open(Native Method) > >at java.util.zip.ZipFile.(ZipFile.java:203) > >at java.util.zip.ZipFile.(ZipFile.java:234) > >at > com.ibm.ws.classloader.SinglePathClassProvider$2.run(SinglePathClassProvider.java:249) > >at > com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63) > >at > com.ibm.ws.classloader.SinglePathClassProvider.getClassBytesFromJar(SinglePathClassProvider.java:240) > >at > com.ibm.ws.classloader.SinglePathClassProvider.getClassBytes(SinglePathClassProvider.java:185) > >at > com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:458) > >at > com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:381) > >at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > >at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) > >at > org.apache.wicket.protocol.http.servlet.AbortWithWebErrorCodeException.(AbortWithWebErrorCodeException.java: > > 67) > >at > org.apache.wicket.markup.html.PackageResource.getResourceStream(PackageResource.java:563) > >at > org.apache.wicket.markup.html.PackageResource.getResourceStream(PackageResource.java:533) > >at > org.apache.wicket.markup.html.CompressedPackageResource.access$101(CompressedPackageResource.java:46) > >at > org.apache.wicket.markup.html.CompressedPackageResource.getPackageResourceStream(CompressedPackageResource.java:25 > > 6) > >at > org.apache.wicket.markup.html.JavascriptPackageResource$1.getOriginalResourceStream(JavascriptPackageResource.java > > :242) > >at > org.apache.wicket.markup.html.JavascriptPackageResource$FilteringResourceStream.lastModifiedTime(JavascriptPackage > > Resource.java:96) > >at > org.apache.wicket.markup.html.CompressedPackageResource$CompressingResourceStream.lastModifiedTime(CompressedPacka > > geResource.java:105) > >at > org.apache.wicket.Resource.onResourceRequested(Resource.java:113) > >at > org.apache.wicket.request.target.resource.SharedResourceRequestTarget.respond(SharedResourceRequestTarget.java:201 > > ) > >at > org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) > >at > org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1181) > >at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252) > >at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) > >at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) > >at > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) > >at > org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:124) > >at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) > >at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > >at > com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1096) > >at > com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1037) > >at > com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145) > >at > com.bgc.ecm.back.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:107) > >at > org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236) > >at > org.springframework.web.
RE: Why are we top-posting...
+1 -Original Message- From: Erik van Oosten [mailto:e.vanoos...@grons.nl] Sent: 15 March 2009 16:11 To: users@wicket.apache.org Subject: Re: Why are we top-posting... I don't even read bottom-posts. All that scrolling gives me RSI. Regards, Erik. Anton Veretennikov wrote: > Those who receive first part of e-mail through sms message are very > thankful if valuable part is on top. > -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice without preselection and without 'Please choose one'
you can use setNullValid(true) method 2009/2/20 pixologe > > Hi everybody, > > I might just be out of it or missing a clue - I'd just like to have a > DropDownChoice without preselection and without 'Please choose one' option. > Is this possible? How can I achieve this? > > Thanks in advance + regards > -- > View this message in context: > http://www.nabble.com/DropDownChoice-without-preselection-and-without-%27Please-choose-one%27-tp22120191p22120191.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Fatih Mehmet UCAR, Software Engineer Espresso Education Limited Riverside Studios, Crisp Road, London W6 9RL
RE: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
Just add slf4j-api-1.5.0.jar or appropriate version to classpath. -Original Message- From: M Goodell [mailto:li...@pdc4u.com] Sent: 12 February 2009 22:39 To: users@wicket.apache.org Subject: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory Hello, I am in the process of evaluating Wicket for an upcoming project and in the process of writing some proof of concept code. Or trying to anyway. The problem I am having is that I keep getting the exception: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory after deploying and attempting to run the application. According to the Wicket quick start all I need to do is: "You cannot use Wicket without adding an SLF4J logging implementation to your classpath. Most people use log4j. If you do, just include slf4j-log4j12.jar on your classpath to get Wicket to use log4j too. If you want to use commons-logging or JDK14 logging or something else, please see the SLF4J site for more information." The following jars are on my classpath: - log4j-1.2.15.jar - slf4j-log4j12-1.5.6.jar - wicket-1.3.5.jar - wicket-auth-roles-1.3.5.jar - wicket-datetime-1.3.5.jar - wicket-extensions-1.3.5.jar - wicket-guice-1.3.5.jar - wicket-ioc-1.3.5.jar - wicket-jmx-1.3.5.jar - wicket-objectsizeof-agent-1.3.5.jar - wicket-spring-1.3.5.jar - wicket-spring-annot-1.3.5.jar Bear in mind that this is a NetBeans 6.5 project using apache-tomcat-5.5.23 and JDK 5 Am I missing jar a jar file(s) here that is not mentioned in the docs? I have tried to find the correct jar from the SLF4J distro but still no luck. Any suggestions are welcome!!! Thank you! M. Goodell NetBeans stack trace: SEVERE: Exception starting filter WicketApplication java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.apache.wicket.protocol.http.WicketFilter.(WicketFilter.java:76) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter Config.java:208) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil terConfig.java:302) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterCon fig.java:78) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:36 35) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7 60) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:511) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:457) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java: 213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanSer verInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1397) at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:815) at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:344) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:210) at org.apache.catalina.core.StandardContextValve.in