src tag changing
I have searched the web and all example don't seem to match with what I need I have an application setup to have a web application with the wicket filter on app http://java.sun.com/xml/ns/j2ee"; xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> TESTAPP wicket.TESTAPP org.apache.wicket.protocol.http.WicketFilter applicationClassName com.test.WicketApplication wicket.TESTAPP /app/* index.html www.test.com --> some jsp pages www.test.com/app/ --> wicket application In the wicket application in the html, there are src tags and href tags that use ../ like. ../index.html or ../images/home.jpg In the Wicket apps it changes all the above to ../../index or ../../images/home.jpg Is there a way to tell wicket no to change or add this extra ../ I have tried with mixed results (addling link to the picture instead of the link) , and I would rather not make every link wicket tag. Thanks!
Re: Caching menu
Hi; For distributed caching i can advice hazelcast.com, take a look. Cheers Altug. 2010/5/7 nino martinez wael > Id go for at "pojo" dao provider which then can cache the menu, and > just use that from your wicket menu components.. You could then use > something like ehcache, for caching.. > > 2010/5/5 Wolfgang : > > > > I'm working on a web site that has a menu bar with sub-items, and > > sub-sub-items. The configuration of this menu is computed from > hilariously > > complex SQL queries and needs quite some time to be established. The menu > > looks different for each user (session) but stays the same for the > lifetime > > of the session. So it's time for caching as this menu shows up on most of > > the pages. > > > > From other posts on this site I've taken that it's not a good idea to > share > > the components that represent the menu among different pages. Now I > wonder > > on which level I can cache and re-use objects. > > > > Is it advisable to share models (in the Wicket sense), i.e. store the > menu > > models on the session and construct the menu components according to > their > > information for every page? > > > > Or do I have to create separate, Wicket-independent data structures that > > hold the menu structure information and store it on the session or in the > > database? > > > > Or am I on a complete wrong track and should look for caching of the > > rendered HTML code on a component basis? > > > > Thanks in advance for sharing your knowledge/experience. > > > > -- > > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Caching-menu-tp2130813p2130813.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: WicketFilter doesn't chain?
If it handles the request, it doesn't need to execute the rest of the chain. Put OSIV in front of WicketFilter. On Fri, May 14, 2010 at 5:19 PM, J wrote: > I'm having some problems with > org.springframework.orm.hibernate3.support.OpenSessionInViewFilter in some > cases. I did some debugging and found that > org.apache.wicket.protocol.http.WicketFilter isn't doing ServletFilter > chaining: when it is called when a Wicket page is requested, it is breaking > the filter chain by not calling the Filter.doFilter method (from Servlet > API), causing other filters defined in web.xml not to work within the same > url-pattern. (A workaround is to define WicketFilter as last entry in > web.xml.) > When a non-wicket url is called within the same url-pattern, then > WicketFilter does perform a doFilter, allowing other filters to do some work. > > In Servlet applications (which Wicket basically also is), I think it is > expected behaviour that all filters within some url-pattern should always be > called. But WicketFilter seems to break it. Is this expected behaviour? > > - > 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
WicketFilter doesn't chain?
I'm having some problems with org.springframework.orm.hibernate3.support.OpenSessionInViewFilter in some cases. I did some debugging and found that org.apache.wicket.protocol.http.WicketFilter isn't doing ServletFilter chaining: when it is called when a Wicket page is requested, it is breaking the filter chain by not calling the Filter.doFilter method (from Servlet API), causing other filters defined in web.xml not to work within the same url-pattern. (A workaround is to define WicketFilter as last entry in web.xml.) When a non-wicket url is called within the same url-pattern, then WicketFilter does perform a doFilter, allowing other filters to do some work. In Servlet applications (which Wicket basically also is), I think it is expected behaviour that all filters within some url-pattern should always be called. But WicketFilter seems to break it. Is this expected behaviour? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Help on multiple users implementation
clear out the markup cache when a new variation is added. Wicket caches markup resolving hits and misses iirc. If the cache is cleared, wicket will reload the markup and discover new styles and variations. Martijn On Thu, May 6, 2010 at 3:57 PM, Mathias Nilsson wrote: > Hi, I'm designing a Mediabase for a lot of customers. The old one is php and > java server but we are planning to update this and use Wicket, Spring, > Hibernate. > > I'm having some design questions. Our web administrator must be able to add > Customers at runtime. The customer should have variations and their own > properties files for translations. > > We Would like to do something like this http://mysolution/mycustomer. Where > mycustomer is the name of the company in the mediabase. is it possible to > add properties and variations at runtime without having to restart the > application. Any pointers on how to do this? > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.7 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Check and CheckGroup
Overall - the Javadoc does not explain how it supposed to be used, please create a ticket for that. Thank you Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Fri, May 14, 2010 at 10:06 AM, Jeremy Thomerson < jer...@wickettraining.com> wrote: > or an ajaxsubmitlink > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > > On Fri, May 14, 2010 at 11:59 AM, Zilvinas Vilutis wrote: > >> The problem was that I was trying to get those values inside onClick >> method >> of an AjaxLink, but did not submit the form. >> >> I've switched the link to a button and its clear now. >> >> >> Žilvinas Vilutis >> >> Mobile: (+370) 652 38353 >> E-mail: cika...@gmail.com >> >> >> On Fri, May 14, 2010 at 9:54 AM, Zilvinas Vilutis >> wrote: >> >> > Ok, I got it, the list contains only selected items after form submit :) >> > >> > >> > Thank you! >> > >> > Žilvinas Vilutis >> > >> > Mobile: (+370) 652 38353 >> > E-mail: cika...@gmail.com >> > >> > >> > On Fri, May 14, 2010 at 9:48 AM, Zilvinas Vilutis > >wrote: >> > >> >> No, I've got a list http://pastebin.com/KwZq49uG >> >> >> >> So I add all the items to a collection which is used as a model object >> for >> >> CG, and each of the items to each check. >> >> >> >> When I call selectedImages.getModelObject() - I get the same list which >> >> contains all the items. >> >> >> >> Still don't get how to resolve a list of only selected items. >> >> >> >> >> >> Žilvinas Vilutis >> >> >> >> Mobile: (+370) 652 38353 >> >> E-mail: cika...@gmail.com >> >> >> >> >> >> On Fri, May 14, 2010 at 9:37 AM, Xavier López >> wrote: >> >> >> >>> If you hava a single checkbox, and only want to know if it's selected, >> >>> I'd >> >>> use a Checkbox component instead. You can put it a Boolean Model >> >>> initialized >> >>> to whatever and it will come back with the boolean value that will >> tell >> >>> you >> >>> if it's selected. >> >>> >> >>> Cheers, >> >>> Xavier >> >>> >> >>> 2010/5/14 Michael O'Cleirigh >> >>> >> >>> > Hi Zilvinas, >> >>> > >> >>> > The Model for a CheckGroup is a Collection; I looked in >> >>> > Check.onComponentTag(...) in Eclipse and it shows that it emits the >> >>> > "checked" tag if the model object of the Check is contained in the >> >>> > CheckGroup's collection. >> >>> > >> >>> > But you should only really need to use the Collection returned >> from >> >>> the >> >>> > CheckGroup as it contains the list of selected items. >> >>> > >> >>> > Regards, >> >>> > >> >>> > Mike >> >>> > >> >>> > Can anyone explain me how do I determine whether the checkbox is >> >>> >> "checked"? >> >>> >> Is the "modelObject" null if not or what? Don't understand that and >> >>> >> javadoc's don't help :) >> >>> >> >> >>> >> What does the list in the CheckGroup model do? what does model in >> >>> Check >> >>> >> do? >> >>> >> does the item in the check model require to be inside the >> CheckGroup >> >>> list? >> >>> >> >> >>> >> Thank you :) >> >>> >> >> >>> >> Žilvinas Vilutis >> >>> >> >> >>> >> Mobile: (+370) 652 38353 >> >>> >> E-mail: cika...@gmail.com >> >>> >> >> >>> >> >> >>> >> >> >>> > >> >>> > >> >>> > >> - >> >>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> >>> > For additional commands, e-mail: users-h...@wicket.apache.org >> >>> > >> >>> > >> >>> >> >>> >> >>> -- >> >>> "Klein bottle for rent--inquire within." >> >>> >> >> >> >> >> > >> > >
Re: Check and CheckGroup
or an ajaxsubmitlink -- Jeremy Thomerson http://www.wickettraining.com On Fri, May 14, 2010 at 11:59 AM, Zilvinas Vilutis wrote: > The problem was that I was trying to get those values inside onClick method > of an AjaxLink, but did not submit the form. > > I've switched the link to a button and its clear now. > > > Žilvinas Vilutis > > Mobile: (+370) 652 38353 > E-mail: cika...@gmail.com > > > On Fri, May 14, 2010 at 9:54 AM, Zilvinas Vilutis > wrote: > > > Ok, I got it, the list contains only selected items after form submit :) > > > > > > Thank you! > > > > Žilvinas Vilutis > > > > Mobile: (+370) 652 38353 > > E-mail: cika...@gmail.com > > > > > > On Fri, May 14, 2010 at 9:48 AM, Zilvinas Vilutis >wrote: > > > >> No, I've got a list http://pastebin.com/KwZq49uG > >> > >> So I add all the items to a collection which is used as a model object > for > >> CG, and each of the items to each check. > >> > >> When I call selectedImages.getModelObject() - I get the same list which > >> contains all the items. > >> > >> Still don't get how to resolve a list of only selected items. > >> > >> > >> Žilvinas Vilutis > >> > >> Mobile: (+370) 652 38353 > >> E-mail: cika...@gmail.com > >> > >> > >> On Fri, May 14, 2010 at 9:37 AM, Xavier López > wrote: > >> > >>> If you hava a single checkbox, and only want to know if it's selected, > >>> I'd > >>> use a Checkbox component instead. You can put it a Boolean Model > >>> initialized > >>> to whatever and it will come back with the boolean value that will tell > >>> you > >>> if it's selected. > >>> > >>> Cheers, > >>> Xavier > >>> > >>> 2010/5/14 Michael O'Cleirigh > >>> > >>> > Hi Zilvinas, > >>> > > >>> > The Model for a CheckGroup is a Collection; I looked in > >>> > Check.onComponentTag(...) in Eclipse and it shows that it emits the > >>> > "checked" tag if the model object of the Check is contained in the > >>> > CheckGroup's collection. > >>> > > >>> > But you should only really need to use the Collection returned > from > >>> the > >>> > CheckGroup as it contains the list of selected items. > >>> > > >>> > Regards, > >>> > > >>> > Mike > >>> > > >>> > Can anyone explain me how do I determine whether the checkbox is > >>> >> "checked"? > >>> >> Is the "modelObject" null if not or what? Don't understand that and > >>> >> javadoc's don't help :) > >>> >> > >>> >> What does the list in the CheckGroup model do? what does model in > >>> Check > >>> >> do? > >>> >> does the item in the check model require to be inside the CheckGroup > >>> list? > >>> >> > >>> >> Thank you :) > >>> >> > >>> >> Žilvinas Vilutis > >>> >> > >>> >> Mobile: (+370) 652 38353 > >>> >> E-mail: cika...@gmail.com > >>> >> > >>> >> > >>> >> > >>> > > >>> > > >>> > - > >>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >>> > For additional commands, e-mail: users-h...@wicket.apache.org > >>> > > >>> > > >>> > >>> > >>> -- > >>> "Klein bottle for rent--inquire within." > >>> > >> > >> > > >
Re: Check and CheckGroup
The problem was that I was trying to get those values inside onClick method of an AjaxLink, but did not submit the form. I've switched the link to a button and its clear now. Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Fri, May 14, 2010 at 9:54 AM, Zilvinas Vilutis wrote: > Ok, I got it, the list contains only selected items after form submit :) > > > Thank you! > > Žilvinas Vilutis > > Mobile: (+370) 652 38353 > E-mail: cika...@gmail.com > > > On Fri, May 14, 2010 at 9:48 AM, Zilvinas Vilutis wrote: > >> No, I've got a list http://pastebin.com/KwZq49uG >> >> So I add all the items to a collection which is used as a model object for >> CG, and each of the items to each check. >> >> When I call selectedImages.getModelObject() - I get the same list which >> contains all the items. >> >> Still don't get how to resolve a list of only selected items. >> >> >> Žilvinas Vilutis >> >> Mobile: (+370) 652 38353 >> E-mail: cika...@gmail.com >> >> >> On Fri, May 14, 2010 at 9:37 AM, Xavier López wrote: >> >>> If you hava a single checkbox, and only want to know if it's selected, >>> I'd >>> use a Checkbox component instead. You can put it a Boolean Model >>> initialized >>> to whatever and it will come back with the boolean value that will tell >>> you >>> if it's selected. >>> >>> Cheers, >>> Xavier >>> >>> 2010/5/14 Michael O'Cleirigh >>> >>> > Hi Zilvinas, >>> > >>> > The Model for a CheckGroup is a Collection; I looked in >>> > Check.onComponentTag(...) in Eclipse and it shows that it emits the >>> > "checked" tag if the model object of the Check is contained in the >>> > CheckGroup's collection. >>> > >>> > But you should only really need to use the Collection returned from >>> the >>> > CheckGroup as it contains the list of selected items. >>> > >>> > Regards, >>> > >>> > Mike >>> > >>> > Can anyone explain me how do I determine whether the checkbox is >>> >> "checked"? >>> >> Is the "modelObject" null if not or what? Don't understand that and >>> >> javadoc's don't help :) >>> >> >>> >> What does the list in the CheckGroup model do? what does model in >>> Check >>> >> do? >>> >> does the item in the check model require to be inside the CheckGroup >>> list? >>> >> >>> >> Thank you :) >>> >> >>> >> Žilvinas Vilutis >>> >> >>> >> Mobile: (+370) 652 38353 >>> >> E-mail: cika...@gmail.com >>> >> >>> >> >>> >> >>> > >>> > >>> > - >>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> > For additional commands, e-mail: users-h...@wicket.apache.org >>> > >>> > >>> >>> >>> -- >>> "Klein bottle for rent--inquire within." >>> >> >> >
Re: Check and CheckGroup
Ok, I got it, the list contains only selected items after form submit :) Thank you! Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Fri, May 14, 2010 at 9:48 AM, Zilvinas Vilutis wrote: > No, I've got a list http://pastebin.com/KwZq49uG > > So I add all the items to a collection which is used as a model object for > CG, and each of the items to each check. > > When I call selectedImages.getModelObject() - I get the same list which > contains all the items. > > Still don't get how to resolve a list of only selected items. > > > Žilvinas Vilutis > > Mobile: (+370) 652 38353 > E-mail: cika...@gmail.com > > > On Fri, May 14, 2010 at 9:37 AM, Xavier López wrote: > >> If you hava a single checkbox, and only want to know if it's selected, I'd >> use a Checkbox component instead. You can put it a Boolean Model >> initialized >> to whatever and it will come back with the boolean value that will tell >> you >> if it's selected. >> >> Cheers, >> Xavier >> >> 2010/5/14 Michael O'Cleirigh >> >> > Hi Zilvinas, >> > >> > The Model for a CheckGroup is a Collection; I looked in >> > Check.onComponentTag(...) in Eclipse and it shows that it emits the >> > "checked" tag if the model object of the Check is contained in the >> > CheckGroup's collection. >> > >> > But you should only really need to use the Collection returned from >> the >> > CheckGroup as it contains the list of selected items. >> > >> > Regards, >> > >> > Mike >> > >> > Can anyone explain me how do I determine whether the checkbox is >> >> "checked"? >> >> Is the "modelObject" null if not or what? Don't understand that and >> >> javadoc's don't help :) >> >> >> >> What does the list in the CheckGroup model do? what does model in Check >> >> do? >> >> does the item in the check model require to be inside the CheckGroup >> list? >> >> >> >> Thank you :) >> >> >> >> Žilvinas Vilutis >> >> >> >> Mobile: (+370) 652 38353 >> >> E-mail: cika...@gmail.com >> >> >> >> >> >> >> > >> > >> > - >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> > For additional commands, e-mail: users-h...@wicket.apache.org >> > >> > >> >> >> -- >> "Klein bottle for rent--inquire within." >> > >
Re: Check and CheckGroup
No, I've got a list http://pastebin.com/KwZq49uG So I add all the items to a collection which is used as a model object for CG, and each of the items to each check. When I call selectedImages.getModelObject() - I get the same list which contains all the items. Still don't get how to resolve a list of only selected items. Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Fri, May 14, 2010 at 9:37 AM, Xavier López wrote: > If you hava a single checkbox, and only want to know if it's selected, I'd > use a Checkbox component instead. You can put it a Boolean Model > initialized > to whatever and it will come back with the boolean value that will tell you > if it's selected. > > Cheers, > Xavier > > 2010/5/14 Michael O'Cleirigh > > > Hi Zilvinas, > > > > The Model for a CheckGroup is a Collection; I looked in > > Check.onComponentTag(...) in Eclipse and it shows that it emits the > > "checked" tag if the model object of the Check is contained in the > > CheckGroup's collection. > > > > But you should only really need to use the Collection returned from > the > > CheckGroup as it contains the list of selected items. > > > > Regards, > > > > Mike > > > > Can anyone explain me how do I determine whether the checkbox is > >> "checked"? > >> Is the "modelObject" null if not or what? Don't understand that and > >> javadoc's don't help :) > >> > >> What does the list in the CheckGroup model do? what does model in Check > >> do? > >> does the item in the check model require to be inside the CheckGroup > list? > >> > >> Thank you :) > >> > >> Žilvinas Vilutis > >> > >> Mobile: (+370) 652 38353 > >> E-mail: cika...@gmail.com > >> > >> > >> > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > -- > "Klein bottle for rent--inquire within." >
Re: Check and CheckGroup
If you hava a single checkbox, and only want to know if it's selected, I'd use a Checkbox component instead. You can put it a Boolean Model initialized to whatever and it will come back with the boolean value that will tell you if it's selected. Cheers, Xavier 2010/5/14 Michael O'Cleirigh > Hi Zilvinas, > > The Model for a CheckGroup is a Collection; I looked in > Check.onComponentTag(...) in Eclipse and it shows that it emits the > "checked" tag if the model object of the Check is contained in the > CheckGroup's collection. > > But you should only really need to use the Collection returned from the > CheckGroup as it contains the list of selected items. > > Regards, > > Mike > > Can anyone explain me how do I determine whether the checkbox is >> "checked"? >> Is the "modelObject" null if not or what? Don't understand that and >> javadoc's don't help :) >> >> What does the list in the CheckGroup model do? what does model in Check >> do? >> does the item in the check model require to be inside the CheckGroup list? >> >> Thank you :) >> >> Žilvinas Vilutis >> >> Mobile: (+370) 652 38353 >> E-mail: cika...@gmail.com >> >> >> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- "Klein bottle for rent--inquire within."
Re: Check and CheckGroup
Thanks for quick response! We'll try soon ;) Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Fri, May 14, 2010 at 9:33 AM, Michael O'Cleirigh < michael.ocleir...@rivulet.ca> wrote: > Hi Zilvinas, > > The Model for a CheckGroup is a Collection; I looked in > Check.onComponentTag(...) in Eclipse and it shows that it emits the > "checked" tag if the model object of the Check is contained in the > CheckGroup's collection. > > But you should only really need to use the Collection returned from the > CheckGroup as it contains the list of selected items. > > Regards, > > Mike > > Can anyone explain me how do I determine whether the checkbox is >> "checked"? >> Is the "modelObject" null if not or what? Don't understand that and >> javadoc's don't help :) >> >> What does the list in the CheckGroup model do? what does model in Check >> do? >> does the item in the check model require to be inside the CheckGroup list? >> >> Thank you :) >> >> Žilvinas Vilutis >> >> Mobile: (+370) 652 38353 >> E-mail: cika...@gmail.com >> >> >> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Check and CheckGroup
Hi Zilvinas, The Model for a CheckGroup is a Collection; I looked in Check.onComponentTag(...) in Eclipse and it shows that it emits the "checked" tag if the model object of the Check is contained in the CheckGroup's collection. But you should only really need to use the Collection returned from the CheckGroup as it contains the list of selected items. Regards, Mike Can anyone explain me how do I determine whether the checkbox is "checked"? Is the "modelObject" null if not or what? Don't understand that and javadoc's don't help :) What does the list in the CheckGroup model do? what does model in Check do? does the item in the check model require to be inside the CheckGroup list? Thank you :) Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Check and CheckGroup
Have you looked at the examples? http://wicketstuff.org/wicket/forminput/ -- Jeremy Thomerson http://www.wickettraining.com On Fri, May 14, 2010 at 11:22 AM, Zilvinas Vilutis wrote: > Hi all, > > Can anyone explain me how do I determine whether the checkbox is "checked"? > Is the "modelObject" null if not or what? Don't understand that and > javadoc's don't help :) > > What does the list in the CheckGroup model do? what does model in Check do? > does the item in the check model require to be inside the CheckGroup list? > > Thank you :) > > Žilvinas Vilutis > > Mobile: (+370) 652 38353 > E-mail: cika...@gmail.com >
Check and CheckGroup
Hi all, Can anyone explain me how do I determine whether the checkbox is "checked"? Is the "modelObject" null if not or what? Don't understand that and javadoc's don't help :) What does the list in the CheckGroup model do? what does model in Check do? does the item in the check model require to be inside the CheckGroup list? Thank you :) Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com
Re: wicket-event.js 404
Also - what version of Wicket are you using? -- Jeremy Thomerson http://www.wickettraining.com On Fri, May 14, 2010 at 10:48 AM, Jeremy Thomerson < jer...@wickettraining.com> wrote: > Create a quickstart that demonstrates this and attach it to a JIRA. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > > On Fri, May 14, 2010 at 7:31 AM, Lorenzo Bolzani wrote: > >> Hi all, >> I have a quite simple composition of panels with the innermost panel >> containing a form. >> In the form there is an AjaxSubmitLink. In the onSubmit of the link >> there is this line >> >> target.addComponent(feedback); >> >> When I click the link using Firebug in Firefox I can see that a POST >> is sent to this URL >> >> >> http://localhost:9090/?wicket:interface=:3:products:newItemDetails:editor:entity:actionBar:save::IActivePageBehaviorListener:0:1&wicket:ignoreIfNotActive=true >> >> the content is a standard multi-part submit, I can post it if useful. >> >> The server responds with this ajax-response >> >> > id="newItemDetailse" >> encoding="wicket1" >
Re: wicket-event.js 404
Create a quickstart that demonstrates this and attach it to a JIRA. -- Jeremy Thomerson http://www.wickettraining.com On Fri, May 14, 2010 at 7:31 AM, Lorenzo Bolzani wrote: > Hi all, > I have a quite simple composition of panels with the innermost panel > containing a form. > In the form there is an AjaxSubmitLink. In the onSubmit of the link > there is this line > > target.addComponent(feedback); > > When I click the link using Firebug in Firefox I can see that a POST > is sent to this URL > > > http://localhost:9090/?wicket:interface=:3:products:newItemDetails:editor:entity:actionBar:save::IActivePageBehaviorListener:0:1&wicket:ignoreIfNotActive=true > > the content is a standard multi-part submit, I can post it if useful. > > The server responds with this ajax-response > > id="newItemDetailse" > encoding="wicket1" >
Re: Image Upload Using TinyMCE Within Wicket Framework
Hi Michal Great thanks for the help.. Best Regards Muro 2010/5/14 Michał Letyński > Hi. > Yes you are right the last released version is 1.4.1. So you must build it > localy. > > W dniu 2010-05-14 11:19, Muro Copenhagen pisze: > > Hi Michal >> >> I appreciate you're effort spelling things out. >> >> I am still not sure on how to get it to work. >> >> When i add this dependency to my project it won't work: >> >> org.wicketstuff >> tinymce >> 1.4.7-SNAPSHOT >> >> And that makes sense since i can't find that version in the repo: >> http://wicketstuff.org/maven/repository >> >> So how would i get my project to use the tinymce version 1.4.7-SNAPSHOT ? >> >> Maybe it's a silly question... but i am not sure how to make it work... >> >> Best Regards >> Muro >> >> 2010/5/13 Michał Letyński >> >> >> >>> Hi. >>> Its commited to trunk and in pom we have 1.4.7-SNAPSHOT so it should be >>> available ... >>> >>> >>> W dniu 2010-05-12 15:23, Muro Copenhagen pisze: >>> >>> Hi again... >>> >>> I guess a new release of wicket-stuff tinymce has to be made in order to use it... The current release 1.4-rc7 misses the changes you have commited... Who can make a new release of wicket-stuff tinymce so we can use the commited code ? Best Regards Muro 2010/5/12 Michał Letyński > Hi. > Its one of tiny examples: > > > > https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/tinymce-examples > > W dniu 2010-05-12 12:40, Muro Copenhagen pisze: > > > > > >> Hi Michael, >> >> That is a great example. But you mentioned that you have commited the >> sample >> to wicket-stuff. >> >> I can't find it anywhere so can you please send a link or something... >> >> Best regards >> Muro >> >> On Tue, May 4, 2010 at 2:49 PM, Robert Kimotho >> wrote: >> >> >> >> >> >> >> >>> You are right I have a wicket path in src and it looks like this >>> >>> >>> >>> >>> 'resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif' >>> this is what you get submitted to the server, but the image does not >>> get >>> displayed. >>> Can you guide me to using the IResourceListener or getting the >>> emoticon >>> displayed at the client side. >>> >>> Regards, >>> Kimotho. >>> >>> 2010/5/4 Michał Letyński >>> >>> >>> >>> >>> >>> >>> Hi. If you have images in tiny with external src it should work but if you >>> have >>> >>> >>> >>> >>> >>> in src a wicket path you must change it (to component which will get the image look at IResourceListener) before displainng image in label, multilinelabel, etc. W dniu 2010-05-03 09:10, Robert Kimotho pisze: When I submit a form with an emoticon from the fullfeatured tinymce, the > image doesn't get displayed in the destination > only the text. > any suggestions, I've been stuck here for a while now. > > 2010/5/1 新希望软件 -- 俞宏伟 > > > > > > > > > >> image upload example run failuer, the application >> throwsNoClassDefFoundError >> . >> >> WicketMessage: Can't instantiate page using constructor public >> wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage() >> >> Root cause: >> >> java.lang.NoClassDefFoundError: >> wicket/contrib/tinymce/image/ImageUploadPanel >> at >> >> >> >> >> >> >> >> > > > >>> >>> wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage.(ImageUploadTinyMCEPage.java:42) >>> >>> >>> >>> >>> >>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > > >> at >> java.lang.reflect.Constructor.newInstance(Constructor.java:513) >> at >> >> >> >> >> >> >> >> > > > >>> >>> org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192) >>> >>> >>> >>> >>> >>> at > > >> >> >> >> >>
Re: Image Upload Using TinyMCE Within Wicket Framework
Hi. Yes you are right the last released version is 1.4.1. So you must build it localy. W dniu 2010-05-14 11:19, Muro Copenhagen pisze: Hi Michal I appreciate you're effort spelling things out. I am still not sure on how to get it to work. When i add this dependency to my project it won't work: org.wicketstuff tinymce 1.4.7-SNAPSHOT And that makes sense since i can't find that version in the repo: http://wicketstuff.org/maven/repository So how would i get my project to use the tinymce version 1.4.7-SNAPSHOT ? Maybe it's a silly question... but i am not sure how to make it work... Best Regards Muro 2010/5/13 Michał Letyński Hi. Its commited to trunk and in pom we have 1.4.7-SNAPSHOT so it should be available ... W dniu 2010-05-12 15:23, Muro Copenhagen pisze: Hi again... I guess a new release of wicket-stuff tinymce has to be made in order to use it... The current release 1.4-rc7 misses the changes you have commited... Who can make a new release of wicket-stuff tinymce so we can use the commited code ? Best Regards Muro 2010/5/12 Michał Letyński Hi. Its one of tiny examples: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/tinymce-examples W dniu 2010-05-12 12:40, Muro Copenhagen pisze: Hi Michael, That is a great example. But you mentioned that you have commited the sample to wicket-stuff. I can't find it anywhere so can you please send a link or something... Best regards Muro On Tue, May 4, 2010 at 2:49 PM, Robert Kimotho wrote: You are right I have a wicket path in src and it looks like this 'resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif' this is what you get submitted to the server, but the image does not get displayed. Can you guide me to using the IResourceListener or getting the emoticon displayed at the client side. Regards, Kimotho. 2010/5/4 Michał Letyński Hi. If you have images in tiny with external src it should work but if you have in src a wicket path you must change it (to component which will get the image look at IResourceListener) before displainng image in label, multilinelabel, etc. W dniu 2010-05-03 09:10, Robert Kimotho pisze: When I submit a form with an emoticon from the fullfeatured tinymce, the image doesn't get displayed in the destination only the text. any suggestions, I've been stuck here for a while now. 2010/5/1 新希望软件 -- 俞宏伟 image upload example run failuer, the application throwsNoClassDefFoundError . WicketMessage: Can't instantiate page using constructor public wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage() Root cause: java.lang.NoClassDefFoundError: wicket/contrib/tinymce/image/ImageUploadPanel at wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage.(ImageUploadTinyMCEPage.java:42) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.Req
Re: setter on model object not called
Yeah as I mentioned previously I am using a Property Model. I just think it is counter intuitive that the property model would bypass the setter and inject the value onto the field just because there was not getter! Seems like preferred behavior would be to do one of the following 1) use the setter if there is one, irregardless of whether there is a getter or not.. 2) throw an error if you try to use a property model and you only have the setter but no getter... D/ On May 13, 2010, at 3:35 AM, Cemal Bayramoglu wrote: > It sounds like you are using a PropertyModel. If so, that is the > "expected" behaviour, provided by the property resolver it employs. > If there is no accessor (getter), the field, even if private is > accessed (fields[i].setAccessible(true);). > This is by design, not a bug, but whether it's a good idea or not is > can be argued. The pragmatic argument for this design decision could > probably be along the lines of - the model object may not have > accessors and you may not have control of the code for it (so how do > you know the private variable exists? And encapsulation?).You could > end up with an app that runs in development and fails in production if > Java security management is configured differently. > So, use with care - in Java "getters" and "setters" are an unfortunate > fact of life, so prefer having accessors and mutators if you have the > choice. > > Regards - Cemal > jWeekend > OO & Java Technologies, Wicket > Consulting, Development, Training > http://jWeekend.com > > > On 13 May 2010 08:57, Douglas Ferguson wrote: >> I figured it out. >> >> If the object doesn't have a getter, the setter won't be called, and instead >> it just injects the value into the field. >> >> That seems like a bug, do I need to prepare a quickstart? >> >> D/ >> >> On May 13, 2010, at 2:51 AM, Cemal Bayramoglu wrote: >> >>> Send a QuickStart (simplest one you can create that demonstrates this) >>> and we'll take a look. >>> >>> Regards - Cemal >>> jWeekend >>> OO & Java Technologies, Wicket >>> Consulting, Development, Training >>> http://jWeekend.com >>> >>> >>> >>> On 13 May 2010 08:17, Douglas Ferguson wrote: I am seeing some unexpected behavior. I have a page with a text field and a link on it. The text field is backed with a property model The text field has an AjaxFormComponentUpdatingBehavior on it. The link then persists the object that the property model is wrapping. I never see the setter get called for the object. The setter massages the data. I see the raw data, as entered in the browser, get stored to my db. I also never hit my breakpoint int he setter. D/ - 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
wicket-event.js 404
Hi all, I have a quite simple composition of panels with the innermost panel containing a form. In the form there is an AjaxSubmitLink. In the onSubmit of the link there is this line target.addComponent(feedback); When I click the link using Firebug in Firefox I can see that a POST is sent to this URL http://localhost:9090/?wicket:interface=:3:products:newItemDetails:editor:entity:actionBar:save::IActivePageBehaviorListener:0:1&wicket:ignoreIfNotActive=true the content is a standard multi-part submit, I can post it if useful. The server responds with this ajax-response
Re: AutoCompleteTextField uses wrong encoding?
Hi Matt some long time ago I had a similiar problem with AjaxEditableLabel. I used tomcat and there you need to configure the connector using "useBodyEncodingForURI=true" to make the ajax requests correctly encoded (using utf8). eike On 10.05.2010 15:27, Matthias Keller wrote: Hi I'm using an autocompletefield and it works fine so far. Except that when entering special characters, they don't get encoded correctly. The query String is correct and sends the special character in encoded UTF-8: GET http://localhost:9080/.../...&q=%C3%B6&random=... %C3%B6 is UTF8 for "ö" But in: org.apache.wicket.extensions.ajax.markup.html.autocomplete.AbstractAutoCompleteBehavior.respond(AjaxRequestTarget) The following line final String val = requestCycle.getRequest().getParameter("q"); returns an incorrect string: "ö" which would be the %C3%B6 in ISO-8859-1 (which happens to be my platform encoding)... Thus the input parameter to my getChoices() call contains strange characters in this case... It appears that the request isn't read out as UTF-8 somehow.. Since I don't know the AJAX internals, it's hard to find the culprit for me I'm using Wicket 1.4.8 Matt
proble with AjaxLazyLoad in IE7 and IE8
Hi, I am using AjaxLazyLoad panel and it's working fine in mozilla firefox but in IE7 and IE8, it's not working. when i press F5 ( refresh page) than it's work. Please help !!! Thanks in advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/proble-with-AjaxLazyLoad-in-IE7-and-IE8-tp2164954p2164954.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
Re: Image Upload Using TinyMCE Within Wicket Framework
Hi Michal I appreciate you're effort spelling things out. I am still not sure on how to get it to work. When i add this dependency to my project it won't work: org.wicketstuff tinymce 1.4.7-SNAPSHOT And that makes sense since i can't find that version in the repo: http://wicketstuff.org/maven/repository So how would i get my project to use the tinymce version 1.4.7-SNAPSHOT ? Maybe it's a silly question... but i am not sure how to make it work... Best Regards Muro 2010/5/13 Michał Letyński > Hi. > Its commited to trunk and in pom we have 1.4.7-SNAPSHOT so it should be > available ... > > > W dniu 2010-05-12 15:23, Muro Copenhagen pisze: > > Hi again... >> >> I guess a new release of wicket-stuff tinymce has to be made in order to >> use >> it... >> >> The current release 1.4-rc7 misses the changes you have commited... >> >> Who can make a new release of wicket-stuff tinymce so we can use the >> commited code ? >> >> Best Regards >> Muro >> >> 2010/5/12 Michał Letyński >> >> >> >>> Hi. >>> Its one of tiny examples: >>> >>> >>> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/tinymce-examples >>> >>> W dniu 2010-05-12 12:40, Muro Copenhagen pisze: >>> >>> >>> Hi Michael, That is a great example. But you mentioned that you have commited the sample to wicket-stuff. I can't find it anywhere so can you please send a link or something... Best regards Muro On Tue, May 4, 2010 at 2:49 PM, Robert Kimotho wrote: > You are right I have a wicket path in src and it looks like this > > > > 'resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif' > this is what you get submitted to the server, but the image does not > get > displayed. > Can you guide me to using the IResourceListener or getting the emoticon > displayed at the client side. > > Regards, > Kimotho. > > 2010/5/4 Michał Letyński > > > > > >> Hi. >> If you have images in tiny with external src it should work but if you >> >> >> >> > have > > > > >> in src a wicket path you must change it (to component which will get >> the >> image look at IResourceListener) before displainng image in label, >> multilinelabel, etc. >> >> >> W dniu 2010-05-03 09:10, Robert Kimotho pisze: >> >> When I submit a form with an emoticon from the fullfeatured tinymce, >> the >> >> >> >> >>> image doesn't get displayed in the destination >>> only the text. >>> any suggestions, I've been stuck here for a while now. >>> >>> 2010/5/1 新希望软件 -- 俞宏伟 >>> >>> >>> >>> >>> >>> >>> image upload example run failuer, the application throwsNoClassDefFoundError . WicketMessage: Can't instantiate page using constructor public wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage() Root cause: java.lang.NoClassDefFoundError: wicket/contrib/tinymce/image/ImageUploadPanel at >>> >>> >> > wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage.(ImageUploadTinyMCEPage.java:42) > > > > >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> >> >>> Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at >>> >>> >> > org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192) > > > > >> at >> >> >>> >>> >>> >> > org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57) > > > > >> at >> >> >>> >>> >>> >> > org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298) > > > > >> at >> >> >>> >>> >>> >> > org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320) > > > > >> at >> >> >>> >>> >>> >> > org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234) > > > > >> at >> >> >>> >>> >>> >> > org.apache.wicket.r
uncaught exception in wicket-ajax.js
Hi all, I'm using ajax with wizard component and have a following problem. On one of my steps, I have a listview with check boxes inside and additional ajax link to submit. Everything works fine in chrome, but in firefox I usually get "chanel busy postponing..." in ajax debug. firebug shows some weird uncaught exception that I assume is a cause for channel to be busy. uncaught exception: [Exception... "Component returned failure code: 0x804b0049 (NS_ERROR_ALREADY_OPENED) [nsIXMLHttpRequest.send]" nsresult: "0x804b0049 (NS_ERROR_ALREADY_OPENED)" location: "JS frame :: http://localhost:7070/web/resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js :: anonymous :: line 890" data: no] Line 0 I looked through my code again to check for some loops that can cause busy channel - there are none. For now I'm out of solutions, so any help or a search direction would be much appreciated. Best regards, Ivan. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/uncaught-exception-in-wicket-ajax-js-tp2197887p2197887.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