Re: Pageable JasperReport
I think i have to reply to my post :) ..nwei, i successfully implemented pageable in jasperreports using wicket's pageablelistview and it is a hack i supposed. :) and im going to do it also in DataView since the data there is refresh every time the pagelink is click. This is better option for large report options where the data is not stored in the collection to be paged later. Thanks to the developer of wicket-jasperreport projects Thanks a lot. Cheers. freak182 wrote: Hello, I checkout the wicket-jasperreport project i successfully play with it. Now my problem is, i want a pagination functionality in the wicket-jasperreport example. The report data that came from the db and it has 1,000 records retrieved and i dont want to display that in pdf 1000 pages , (although pdf reader has a pagination function and to minimize db query) , instead i want a paging navigator. I just want a functionality just like DataView that fetch every time the data from db when the link click. here is the code snippet from wicket-jasperreport /** * Simple Jasper reports example with PDF output and a jasper reports panel.. * * @author Eelco Hillenius */ public class SimplePdfPage extends WicketExamplePage implements Serializable { /** * Constructor. */ public SimplePdfPage() { ServletContext context = ((WebApplication) getApplication()).getServletContext(); final File reportFile = new File(context.getRealPath(/reports/ds_report_1.jasper)); final Map parameters = new HashMap(); JRResource pdfResource = new JRPdfResource(reportFile).setReportParameters( parameters).setReportDataSource(createReportDataSource()); add(new EmbeddedJRReport(report, pdfResource)); } ...I want the JasperReport DataSource ( to be more precise JRBeanCollectionDataSource) came from the paged list from the paging navigator. Can someone point to me where should i start or what wicket component should i extend/implement or do some code changing? Thanks a lot. Cheers. -- View this message in context: http://www.nabble.com/Pageable-JasperReport-tp19250292p19602334.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help regarding Base Page refresh.
I have a Wicket Page containing tabbedPanels which opens few other pages depending on the tabs. But in few of my tabs, I have BookmarkablePageLink to open a popup for some operation. I want to refresh corresponding tab after popup is closed. Please help. Kammy Add more friends to your messenger and enjoy! Go to http://in.messenger.yahoo.com/invite/
Re: job postings
+1 On 9/22/08, Jonathan Locke [EMAIL PROTECTED] wrote: we encourage wicket related job postings on this list and i think that's great. but i was thinking it would be neat to also encourage people to make their wicket job posts links to a job list on the wicket wiki. thoughts? jon -- View this message in context: http://www.nabble.com/job-postings-tp19602122p19602122.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: job postings
we encourage wicket related job postings on this list and i think that's great. Speaking of which, we're looking for a colleague... New Yorkers, look here: http://newyork.craigslist.org/mnh/sof/846161277.html Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: job postings
Speaking of which, we're looking for a colleague... New Yorkers, look here: http://newyork.craigslist.org/mnh/sof/846161277.html And while we are looking for people who live in/ near New York, we *might* be interested in other US people, particularly from Seattle. Feel free to drop me a line :-) Cheers, Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket sample application
I wanted to replace a text field on the registration page by a date. So I opened phpMyAdmin and replaced the column type by date - reloaded the page (without a restart or additional code-generation) - and there was already a date-picker on the page instead of the text field uff ... that sounds weird! configuring the GUI in the database ... thankfully you won't find anything like that in wicket ... toby78 wrote: I don't think there need to be a 1000 examples - a single, complete, convincing example would be sufficient...one that can be used as a starting point for a website (authentication, a good database layer...some ajax samples). I am currently looking at several webprograming frameworks, including T5, Wicket and PHP based frameworks such as Akelos and CakePHP. For a new project I want to use the fastest webprograming framework, that will both show results in little time and that does not require a lot of time to get it running and to be able to get going with it. So far, T5 is quite good as you do not need a lot of configuration and tools exist to generate mapping files etcor annotated java daosand you can either start from a database or object-driven point of view. The problem in T5 is that it is very flexible and different people use the lego bricks of Tapestry in a different way so that it is hard to re-use code of others. There is no general agreement on how to do those projects and everyone does his own user authentication etcso in my opinion it is only good if you start from scratch and do everything on your own. My first impression of wicket (after looking at the phonebook application) is, that lots of code examples for Ajax exist and that it looks quite good. However there seem to be lots of configuration files, so whenever you make a new object you need new hibernate mapping files, and several class files and interfaces - so lots of writing. I also happenned to see a .vm file - and I think velocity is really out-of-dateand I dont know why this is needed. So I think you could re-use existing code of others and save time with Wicket and make nice-Ajax applications - but it seems to be a lot of code-writing and configuration work. Akelos looks like a great framework - like Ruby on Rails for PHP. However there is not much code available but you are a lot faster then doing webprogramming using Java frameworks... CakePHP is a good alternative - a different approach and much more code samples and a bigger community. E.g. there was a sample application (a complete CMS!!!), and I wanted to replace a text field on the registration page by a date. So I opened phpMyAdmin and replaced the column type by date - reloaded the page (without a restart or additional code-generation) - and there was already a date-picker on the page instead of the text field. So you save lots of time. You dont even need a mapping for your objects as it uses the meta information of the database tables and in general a general definition of what column names need to look like etcso a great time-saver. So my favourite would be cakePHP right now although I would prefer a Java framework - but they are either incomplete or involve much configuration files, restart of the server every time and often you end up in problems that require to debug the core code - and then you end up wasting one day or several day for nothing. Original-Nachricht Datum: Sat, 20 Sep 2008 08:10:01 -0400 Von: James Carman [EMAIL PROTECTED] An: users@wicket.apache.org Betreff: Re: Wicket sample application A quick perusal of Wicket in Action over a weekend wouldn't hurt either (if you like Cheese)! :) On Sat, Sep 20, 2008 at 8:08 AM, James Carman [EMAIL PROTECTED] wrote: I think you might find that if you started with some of the tutorials and perhaps some maven archetypes, you could have probably made up your own example of wicket with database access and all of the features you're looking for with far less keystrokes than you've spent writing emails asking where the examples are. Don't get me wrong, I do agree that there should be some good examples out there (and there are), but you will quickly realize that developing with Wicket really is just that darn easy and you can get stuff up and running very quickly by piecing together tidbits from the smaller examples. On Sat, Sep 20, 2008 at 7:59 AM, [EMAIL PROTECTED] wrote: This example is not easy to find, as it is not directly listed under examples on the website. Apart from that: http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook/ seems to be an old wicket version and there is no version for wicket 2.0 ? Is there no sample application with database access for the current version of wicket? Original-Nachricht Datum: Fri, 19 Sep 2008 20:09:37 +0100 Von: Gwyn Evans [EMAIL PROTECTED] An:
[announce] WUG DK @ 15 October
Please add yourself if you want to attend in the wiki. Im holding 2x wicket seminars(24 people each), this wed/thur and expect/hope to draw attention to WUG. -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java BlackBelt Wicket exam
hehe Leon Nieuwoudt wrote: For black belt, one of the questions must be to identify Martin, Eelco, Nino and Igor from a police line-up. On Fri, Sep 19, 2008 at 4:11 PM, James Carman [EMAIL PROTECTED]wrote: Perhaps it could be for a yellow belt. ;) On Fri, Sep 19, 2008 at 11:09 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi It looks fairly simple, I guess it depends on the depth of the exam... Because it could go over a lot more, or maybe the points could specified to further detail as you write. Eyal Golan wrote: Hi, I have proposed to open a Wicket exam in JavaBlackBelt. Here's my proposal: http://www.javablackbelt.com/forum/posts/list/0/118.page#567 Please check it and give your thoughts. I have already written several questions (to myself). Thanks -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where to put custom validator properties file within JAR so Wicket finds it?
I have a Maven project that builds a JAR file called mf-wicket- extensions.jar. I've created a class called DisallowedContentValidator.java that's built as part of the JAR. I'd like to add a DisallowedContentValidator.properties file that's automatically found when the validator validates and needs to display an error. My question is: Where (what path) in my Maven project do I put the DisallowedContentValidator.properties file so that the properties file is automatically found when mf-wicket-extensions.jar/ DisallowedContentValidator.class lib is loaded as part of a web app? (Sorry I'm pretty new at Maven--I'm a new convert to Maven--but I'm sure there must be a way to do this.) Many thanks, Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Release date for 1.3.5?
Check the open issues for 1.3.5 on JIRA: https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truemode=hidesorter/order=DESCsorter/field=priorityresolution=-1pid=12310561fixfor=12313175 They are down to 27 from ~35 a few days ago. Jörn On Mon, Sep 22, 2008 at 6:14 AM, ywtsang [EMAIL PROTECTED] wrote: as i also want to know the release schedule of 1.3.5, after searching the mail list, it seems this thread is the latest about the topic, so i bring this thread up again do we have a planned schedule for 1.3.5? thanks Jörn Zaefferer-2 wrote: Hi, is there a release date planned for 1.3.5? There are important updates in trunk, like protection against CSRF (https://issues.apache.org/jira/browse/WICKET-1782). If there isn't a date yet, what needs to be done to get one? Regards Jörn -- View this message in context: http://www.nabble.com/Release-date-for-1.3.5--tp19368299p19601665.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket Markup parse doesn't handle Conditional Comments
Hi, I just tried to put some conditional comments in my page: !--[if lt IE 7] style type=text/css .dock img { behavior: url(css/iepngfix.htc) } /style ![endif]-- and the Markupparser just can't seem to handle it: Caused by: java.text.ParseException: Unclosed comment beginning at line:9 column:3 at org.apache.wicket.markup.parser.XmlPullParser.specialTagHandling(XmlPullParser.java:332) at org.apache.wicket.markup.parser.XmlPullParser.next(XmlPullParser.java:243) at org.apache.wicket.markup.parser.XmlPullParser.nextTag(XmlPullParser.java:423) at org.apache.wicket.markup.parser.filter.WicketTagIdentifier.nextTag(WicketTagIdentifier.java:77) at org.apache.wicket.markup.parser.filter.TagTypeHandler.nextTag(TagTypeHandler.java:76) at org.apache.wicket.markup.parser.filter.HtmlHandler.nextTag(HtmlHandler.java:78) at org.apache.wicket.markup.parser.filter.WicketRemoveTagHandler.nextTag(WicketRemoveTagHandler.java:60) at org.apache.wicket.markup.parser.filter.WicketLinkTagHandler.nextTag(WicketLinkTagHandler.java:94) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.WicketNamespaceHandler.nextTag(WicketNamespaceHandler.java:72) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.WicketMessageTagHandler.nextTag(WicketMessageTagHandler.java:81) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.HtmlHeaderSectionHandler.nextTag(HtmlHeaderSectionHandler.java:77) at org.apache.wicket.markup.parser.filter.HeadForceTagIdHandler.nextTag(HeadForceTagIdHandler.java:77) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.OpenCloseTagExpander.nextTag(OpenCloseTagExpander.java:51) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.EnclosureHandler.nextTag(EnclosureHandler.java:76) at org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler.nextTag(RelativePathPrefixHandler.java:116) at org.apache.wicket.markup.MarkupParser.getNextTag(MarkupParser.java:302) at org.apache.wicket.markup.MarkupParser.parseMarkup(MarkupParser.java:322) ... 35 more Any way of handling this? thanks
Re: Strange behavior withe Modal Window
I thought taking out all state from the modal window to the page it is holding. It is very strange: When the user presses OK in a form that in the page, i construct a new instance (of WebPage). When the close callback is initiated, the instance that was created is null. Any thoughts? I am on this for a few days already ... -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Re: Where to put custom validator properties file within JAR so Wicket finds it?
It took a while to find the corresponding issue: http://issues.apache.org/jira/browse/WICKET-1103 Martijn On Mon, Sep 22, 2008 at 9:51 AM, Justin Morgan - Logic Sector [EMAIL PROTECTED] wrote: I have a Maven project that builds a JAR file called mf-wicket-extensions.jar. I've created a class called DisallowedContentValidator.java that's built as part of the JAR. I'd like to add a DisallowedContentValidator.properties file that's automatically found when the validator validates and needs to display an error. My question is: Where (what path) in my Maven project do I put the DisallowedContentValidator.properties file so that the properties file is automatically found when mf-wicket-extensions.jar/DisallowedContentValidator.class lib is loaded as part of a web app? (Sorry I'm pretty new at Maven--I'm a new convert to Maven--but I'm sure there must be a way to do this.) Many thanks, Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange behavior withe Modal Window
Hi, You can try using abstract methods. I have made an example with demo project here: http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup Regards, Daan On 22 sep 2008, at 10:41, Eyal Golan wrote: I thought taking out all state from the modal window to the page it is holding. It is very strange: When the user presses OK in a form that in the page, i construct a new instance (of WebPage). When the close callback is initiated, the instance that was created is null. Any thoughts? I am on this for a few days already ... -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket sample application
I think it is good to treat the most common cases as default cases without having to write unnecessary or redundant code...if you want to overwrite or replace the behaviour, you can still do this. This is similiar to the BeanEdit Form in Tapestry...to automatically generate forms for objects etc... Original-Nachricht Datum: Mon, 22 Sep 2008 00:17:33 -0700 (PDT) Von: Michael Sparer [EMAIL PROTECTED] An: users@wicket.apache.org Betreff: Re: Wicket sample application I wanted to replace a text field on the registration page by a date. So I opened phpMyAdmin and replaced the column type by date - reloaded the page (without a restart or additional code-generation) - and there was already a date-picker on the page instead of the text field uff ... that sounds weird! configuring the GUI in the database ... thankfully you won't find anything like that in wicket ... toby78 wrote: I don't think there need to be a 1000 examples - a single, complete, convincing example would be sufficient...one that can be used as a starting point for a website (authentication, a good database layer...some ajax samples). I am currently looking at several webprograming frameworks, including T5, Wicket and PHP based frameworks such as Akelos and CakePHP. For a new project I want to use the fastest webprograming framework, that will both show results in little time and that does not require a lot of time to get it running and to be able to get going with it. So far, T5 is quite good as you do not need a lot of configuration and tools exist to generate mapping files etcor annotated java daosand you can either start from a database or object-driven point of view. The problem in T5 is that it is very flexible and different people use the lego bricks of Tapestry in a different way so that it is hard to re-use code of others. There is no general agreement on how to do those projects and everyone does his own user authentication etcso in my opinion it is only good if you start from scratch and do everything on your own. My first impression of wicket (after looking at the phonebook application) is, that lots of code examples for Ajax exist and that it looks quite good. However there seem to be lots of configuration files, so whenever you make a new object you need new hibernate mapping files, and several class files and interfaces - so lots of writing. I also happenned to see a .vm file - and I think velocity is really out-of-dateand I dont know why this is needed. So I think you could re-use existing code of others and save time with Wicket and make nice-Ajax applications - but it seems to be a lot of code-writing and configuration work. Akelos looks like a great framework - like Ruby on Rails for PHP. However there is not much code available but you are a lot faster then doing webprogramming using Java frameworks... CakePHP is a good alternative - a different approach and much more code samples and a bigger community. E.g. there was a sample application (a complete CMS!!!), and I wanted to replace a text field on the registration page by a date. So I opened phpMyAdmin and replaced the column type by date - reloaded the page (without a restart or additional code-generation) - and there was already a date-picker on the page instead of the text field. So you save lots of time. You dont even need a mapping for your objects as it uses the meta information of the database tables and in general a general definition of what column names need to look like etcso a great time-saver. So my favourite would be cakePHP right now although I would prefer a Java framework - but they are either incomplete or involve much configuration files, restart of the server every time and often you end up in problems that require to debug the core code - and then you end up wasting one day or several day for nothing. Original-Nachricht Datum: Sat, 20 Sep 2008 08:10:01 -0400 Von: James Carman [EMAIL PROTECTED] An: users@wicket.apache.org Betreff: Re: Wicket sample application A quick perusal of Wicket in Action over a weekend wouldn't hurt either (if you like Cheese)! :) On Sat, Sep 20, 2008 at 8:08 AM, James Carman [EMAIL PROTECTED] wrote: I think you might find that if you started with some of the tutorials and perhaps some maven archetypes, you could have probably made up your own example of wicket with database access and all of the features you're looking for with far less keystrokes than you've spent writing emails asking where the examples are. Don't get me wrong, I do agree that there should be some good examples out there (and there are), but you will quickly realize that developing with Wicket really is just that darn easy and you can get stuff up and running very quickly by piecing
Re: Wicket sample application
nope this is GUI configuration in database, no annotation driven object generation. toby78 wrote: I think it is good to treat the most common cases as default cases without having to write unnecessary or redundant code...if you want to overwrite or replace the behaviour, you can still do this. This is similiar to the BeanEdit Form in Tapestry...to automatically generate forms for objects etc... Original-Nachricht Datum: Mon, 22 Sep 2008 00:17:33 -0700 (PDT) Von: Michael Sparer [EMAIL PROTECTED] An: users@wicket.apache.org Betreff: Re: Wicket sample application I wanted to replace a text field on the registration page by a date. So I opened phpMyAdmin and replaced the column type by date - reloaded the page (without a restart or additional code-generation) - and there was already a date-picker on the page instead of the text field uff ... that sounds weird! configuring the GUI in the database ... thankfully you won't find anything like that in wicket ... toby78 wrote: I don't think there need to be a 1000 examples - a single, complete, convincing example would be sufficient...one that can be used as a starting point for a website (authentication, a good database layer...some ajax samples). I am currently looking at several webprograming frameworks, including T5, Wicket and PHP based frameworks such as Akelos and CakePHP. For a new project I want to use the fastest webprograming framework, that will both show results in little time and that does not require a lot of time to get it running and to be able to get going with it. So far, T5 is quite good as you do not need a lot of configuration and tools exist to generate mapping files etcor annotated java daosand you can either start from a database or object-driven point of view. The problem in T5 is that it is very flexible and different people use the lego bricks of Tapestry in a different way so that it is hard to re-use code of others. There is no general agreement on how to do those projects and everyone does his own user authentication etcso in my opinion it is only good if you start from scratch and do everything on your own. My first impression of wicket (after looking at the phonebook application) is, that lots of code examples for Ajax exist and that it looks quite good. However there seem to be lots of configuration files, so whenever you make a new object you need new hibernate mapping files, and several class files and interfaces - so lots of writing. I also happenned to see a .vm file - and I think velocity is really out-of-dateand I dont know why this is needed. So I think you could re-use existing code of others and save time with Wicket and make nice-Ajax applications - but it seems to be a lot of code-writing and configuration work. Akelos looks like a great framework - like Ruby on Rails for PHP. However there is not much code available but you are a lot faster then doing webprogramming using Java frameworks... CakePHP is a good alternative - a different approach and much more code samples and a bigger community. E.g. there was a sample application (a complete CMS!!!), and I wanted to replace a text field on the registration page by a date. So I opened phpMyAdmin and replaced the column type by date - reloaded the page (without a restart or additional code-generation) - and there was already a date-picker on the page instead of the text field. So you save lots of time. You dont even need a mapping for your objects as it uses the meta information of the database tables and in general a general definition of what column names need to look like etcso a great time-saver. So my favourite would be cakePHP right now although I would prefer a Java framework - but they are either incomplete or involve much configuration files, restart of the server every time and often you end up in problems that require to debug the core code - and then you end up wasting one day or several day for nothing. Original-Nachricht Datum: Sat, 20 Sep 2008 08:10:01 -0400 Von: James Carman [EMAIL PROTECTED] An: users@wicket.apache.org Betreff: Re: Wicket sample application A quick perusal of Wicket in Action over a weekend wouldn't hurt either (if you like Cheese)! :) On Sat, Sep 20, 2008 at 8:08 AM, James Carman [EMAIL PROTECTED] wrote: I think you might find that if you started with some of the tutorials and perhaps some maven archetypes, you could have probably made up your own example of wicket with database access and all of the features you're looking for with far less keystrokes than you've spent writing emails asking where the examples are. Don't get me wrong, I do agree that there should be some good examples out there (and there are), but you will quickly realize that
error parsing ajax response
Hi, I receive the following error message when I try to update a component using ajax: ERROR: Error while parsing response: Could not find root ajax-response element. This is the xml that was send back from the server. ?xml version=1.0 encoding=UTF-8?ajax-responseheader-contribution encoding=wicket1 ![CDATA[head xmlns:wicket=http://wicket.apache.org;script type=text/javascript src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script script type=text/javascript id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/ wicketAjaxDebugEnable=true; /*--]^]^*//script /head]]/header-contributioncomponent id=feedback1 encoding=wicket1 ![CDATA[div id=feedback1[INFO]^ Total time: 12 secondsTotal time: 8 seconds[INFO]^ Finished at: Mon Sep 22 11:17:35 CEST 2008[INFO]^ Final Memory: 5M/9M[INFO]^ FO]^ [INFO]^ Total time: 12 secondsTotal time: 8 seconds[INFO]^ Finished at: Mon Sep 22 11:17:35 CEST 2008 /div]]/component/ajax-response Are there any characters that are not allowed in an ajax-response? If I just return a hardcoded text it works fine Lars - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange behavior withe Modal Window
Thanks, I did something similar but with Page and not panel. The problem was keeping state in the page that was created in the PageCreator. I will soon post here (or in a blog) my solution. Eyal On Mon, Sep 22, 2008 at 12:03 PM, Daan van Etten [EMAIL PROTECTED] wrote: Hi, You can try using abstract methods. I have made an example with demo project here: http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup Regards, Daan On 22 sep 2008, at 10:41, Eyal Golan wrote: I thought taking out all state from the modal window to the page it is holding. It is very strange: When the user presses OK in a form that in the page, i construct a new instance (of WebPage). When the close callback is initiated, the instance that was created is null. Any thoughts? I am on this for a few days already ... -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Re: AjaxRequestTarget is null in Internet Explorer 6
I still have that problem and why is sb. responding to another thread... mahone9 wrote: Hi all I´m struggeling with the AjaxFallbackLink the target object is null, if it runs to the onClick() method. In Firefox and Opera it works fine!!! class MyPanel extends Panel { private AjaxFallbackLink link; public MyPanel() { this.link = AjaxFallbackLink(link); add(link); } public void onClick(AjaxRequestTarget target) { if (target == null) { System.out.println(my target is: + target); //target is null } else { System.out.println(my target is: + target); target.appendJavascript(alert('is working');); } } ... } class MyPage extends WebPage { private MyPanel myPanel; public MyPage() { this.myPanel = new MyPanel(myPanel); add(myPanel); } } If I add the AjaxFallbackLink to a WebPage instead to a Panel it works pretty fine. What I do is: - call the page and click the link - refresh the page through F5 - once again click the link __ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com I still have that problem and why is sb. responding to another thread... -- View this message in context: http://www.nabble.com/AjaxRequestTarget-is-null-in-Internet-Explorer-6-tp19597723p19605102.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxRequestTarget is null in Internet Explorer 6
Jan Kriesten wrote: I´m struggeling with the AjaxFallbackLink the target object is null, if it runs to the onClick() method. I still have that problem and why is sb. responding to another thread... You should check the documentation what 'null' means on a AjaxFallbackLink: you don't get an Ajax but a normal (read: fallback) request! Best regards, --- Jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hello Jan, I have the same problem when refreshing the page and then clicking on the last clicked AjaxFallbackLink before the refresh. If I have an AjaxFallbackLink directly on the page, no problem occures when I refresh the page. But if the AjaxFallbackLink has been added to a panel, I have the same problem as Mahone described. If I do not refresh the page everything works fine but when I refresh the page the target object is null and only the target object of the last clicked Link is null. The target object is null even if Javascript is activated by the client browser and this problem really just occurs in Internet Explorer 6. Internet Explorer 7 works as fine as different web browsers like FF or Opera. Maybe the problem is that IE6 caches the AjaxFallbackLink and when using this AjaxFallbackLink after a refresh, wicket kills the object and creates it again (new object) so the old Link before the refresh is not available anymore. Maybe it's a bug in wicket, isn't it? Best regards, Leigh -- View this message in context: http://www.nabble.com/AjaxRequestTarget-is-null-in-Internet-Explorer-6-tp19597723p19605724.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error parsing ajax response
I did some more debugging and found this more detailed error message: XML Parsing Error: unclosed CDATA section Location: http://localhost:8090/appl Line Number 8, Column 230:/head]]/header-contributioncomponent id=feedback1 ![CDATA[div id=feedback1START RELEASING maven-web ...br/checkout revision 126br/br/e:\tmp\checkout\maven-webset MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=512m br/ -^ It fails on the - sign of -XX:MaxPermSize=512m (the 230th char). Any thoughts? On Mon, Sep 22, 2008 at 11:41 AM, lars vonk [EMAIL PROTECTED] wrote: Hi, I receive the following error message when I try to update a component using ajax: ERROR: Error while parsing response: Could not find root ajax-response element. This is the xml that was send back from the server. ?xml version=1.0 encoding=UTF-8?ajax-responseheader-contribution encoding=wicket1 ![CDATA[head xmlns:wicket=http://wicket.apache.org;script type=text/javascript src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script script type=text/javascript id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/ wicketAjaxDebugEnable=true; /*--]^]^*//script /head]]/header-contributioncomponent id=feedback1 encoding=wicket1 ![CDATA[div id=feedback1[INFO]^ Total time: 12 secondsTotal time: 8 seconds[INFO]^ Finished at: Mon Sep 22 11:17:35 CEST 2008[INFO]^ Final Memory: 5M/9M[INFO]^ FO]^ [INFO]^ Total time: 12 secondsTotal time: 8 seconds[INFO]^ Finished at: Mon Sep 22 11:17:35 CEST 2008 /div]]/component/ajax-response Are there any characters that are not allowed in an ajax-response? If I just return a hardcoded text it works fine Lars - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
reading a resource file
Hi I have a wicket application that is being deployed to tomcat using Eclipse IDE. I need to be able to read a .txt file from the application object. the problem is I cannot find where to put the txt file. I tried to put it everywhere in the application, and under any directory in the tomact. for reading the file I used: URL url = this.getServletContext().getResource(a.txt); Please help Thanks, Eyal. -- View this message in context: http://www.nabble.com/reading-a-resource-file-tp19606548p19606548.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reading a resource file
eyalbenamram wrote: Hi I have a wicket application that is being deployed to tomcat using Eclipse IDE. I need to be able to read a .txt file from the application object. the problem is I cannot find where to put the txt file. I tried to put it everywhere in the application, and under any directory in the tomact. for reading the file I used: URL url = this.getServletContext().getResource(a.txt); Please help Thanks, Eyal. Are you using maven ? If yes you could put your a.txt in src/main/resources. It should work. HTH, Emanuele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reading a resource file
Make sure the resource is copied into your classpath, and then you can read it in using this.getClass().getResourceAsStream(name) This is nothing magical, and isn't wicket related. Martijn On Mon, Sep 22, 2008 at 1:58 PM, eyalbenamram [EMAIL PROTECTED] wrote: Hi I have a wicket application that is being deployed to tomcat using Eclipse IDE. I need to be able to read a .txt file from the application object. the problem is I cannot find where to put the txt file. I tried to put it everywhere in the application, and under any directory in the tomact. for reading the file I used: URL url = this.getServletContext().getResource(a.txt); Please help Thanks, Eyal. -- View this message in context: http://www.nabble.com/reading-a-resource-file-tp19606548p19606548.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reading a resource file
What about (and i don't have experience with it), WebResource and ResourceReference ? Are they related? On Mon, Sep 22, 2008 at 3:03 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: Make sure the resource is copied into your classpath, and then you can read it in using this.getClass().getResourceAsStream(name) This is nothing magical, and isn't wicket related. Martijn On Mon, Sep 22, 2008 at 1:58 PM, eyalbenamram [EMAIL PROTECTED] wrote: Hi I have a wicket application that is being deployed to tomcat using Eclipse IDE. I need to be able to read a .txt file from the application object. the problem is I cannot find where to put the txt file. I tried to put it everywhere in the application, and under any directory in the tomact. for reading the file I used: URL url = this.getServletContext().getResource(a.txt); Please help Thanks, Eyal. -- View this message in context: http://www.nabble.com/reading-a-resource-file-tp19606548p19606548.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
update dropdown with ajax
Hi I have a problem regarding how to update a dropdown with ajax when an option is added through a popup window. For example Page A has a dropdown and a link. When the link is clicked a popup opens and dropdown options can be added to the popup page. when the form is submitted by clicking 'add' the db is updated and the popup window is closed. but the dropdown in the parent window needs to be updated with ajax. how can this be done the wicket way. please provide an example. Thanks -- View this message in context: http://www.nabble.com/update-dropdown-with-ajax-tp19606658p19606658.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reading a resource file
Sorry, but how can I copy the resource into the classpath? Martijn Dashorst wrote: Make sure the resource is copied into your classpath, and then you can read it in using this.getClass().getResourceAsStream(name) This is nothing magical, and isn't wicket related. Martijn On Mon, Sep 22, 2008 at 1:58 PM, eyalbenamram [EMAIL PROTECTED] wrote: Hi I have a wicket application that is being deployed to tomcat using Eclipse IDE. I need to be able to read a .txt file from the application object. the problem is I cannot find where to put the txt file. I tried to put it everywhere in the application, and under any directory in the tomact. for reading the file I used: URL url = this.getServletContext().getResource(a.txt); Please help Thanks, Eyal. -- View this message in context: http://www.nabble.com/reading-a-resource-file-tp19606548p19606548.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/reading-a-resource-file-tp19606548p19606689.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error parsing ajax response
looks like there is an ecoding problem. which is quite weird. Please open jira issue for this. A quickstart project would be welcome. -Matej On Mon, Sep 22, 2008 at 1:16 PM, lars vonk [EMAIL PROTECTED] wrote: I did some more debugging and found this more detailed error message: XML Parsing Error: unclosed CDATA section Location: http://localhost:8090/appl Line Number 8, Column 230:/head]]/header-contributioncomponent id=feedback1 ![CDATA[div id=feedback1START RELEASING maven-web ...br/checkout revision 126br/br/e:\tmp\checkout\maven-webset MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=512m br/ -^ It fails on the - sign of -XX:MaxPermSize=512m (the 230th char). Any thoughts? On Mon, Sep 22, 2008 at 11:41 AM, lars vonk [EMAIL PROTECTED] wrote: Hi, I receive the following error message when I try to update a component using ajax: ERROR: Error while parsing response: Could not find root ajax-response element. This is the xml that was send back from the server. ?xml version=1.0 encoding=UTF-8?ajax-responseheader-contribution encoding=wicket1 ![CDATA[head xmlns:wicket=http://wicket.apache.org;script type=text/javascript src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script script type=text/javascript id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/ wicketAjaxDebugEnable=true; /*--]^]^*//script /head]]/header-contributioncomponent id=feedback1 encoding=wicket1 ![CDATA[div id=feedback1[INFO]^ Total time: 12 secondsTotal time: 8 seconds[INFO]^ Finished at: Mon Sep 22 11:17:35 CEST 2008[INFO]^ Final Memory: 5M/9M[INFO]^ FO]^ [INFO]^ Total time: 12 secondsTotal time: 8 seconds[INFO]^ Finished at: Mon Sep 22 11:17:35 CEST 2008 /div]]/component/ajax-response Are there any characters that are not allowed in an ajax-response? If I just return a hardcoded text it works fine Lars - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to get values from a property file
Hi, I have this Model: public final class SortOptionsModel extends AbstractReadOnlyModel { private static final long serialVersionUID = -772846448053016L; private final ListString sortOptions; public SortOptionsModel() { ResourceModel rmAsc = new ResourceModel(Reports.Parameters.ascending); String ascending = (String) rmAsc.getObject(); ResourceModel rmDes = new ResourceModel(Reports.Parameters.descending); String descending = (String) rmDes.getObject(); sortOptions = new ArrayListString(); sortOptions.add(ascending); sortOptions.add(descending); } @Override public Object getObject() { return sortOptions; } } I am pretty sure that the way I get the values is not the way I should. How can I do that the Wicket way? -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Re: update dropdown with ajax
I would update the model that the dropdown in the page uses. I will also add the page's dropdown to the AjaxTarget when the popup window closes. You did add a setWindowClosedCallback ? Eyal On Mon, Sep 22, 2008 at 3:06 PM, tbt [EMAIL PROTECTED] wrote: Hi I have a problem regarding how to update a dropdown with ajax when an option is added through a popup window. For example Page A has a dropdown and a link. When the link is clicked a popup opens and dropdown options can be added to the popup page. when the form is submitted by clicking 'add' the db is updated and the popup window is closed. but the dropdown in the parent window needs to be updated with ajax. how can this be done the wicket way. please provide an example. Thanks -- View this message in context: http://www.nabble.com/update-dropdown-with-ajax-tp19606658p19606658.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Re: how to get values from a property file
Eyal Golan schrieb: ResourceModel rmAsc = new ResourceModel(Reports.Parameters.ascending); String ascending = (String) rmAsc.getObject(); if it were an inner class, you could just String ascending = getString(Reports.Parameters.ascending); cu uwe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to get values from a property file
OK, that's an option which I moved to. Is there another way? On Mon, Sep 22, 2008 at 3:22 PM, Uwe Schäfer [EMAIL PROTECTED]wrote: Eyal Golan schrieb: ResourceModel rmAsc = new ResourceModel(Reports.Parameters.ascending); String ascending = (String) rmAsc.getObject(); if it were an inner class, you could just String ascending = getString(Reports.Parameters.ascending); cu uwe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Re: Disabling RadioGroup via authorization strategy does not disable contained Radio buttons
Done: https://issues.apache.org/jira/browse/WICKET-1843 I've also attached a fix, although I haven't tested it exactly as written, because I didn't feel like recompiling wicket. Joel Igor Vaynberg [EMAIL PROTECTED] 9/19/2008 1:50 PM create a jira issue for this -igor On Fri, Sep 19, 2008 at 7:11 AM, Joel Hill [EMAIL PROTECTED] wrote: I'm doing some component-based authorization and I'm trying to disable an entire RadioGroup without having to tie the authorization to each individual Radio button. Were I to directly disable the RadioGroup, it looks like the Radio buttons would also disable (but I haven't tested this); but it will not disable all the choices when I tie an authorization strategy to the RadioGroup. I'm working with wicket 1.3.3, so has this problem been addressed in a later versoin, and if not, is there some reason we might not want to do this? Thanks. Joel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dynamic PageExpiredPage
hi, i've searched the mailing List and the docs but i didn't find a solution for my problem. I need a custom dynamic PageExpiredErrorPage. I don't know how to make this because i only see the method: getApplicationSettings().setPageExpiredErrorPage(Page.class); In the Page.class i can't work with the PageParameters, so i can't make it dynamic. thanks markus
Re: Dynamic PageExpiredPage
Markus Haspl schrieb: getApplicationSettings().setPageExpiredErrorPage(Page.class); In the Page.class i can't work with the PageParameters, so i can't make it dynamic. what kind of data would you like to pass to it, and - more important - where could you possibly get it from ? cu uwe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Adding jquery effects to paging navigator
Hi all, I want to add some decoration to AjaxPagingNavigator. I want the current page to fade out and the new page to fade in when the user clicks next. I'm thinking of using JQuery for effects. Can anybody show me some pointers to achieve this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
refresh page with detachable model - not working
Hello, the panel with detachable model is not refreshing after model has changed. kindly check the code please. the panel - ActivityPanel is not refreshing after I press link and status of the DetachableTcktModel is changed. public LoansTabPanel(String id, int ticketId) { super(id); setModel(new CompoundPropertyModel(new DetachableTcktModel(ticketId))); getMenu(); getFullContent(); } public void getFullContent() { //when ticket was not authorized sendToAuth link is visible add(new ActivityPanel(activityPanel, getModel())); } .. public ActivityPanel(String id, IModel model) { super(id, model); tck = (Ticket) getModelObject(); lnkSendToAuth = new Link(sendToAuth) { public void onClick() { /** *after ticket is authorized link sendToAuth is disabled * BUT THIS IS NOT WORKING AUTOMATICALLY, * I have to reopen the page. NOT EVEN REFRESH IS HELPING */ tck.sendToAuthorization(true); info(Ticket was sent to authorization.); } }; add(lnkSendToAuth); } public DetachableTcktModel(int ticketID) { this.ticketId = ticketID; } protected Object load() { tck = findTicket(ticketId); return tck; } public void detach() { tck = null; } . Any advice what I am doing wrong I would appreciate. Thanks, Lenka -- View this message in context: http://www.nabble.com/refresh-page-with-detachable-model---not-working-tp19608631p19608631.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: refresh page with detachable model - not working
move tck = getModelObject() into the onclick handler. Martijn On Mon, Sep 22, 2008 at 4:05 PM, lienok [EMAIL PROTECTED] wrote: Hello, the panel with detachable model is not refreshing after model has changed. kindly check the code please. the panel - ActivityPanel is not refreshing after I press link and status of the DetachableTcktModel is changed. public LoansTabPanel(String id, int ticketId) { super(id); setModel(new CompoundPropertyModel(new DetachableTcktModel(ticketId))); getMenu(); getFullContent(); } public void getFullContent() { //when ticket was not authorized sendToAuth link is visible add(new ActivityPanel(activityPanel, getModel())); } .. public ActivityPanel(String id, IModel model) { super(id, model); tck = (Ticket) getModelObject(); lnkSendToAuth = new Link(sendToAuth) { public void onClick() { /** *after ticket is authorized link sendToAuth is disabled * BUT THIS IS NOT WORKING AUTOMATICALLY, * I have to reopen the page. NOT EVEN REFRESH IS HELPING */ tck.sendToAuthorization(true); info(Ticket was sent to authorization.); } }; add(lnkSendToAuth); } public DetachableTcktModel(int ticketID) { this.ticketId = ticketID; } protected Object load() { tck = findTicket(ticketId); return tck; } public void detach() { tck = null; } . Any advice what I am doing wrong I would appreciate. Thanks, Lenka -- View this message in context: http://www.nabble.com/refresh-page-with-detachable-model---not-working-tp19608631p19608631.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error parsing ajax response
I found what was causing it: I was reading data from a stream using the following code: char[] chars = new char[200]; while(bufferedReader.read(chars) != -1) { // add chars to response } When I changed the code to: int read = -1; while ((read = reader.read()) != -1) { buffer.append((char) read); } it works. The problems lies in the fact that in my first solution I did not account for the actual number of chars read and just appended the complete char array to the response. That caused some strange characters being added to the response object that the javascript DomParser can not handle. Do you still want me to create a jira issue for this? I don;t think it is a bug right? Lars On Mon, Sep 22, 2008 at 2:16 PM, Matej Knopp [EMAIL PROTECTED] wrote: looks like there is an ecoding problem. which is quite weird. Please open jira issue for this. A quickstart project would be welcome. -Matej On Mon, Sep 22, 2008 at 1:16 PM, lars vonk [EMAIL PROTECTED] wrote: I did some more debugging and found this more detailed error message: XML Parsing Error: unclosed CDATA section Location: http://localhost:8090/appl Line Number 8, Column 230:/head]]/header-contributioncomponent id=feedback1 ![CDATA[div id=feedback1START RELEASING maven-web ...br/checkout revision 126br/br/e:\tmp\checkout\maven-webset MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=512m br/ -^ It fails on the - sign of -XX:MaxPermSize=512m (the 230th char). Any thoughts? On Mon, Sep 22, 2008 at 11:41 AM, lars vonk [EMAIL PROTECTED] wrote: Hi, I receive the following error message when I try to update a component using ajax: ERROR: Error while parsing response: Could not find root ajax-response element. This is the xml that was send back from the server. ?xml version=1.0 encoding=UTF-8?ajax-responseheader-contribution encoding=wicket1 ![CDATA[head xmlns:wicket=http://wicket.apache.org;script type=text/javascript src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script script type=text/javascript id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/ wicketAjaxDebugEnable=true; /*--]^]^*//script /head]]/header-contributioncomponent id=feedback1 encoding=wicket1 ![CDATA[div id=feedback1[INFO]^ Total time: 12 secondsTotal time: 8 seconds[INFO]^ Finished at: Mon Sep 22 11:17:35 CEST 2008[INFO]^ Final Memory: 5M/9M[INFO]^ FO]^ [INFO]^ Total time: 12 secondsTotal time: 8 seconds[INFO]^ Finished at: Mon Sep 22 11:17:35 CEST 2008 /div]]/component/ajax-response Are there any characters that are not allowed in an ajax-response? If I just return a hardcoded text it works fine Lars - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: refresh page with detachable model - not working
Hi Marijn, I have moved it to the onclick handler in a following way, but it did not help. tck = (Ticket) getParent().getModel().getObject(); Martijn Dashorst wrote: move tck = getModelObject() into the onclick handler. Martijn On Mon, Sep 22, 2008 at 4:05 PM, lienok [EMAIL PROTECTED] wrote: Hello, the panel with detachable model is not refreshing after model has changed. kindly check the code please. the panel - ActivityPanel is not refreshing after I press link and status of the DetachableTcktModel is changed. public LoansTabPanel(String id, int ticketId) { super(id); setModel(new CompoundPropertyModel(new DetachableTcktModel(ticketId))); getMenu(); getFullContent(); } public void getFullContent() { //when ticket was not authorized sendToAuth link is visible add(new ActivityPanel(activityPanel, getModel())); } .. public ActivityPanel(String id, IModel model) { super(id, model); tck = (Ticket) getModelObject(); lnkSendToAuth = new Link(sendToAuth) { public void onClick() { /** *after ticket is authorized link sendToAuth is disabled * BUT THIS IS NOT WORKING AUTOMATICALLY, * I have to reopen the page. NOT EVEN REFRESH IS HELPING */ tck.sendToAuthorization(true); info(Ticket was sent to authorization.); } }; add(lnkSendToAuth); } public DetachableTcktModel(int ticketID) { this.ticketId = ticketID; } protected Object load() { tck = findTicket(ticketId); return tck; } public void detach() { tck = null; } . Any advice what I am doing wrong I would appreciate. Thanks, Lenka -- View this message in context: http://www.nabble.com/refresh-page-with-detachable-model---not-working-tp19608631p19608631.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/refresh-page-with-detachable-model---not-working-tp19608631p19609156.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic PageExpiredPage
On Mon, Sep 22, 2008 at 3:48 PM, Uwe Schäfer [EMAIL PROTECTED]wrote: Markus Haspl schrieb: getApplicationSettings().setPageExpiredErrorPage(Page.class); In the Page.class i can't work with the PageParameters, so i can't make it dynamic. what kind of data would you like to pass to it, and - more important - where could you possibly get it from ? i have a PageParameter (portalId) which indicates on which Portal the User is on. In the database there are a lot of portals, every portal has it's own users, pages and so on. So, every portal should have its own PageExpiredErrorPage.
Re: error parsing ajax response
Nope. I do not think it is a bug in wicket so the issue is not necessary. -Matej On 9/22/08, lars vonk [EMAIL PROTECTED] wrote: I found what was causing it: I was reading data from a stream using the following code: char[] chars = new char[200]; while(bufferedReader.read(chars) != -1) { // add chars to response } When I changed the code to: int read = -1; while ((read = reader.read()) != -1) { buffer.append((char) read); } it works. The problems lies in the fact that in my first solution I did not account for the actual number of chars read and just appended the complete char array to the response. That caused some strange characters being added to the response object that the javascript DomParser can not handle. Do you still want me to create a jira issue for this? I don;t think it is a bug right? Lars On Mon, Sep 22, 2008 at 2:16 PM, Matej Knopp [EMAIL PROTECTED] wrote: looks like there is an ecoding problem. which is quite weird. Please open jira issue for this. A quickstart project would be welcome. -Matej On Mon, Sep 22, 2008 at 1:16 PM, lars vonk [EMAIL PROTECTED] wrote: I did some more debugging and found this more detailed error message: XML Parsing Error: unclosed CDATA section Location: http://localhost:8090/appl Line Number 8, Column 230:/head]]/header-contributioncomponent id=feedback1 ![CDATA[div id=feedback1START RELEASING maven-web ...br/checkout revision 126br/br/e:\tmp\checkout\maven-webset MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=512m br/ -^ It fails on the - sign of -XX:MaxPermSize=512m (the 230th char). Any thoughts? On Mon, Sep 22, 2008 at 11:41 AM, lars vonk [EMAIL PROTECTED] wrote: Hi, I receive the following error message when I try to update a component using ajax: ERROR: Error while parsing response: Could not find root ajax-response element. This is the xml that was send back from the server. ?xml version=1.0 encoding=UTF-8?ajax-responseheader-contribution encoding=wicket1 ![CDATA[head xmlns:wicket=http://wicket.apache.org;script type=text/javascript src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script script type=text/javascript id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/ wicketAjaxDebugEnable=true; /*--]^]^*//script /head]]/header-contributioncomponent id=feedback1 encoding=wicket1 ![CDATA[div id=feedback1[INFO]^ Total time: 12 secondsTotal time: 8 seconds[INFO]^ Finished at: Mon Sep 22 11:17:35 CEST 2008[INFO]^ Final Memory: 5M/9M[INFO]^ FO]^ [INFO]^ Total time: 12 secondsTotal time: 8 seconds[INFO]^ Finished at: Mon Sep 22 11:17:35 CEST 2008 /div]]/component/ajax-response Are there any characters that are not allowed in an ajax-response? If I just return a hardcoded text it works fine Lars - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic PageExpiredPage
Markus Haspl schrieb: i have a PageParameter (portalId) which indicates on which Portal the User is on. In the database there are a lot of portals, every portal has it's own users, pages and so on. So, every portal should have its own PageExpiredErrorPage. that is all fine, but where could you possibly get the 'current' protal ID from if the page expired? isn´t it contained in a session or something? and if so, couldn´t the expirePage itself find that out (nad maybe forward to a specific one) ? cu uwe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket Markup parse doesn't handle Conditional Comments
you are going to have to output the whole thing using a label or header contributor. our parser cant handle the non-standard comment tags yet. -igor On Mon, Sep 22, 2008 at 1:40 AM, Wayne Pope [EMAIL PROTECTED] wrote: Hi, I just tried to put some conditional comments in my page: !--[if lt IE 7] style type=text/css .dock img { behavior: url(css/iepngfix.htc) } /style ![endif]-- and the Markupparser just can't seem to handle it: Caused by: java.text.ParseException: Unclosed comment beginning at line:9 column:3 at org.apache.wicket.markup.parser.XmlPullParser.specialTagHandling(XmlPullParser.java:332) at org.apache.wicket.markup.parser.XmlPullParser.next(XmlPullParser.java:243) at org.apache.wicket.markup.parser.XmlPullParser.nextTag(XmlPullParser.java:423) at org.apache.wicket.markup.parser.filter.WicketTagIdentifier.nextTag(WicketTagIdentifier.java:77) at org.apache.wicket.markup.parser.filter.TagTypeHandler.nextTag(TagTypeHandler.java:76) at org.apache.wicket.markup.parser.filter.HtmlHandler.nextTag(HtmlHandler.java:78) at org.apache.wicket.markup.parser.filter.WicketRemoveTagHandler.nextTag(WicketRemoveTagHandler.java:60) at org.apache.wicket.markup.parser.filter.WicketLinkTagHandler.nextTag(WicketLinkTagHandler.java:94) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.WicketNamespaceHandler.nextTag(WicketNamespaceHandler.java:72) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.WicketMessageTagHandler.nextTag(WicketMessageTagHandler.java:81) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.HtmlHeaderSectionHandler.nextTag(HtmlHeaderSectionHandler.java:77) at org.apache.wicket.markup.parser.filter.HeadForceTagIdHandler.nextTag(HeadForceTagIdHandler.java:77) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.OpenCloseTagExpander.nextTag(OpenCloseTagExpander.java:51) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.EnclosureHandler.nextTag(EnclosureHandler.java:76) at org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler.nextTag(RelativePathPrefixHandler.java:116) at org.apache.wicket.markup.MarkupParser.getNextTag(MarkupParser.java:302) at org.apache.wicket.markup.MarkupParser.parseMarkup(MarkupParser.java:322) ... 35 more Any way of handling this? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket Markup parse doesn't handle Conditional Comments
Well, if it is a valid xml then it is bug in our parser. -Matej On Mon, Sep 22, 2008 at 5:44 PM, Igor Vaynberg [EMAIL PROTECTED]wrote: you are going to have to output the whole thing using a label or header contributor. our parser cant handle the non-standard comment tags yet. -igor On Mon, Sep 22, 2008 at 1:40 AM, Wayne Pope [EMAIL PROTECTED] wrote: Hi, I just tried to put some conditional comments in my page: !--[if lt IE 7] style type=text/css .dock img { behavior: url(css/iepngfix.htc) } /style ![endif]-- and the Markupparser just can't seem to handle it: Caused by: java.text.ParseException: Unclosed comment beginning at line:9 column:3 at org.apache.wicket.markup.parser.XmlPullParser.specialTagHandling(XmlPullParser.java:332) at org.apache.wicket.markup.parser.XmlPullParser.next(XmlPullParser.java:243) at org.apache.wicket.markup.parser.XmlPullParser.nextTag(XmlPullParser.java:423) at org.apache.wicket.markup.parser.filter.WicketTagIdentifier.nextTag(WicketTagIdentifier.java:77) at org.apache.wicket.markup.parser.filter.TagTypeHandler.nextTag(TagTypeHandler.java:76) at org.apache.wicket.markup.parser.filter.HtmlHandler.nextTag(HtmlHandler.java:78) at org.apache.wicket.markup.parser.filter.WicketRemoveTagHandler.nextTag(WicketRemoveTagHandler.java:60) at org.apache.wicket.markup.parser.filter.WicketLinkTagHandler.nextTag(WicketLinkTagHandler.java:94) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.WicketNamespaceHandler.nextTag(WicketNamespaceHandler.java:72) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.WicketMessageTagHandler.nextTag(WicketMessageTagHandler.java:81) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.HtmlHeaderSectionHandler.nextTag(HtmlHeaderSectionHandler.java:77) at org.apache.wicket.markup.parser.filter.HeadForceTagIdHandler.nextTag(HeadForceTagIdHandler.java:77) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.OpenCloseTagExpander.nextTag(OpenCloseTagExpander.java:51) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.EnclosureHandler.nextTag(EnclosureHandler.java:76) at org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler.nextTag(RelativePathPrefixHandler.java:116) at org.apache.wicket.markup.MarkupParser.getNextTag(MarkupParser.java:302) at org.apache.wicket.markup.MarkupParser.parseMarkup(MarkupParser.java:322) ... 35 more Any way of handling this? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic PageExpiredPage
Create a custom Wicket session subclass that holds your portal: public class MySession extends WebSession { private Portal _portal; public MySession(Request request) { super(request); LOGGER.debug(Instantiated); _portal = new Portal(); } public Portal getPortal() { return _portal; } public void setPortal(Portal portal) { _portal = portal; } } Somewhere in your normal page: ((MySession) getSession()).setPortal(myPortal); Somewhere in your PageExpiredPage: Portal myPortal = ((MySession) getSession()).getPortal(); In your Wicket Application subclass: /** @see org.apache.wicket.Application#newSession(Request, Response) */ @Override public Session newSession(Request request, Response response) { return new MySession(request); } Best regards, Justin On Sep 22, 2008, at 8:18 AM, Uwe Schäfer wrote: Markus Haspl schrieb: i have a PageParameter (portalId) which indicates on which Portal the User is on. In the database there are a lot of portals, every portal has it's own users, pages and so on. So, every portal should have its own PageExpiredErrorPage. that is all fine, but where could you possibly get the 'current' protal ID from if the page expired? isn´t it contained in a session or something? and if so, couldn´t the expirePage itself find that out (nad maybe forward to a specific one) ? cu uwe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic PageExpiredPage
we handle it like that: [in your application-class] @Override protected IRequestCycleProcessor newRequestCycleProcessor() { return new WebRequestCycleProcessor() { @Override protected Page onRuntimeException(final Page page, final RuntimeException e) { if (e instanceof PageExpiredException) { return new PageExpiredPage(((MyPage)page).getPortalId()); } return new InternalServerError(page, e); } }; } Markus Haspl wrote: On Mon, Sep 22, 2008 at 3:48 PM, Uwe Schäfer [EMAIL PROTECTED]wrote: Markus Haspl schrieb: getApplicationSettings().setPageExpiredErrorPage(Page.class); In the Page.class i can't work with the PageParameters, so i can't make it dynamic. what kind of data would you like to pass to it, and - more important - where could you possibly get it from ? i have a PageParameter (portalId) which indicates on which Portal the User is on. In the database there are a lot of portals, every portal has it's own users, pages and so on. So, every portal should have its own PageExpiredErrorPage. - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Dynamic-PageExpiredPage-tp19608106p19611998.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket Markup parse doesn't handle Conditional Comments
We are using conditional comments in our base page without any issues. Dunno if that page isn't parsed my the MarkupParser for some reason... Jörn On Mon, Sep 22, 2008 at 5:49 PM, Matej Knopp [EMAIL PROTECTED] wrote: Well, if it is a valid xml then it is bug in our parser. -Matej On Mon, Sep 22, 2008 at 5:44 PM, Igor Vaynberg [EMAIL PROTECTED]wrote: you are going to have to output the whole thing using a label or header contributor. our parser cant handle the non-standard comment tags yet. -igor On Mon, Sep 22, 2008 at 1:40 AM, Wayne Pope [EMAIL PROTECTED] wrote: Hi, I just tried to put some conditional comments in my page: !--[if lt IE 7] style type=text/css .dock img { behavior: url(css/iepngfix.htc) } /style ![endif]-- and the Markupparser just can't seem to handle it: Caused by: java.text.ParseException: Unclosed comment beginning at line:9 column:3 at org.apache.wicket.markup.parser.XmlPullParser.specialTagHandling(XmlPullParser.java:332) at org.apache.wicket.markup.parser.XmlPullParser.next(XmlPullParser.java:243) at org.apache.wicket.markup.parser.XmlPullParser.nextTag(XmlPullParser.java:423) at org.apache.wicket.markup.parser.filter.WicketTagIdentifier.nextTag(WicketTagIdentifier.java:77) at org.apache.wicket.markup.parser.filter.TagTypeHandler.nextTag(TagTypeHandler.java:76) at org.apache.wicket.markup.parser.filter.HtmlHandler.nextTag(HtmlHandler.java:78) at org.apache.wicket.markup.parser.filter.WicketRemoveTagHandler.nextTag(WicketRemoveTagHandler.java:60) at org.apache.wicket.markup.parser.filter.WicketLinkTagHandler.nextTag(WicketLinkTagHandler.java:94) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.WicketNamespaceHandler.nextTag(WicketNamespaceHandler.java:72) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.WicketMessageTagHandler.nextTag(WicketMessageTagHandler.java:81) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.HtmlHeaderSectionHandler.nextTag(HtmlHeaderSectionHandler.java:77) at org.apache.wicket.markup.parser.filter.HeadForceTagIdHandler.nextTag(HeadForceTagIdHandler.java:77) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.OpenCloseTagExpander.nextTag(OpenCloseTagExpander.java:51) at org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82) at org.apache.wicket.markup.parser.filter.EnclosureHandler.nextTag(EnclosureHandler.java:76) at org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler.nextTag(RelativePathPrefixHandler.java:116) at org.apache.wicket.markup.MarkupParser.getNextTag(MarkupParser.java:302) at org.apache.wicket.markup.MarkupParser.parseMarkup(MarkupParser.java:322) ... 35 more Any way of handling this? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Panel based wizard properties question
Looking at the abracadabra example using property file style localization messages, http://www.wicket-library.com/wicket-examples, to wit: confirmation.content=You are about to create user '${firstName} ${lastName}', for \ department '${department}' and user name '${userName}'. Are you sure you want to \ do this? I mean, are you strongreally/strong you want to allow '${userName}' \ on this system? If you are, please press finish to complete. Does property variable expansion support collections? For example: confirmation.content=You are about to create users \ table \ tr wicket:id=userstd'${firstName} ${lastName}'/td/tr \ /table \ I suspect I know the answer as the example doesn't list the roles a user was assigned in the wizard, but thought someone might know for certain. Thanks. Ed.
Re: AjaxRequestTarget is null in Internet Explorer 6
Override onClick for your link. Your code defines an onClick in the panel, it doesn't override your Link's onclick. On Mon, 22 Sep 2008 03:16:47 -0700 (PDT), mahone9 [EMAIL PROTECTED] said: I still have that problem and why is sb. responding to another thread... mahone9 wrote: Hi all I´m struggeling with the AjaxFallbackLink the target object is null, if it runs to the onClick() method. In Firefox and Opera it works fine!!! class MyPanel extends Panel { private AjaxFallbackLink link; public MyPanel() { this.link = AjaxFallbackLink(link); add(link); } public void onClick(AjaxRequestTarget target) { if (target == null) { System.out.println(my target is: + target); //target is null } else { System.out.println(my target is: + target); target.appendJavascript(alert('is working');); } } ... } class MyPage extends WebPage { private MyPanel myPanel; public MyPage() { this.myPanel = new MyPanel(myPanel); add(myPanel); } } If I add the AjaxFallbackLink to a WebPage instead to a Panel it works pretty fine. What I do is: - call the page and click the link - refresh the page through F5 - once again click the link __ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com I still have that problem and why is sb. responding to another thread... -- View this message in context: http://www.nabble.com/AjaxRequestTarget-is-null-in-Internet-Explorer-6-tp19597723p19605102.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Panel based wizard properties question
this is a simple variable interpolation not a templating language :) of course there is nothing stopping you from generating the info message using velocity or freemarker or whatever else. -igor On Mon, Sep 22, 2008 at 11:07 AM, Edward Zarecor [EMAIL PROTECTED] wrote: Looking at the abracadabra example using property file style localization messages, http://www.wicket-library.com/wicket-examples, to wit: confirmation.content=You are about to create user '${firstName} ${lastName}', for \ department '${department}' and user name '${userName}'. Are you sure you want to \ do this? I mean, are you strongreally/strong you want to allow '${userName}' \ on this system? If you are, please press finish to complete. Does property variable expansion support collections? For example: confirmation.content=You are about to create users \ table \ tr wicket:id=userstd'${firstName} ${lastName}'/td/tr \ /table \ I suspect I know the answer as the example doesn't list the roles a user was assigned in the wizard, but thought someone might know for certain. Thanks. Ed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WicketRuntimeException when using wicket-auth-roles in a frameset
Hi All, I seem to have a very strange exception when using wicket-auth-roles in a frameset. Let me try and sketch out the setup: 1) Application home page is called FramesetPage.java -- it extends org.apache.wicket.markup.html.WebPage -- corresponding HTML contains simple frameset with 2 rows 2) Top row of frameset contains TopFramePage.java -- it extends org.apache.wicket.markup.html.WebPage -- corresponding HTML contains only an image component as follows: -- add(new Image(bannerImage, skins/bannerImage.jpg)); 3) Bottom row of frameset contains BottomFramePage.java -- it extends org.apache.wicket.markup.html.WebPage -- it requires authentication/authorization using wicket-auth-roles (as is, straight out of the jar) -- if not already authenticated/authorized then redirected to MySignInPage.java -- it extends org.apache.wicket.authentication.pages.SignInPage -- corresponding HTML contains standard lt;span wicket:id=signInPanel/ tag Here's the strange part: After completing the 'Username' and 'Password' fields of the signInPanel then the exception displayed below is thrown. Further, if I replace the image component in TopFramePage with some CSS that loads the same image then no exception is thrown. Any thoughts on what is causing this problem? Thanks, Steve PS Using Wicket 1.3.4 with Spring/Hibernate on WebSphere 6.1 EXCEPTION: org.apache.wicket.WicketRuntimeException: component signInPanel:signInForm not found on page com.acme.wicket.TopFramePage[id = 0], listener interface = [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()] at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:416) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:461) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1229) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387) at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:145) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1076) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1017) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130) at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:773) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:681) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:546) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:486) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744) at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) at
Re: Disabling RadioGroup via authorization strategy does not disable contained Radio buttons
fix committed -igor On Mon, Sep 22, 2008 at 5:56 AM, Joel Hill [EMAIL PROTECTED] wrote: Done: https://issues.apache.org/jira/browse/WICKET-1843 I've also attached a fix, although I haven't tested it exactly as written, because I didn't feel like recompiling wicket. Joel Igor Vaynberg [EMAIL PROTECTED] 9/19/2008 1:50 PM create a jira issue for this -igor On Fri, Sep 19, 2008 at 7:11 AM, Joel Hill [EMAIL PROTECTED] wrote: I'm doing some component-based authorization and I'm trying to disable an entire RadioGroup without having to tie the authorization to each individual Radio button. Were I to directly disable the RadioGroup, it looks like the Radio buttons would also disable (but I haven't tested this); but it will not disable all the choices when I tie an authorization strategy to the RadioGroup. I'm working with wicket 1.3.3, so has this problem been addressed in a later versoin, and if not, is there some reason we might not want to do this? Thanks. Joel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WicketRuntimeException when using wicket-auth-roles in a frameset
looks like the form is being submitted to TopFramePage, when it should instead be submitted to the signinpage. interesting and weird. do you have any serialization errors? -igor On Mon, Sep 22, 2008 at 11:32 AM, shetc [EMAIL PROTECTED] wrote: Hi All, I seem to have a very strange exception when using wicket-auth-roles in a frameset. Let me try and sketch out the setup: 1) Application home page is called FramesetPage.java -- it extends org.apache.wicket.markup.html.WebPage -- corresponding HTML contains simple frameset with 2 rows 2) Top row of frameset contains TopFramePage.java -- it extends org.apache.wicket.markup.html.WebPage -- corresponding HTML contains only an image component as follows: -- add(new Image(bannerImage, skins/bannerImage.jpg)); 3) Bottom row of frameset contains BottomFramePage.java -- it extends org.apache.wicket.markup.html.WebPage -- it requires authentication/authorization using wicket-auth-roles (as is, straight out of the jar) -- if not already authenticated/authorized then redirected to MySignInPage.java -- it extends org.apache.wicket.authentication.pages.SignInPage -- corresponding HTML contains standard lt;span wicket:id=signInPanel/ tag Here's the strange part: After completing the 'Username' and 'Password' fields of the signInPanel then the exception displayed below is thrown. Further, if I replace the image component in TopFramePage with some CSS that loads the same image then no exception is thrown. Any thoughts on what is causing this problem? Thanks, Steve PS Using Wicket 1.3.4 with Spring/Hibernate on WebSphere 6.1 EXCEPTION: org.apache.wicket.WicketRuntimeException: component signInPanel:signInForm not found on page com.acme.wicket.TopFramePage[id = 0], listener interface = [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()] at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:416) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:461) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1229) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387) at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:145) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1076) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1017) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130) at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:773) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:681) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:546) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:486) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744) at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102) at
Re: WicketRuntimeException when using wicket-auth-roles in a frameset
If you mean in the logs then no, there are no serialization errors. I did see these 2 warnings when I went back to look at the logs: [9/22/08 14:04:24:395 EDT] 0028 SystemOut O 14:04:24,395 WARN AbstractTextComponent:148 - Couldn't resolve model type of Model:classname=[org.apache.wicket.model.PropertyModel]:nestedModel=[username = [EMAIL PROTECTED]]:expression=[username] for [MarkupContainer [Component id = username, page = com.acme.wicket.MySignInPage, path = 0:signInPanel:signInForm:username.TextField, isVisible = true, isVersioned = false]], please set the type yourself. [9/22/08 14:04:24:395 EDT] 0028 SystemOut O 14:04:24,395 WARN AbstractTextComponent:148 - Couldn't resolve model type of Model:classname=[org.apache.wicket.model.PropertyModel]:nestedModel=[username = [EMAIL PROTECTED]]:expression=[password] for [MarkupContainer [Component id = password, page = com.acme.wicket.MySignInPage, path = 0:signInPanel:signInForm:password.PasswordTextField, isVisible = true, isVersioned = false]], please set the type yourself. -- View this message in context: http://www.nabble.com/WicketRuntimeException-when-using-wicket-auth-roles-in-a-frameset-tp19613863p19614309.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WicketRuntimeException when using wicket-auth-roles in a frameset
so now you just need to figure out why a form in the bottom frame is submitting into the top frame. if you can create a quickstart we can probably help you more. -igor On Mon, Sep 22, 2008 at 11:55 AM, shetc [EMAIL PROTECTED] wrote: If you mean in the logs then no, there are no serialization errors. I did see these 2 warnings when I went back to look at the logs: [9/22/08 14:04:24:395 EDT] 0028 SystemOut O 14:04:24,395 WARN AbstractTextComponent:148 - Couldn't resolve model type of Model:classname=[org.apache.wicket.model.PropertyModel]:nestedModel=[username = [EMAIL PROTECTED]]:expression=[username] for [MarkupContainer [Component id = username, page = com.acme.wicket.MySignInPage, path = 0:signInPanel:signInForm:username.TextField, isVisible = true, isVersioned = false]], please set the type yourself. [9/22/08 14:04:24:395 EDT] 0028 SystemOut O 14:04:24,395 WARN AbstractTextComponent:148 - Couldn't resolve model type of Model:classname=[org.apache.wicket.model.PropertyModel]:nestedModel=[username = [EMAIL PROTECTED]]:expression=[password] for [MarkupContainer [Component id = password, page = com.acme.wicket.MySignInPage, path = 0:signInPanel:signInForm:password.PasswordTextField, isVisible = true, isVersioned = false]], please set the type yourself. -- View this message in context: http://www.nabble.com/WicketRuntimeException-when-using-wicket-auth-roles-in-a-frameset-tp19613863p19614309.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Adding jquery effects to paging navigator
How can I modify the onclick attribute of the links in the AjaxPagingNavigator? I override newPagingNavigationLink in my ajax paging navigator as shown below, but my javascript is not prepended. I want to add JQuery fadeout code before wicketAjaxGet: @Override protected Link newPagingNavigationLink(String arg0, IPageable arg1, int arg2) { AjaxPagingNavigationLink l = (AjaxPagingNavigationLink) super.newPagingNavigationLink(arg0, arg1, arg2); String onClickJavascript = jQuery('#+topContainer.getMarkupId()+').fadeOut('slow');; AttributeModifier am = new AttributeModifier(onclick, new Model(onClickJavascript)) { @Override protected String newValue(String current, String replacement) { // prepend javascript before ajax call.. return replacement + current; } }; return l; } Serkan Camurcuoglu wrote: Hi all, I want to add some decoration to AjaxPagingNavigator. I want the current page to fade out and the new page to fade in when the user clicks next. I'm thinking of using JQuery for effects. Can anybody show me some pointers to achieve this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Adding jquery effects to paging navigator
just noticed I forgot to add the behavior to the link, but still the javascript does not show up.. Serkan Camurcuoglu wrote: How can I modify the onclick attribute of the links in the AjaxPagingNavigator? I override newPagingNavigationLink in my ajax paging navigator as shown below, but my javascript is not prepended. I want to add JQuery fadeout code before wicketAjaxGet: @Override protected Link newPagingNavigationLink(String arg0, IPageable arg1, int arg2) { AjaxPagingNavigationLink l = (AjaxPagingNavigationLink) super.newPagingNavigationLink(arg0, arg1, arg2); String onClickJavascript = jQuery('#+topContainer.getMarkupId()+').fadeOut('slow');; AttributeModifier am = new AttributeModifier(onclick, new Model(onClickJavascript)) { @Override protected String newValue(String current, String replacement) { // prepend javascript before ajax call.. return replacement + current; } }; return l; } Serkan Camurcuoglu wrote: Hi all, I want to add some decoration to AjaxPagingNavigator. I want the current page to fade out and the new page to fade in when the user clicks next. I'm thinking of using JQuery for effects. Can anybody show me some pointers to achieve this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Adding jquery effects to paging navigator
You can add simple AbstractBehavior i.e. link.add(new AbstractBehavior() { pubic void onComponentTag(Component component, Tag tag) { tag.put(onclick, onclickscript); } }); but you have to make sure you'll adding it to the right component. -Matej On Mon, Sep 22, 2008 at 11:12 PM, Serkan Camurcuoglu [EMAIL PROTECTED] wrote: just noticed I forgot to add the behavior to the link, but still the javascript does not show up.. Serkan Camurcuoglu wrote: How can I modify the onclick attribute of the links in the AjaxPagingNavigator? I override newPagingNavigationLink in my ajax paging navigator as shown below, but my javascript is not prepended. I want to add JQuery fadeout code before wicketAjaxGet: @Override protected Link newPagingNavigationLink(String arg0, IPageable arg1, int arg2) { AjaxPagingNavigationLink l = (AjaxPagingNavigationLink) super.newPagingNavigationLink(arg0, arg1, arg2); String onClickJavascript = jQuery('#+topContainer.getMarkupId()+').fadeOut('slow');; AttributeModifier am = new AttributeModifier(onclick, new Model(onClickJavascript)) { @Override protected String newValue(String current, String replacement) { // prepend javascript before ajax call.. return replacement + current; } }; return l; } Serkan Camurcuoglu wrote: Hi all, I want to add some decoration to AjaxPagingNavigator. I want the current page to fade out and the new page to fade in when the user clicks next. I'm thinking of using JQuery for effects. Can anybody show me some pointers to achieve this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FormTester.getTextComponentValue not equals with textfield
Hello, I'm writing a testcase in which i try to compare the value of a textfield in a form with the value of a pojo. This value is a BigDecimal. This is the code: FormTester ft = tester.newFormTester(GestisciListino.tags.pizzaForm.toString()); assertEquals(pizza.getPrezzo().toString(), ft.getTextComponentValue(Pizza.CAMPO_PREZZO)); if the BigDecimal is 5.00, ft.getTextComponentValue(Pizza.CAMPO_PREZZO) is 5, and the assertion fails. But if i try to use the form using the browser the value setted in the form is correctly 5.00. Why this difference ? I'm expecting that the value retrieved using ft.getTextComponentValue has to be equals with the value displayed by the browser. Am i missing something ? Thanks, Emanuele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: job postings
We are hiring at as well: http://static.meetmoi.com/jobs/java.html Jeremy On Mon, Sep 22, 2008 at 3:10 AM, Eelco Hillenius [EMAIL PROTECTED]wrote: Speaking of which, we're looking for a colleague... New Yorkers, look here: http://newyork.craigslist.org/mnh/sof/846161277.html And while we are looking for people who live in/ near New York, we *might* be interested in other US people, particularly from Seattle. Feel free to drop me a line :-) Cheers, Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jeremy Levy See my location in real-time: http://seemywhere.com/jeremy Right now we are paying a $2,500 referral fee for any full-time hire we make and keep for 90 days. We're looking for Java Developers and Marketers with Internet marketing experience. You can earn this fee if your referral leads directly to us hiring one of these people. Call or email me for details.
RE: Forwarding to a servlet
Hi David Hi Nino! [Oops. Didn't see your message until now...] I think you could just use response.sendRedirect() and request.forward() , rest of the code should still be processed. Ok, good to know. But are you expecting the user to return from the servlet? Still not sure what I want yet... in the process of figuring that out. Hopefully will know when I get back in front of my machine tomorrow... Thanks for the reply. David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WicketRuntimeException when using wicket-auth-roles in a frameset
Alright, I created a quickstart project and the problem still exists. Do I upload the project for you to look at it? -- View this message in context: http://www.nabble.com/WicketRuntimeException-when-using-wicket-auth-roles-in-a-frameset-tp19613863p19620137.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WicketRuntimeException when using wicket-auth-roles in a frameset
well, the whole point of creating the project was that someone can look at it :) upload it to our jira. -igor On Mon, Sep 22, 2008 at 7:10 PM, shetc [EMAIL PROTECTED] wrote: Alright, I created a quickstart project and the problem still exists. Do I upload the project for you to look at it? -- View this message in context: http://www.nabble.com/WicketRuntimeException-when-using-wicket-auth-roles-in-a-frameset-tp19613863p19620137.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MultiFileUploadField on a ModalWindow close issue
I have a ModalWindow open and I have a MultiFileUploadField for users to upload files. Upload works great. I'd like to close the ModalWindow when the form is submitted. So if everything is fine, it will do the uploads and close the window. If there's an issue, it won't close the window and show the errors in the feedback. The issue I'm having is I need an AjaxButton to close the modal window, so I have the AjaxRequestTarget to pass to the window.close() method. But the MultiFileUploadField requires me to do a form post, which I do with a standard html submit button. If I use an AjaxButton to submit the form, I don't get the uploads. Is there a way to accomplish this? -- View this message in context: http://www.nabble.com/MultiFileUploadField-on-a-ModalWindow-close-issue-tp19621418p19621418.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]