RE: Updating a Dynamic Image with AJAX (and JFreeChart)
I couldn't override getResourceState of DynamicImageResource as it new Resource state uses variable from DynamicImageResource eg format. Instead i copied DynamicImageResource class and made my own version of it and modified the getResourceState() get method. When I changed the drop down I was expecting it to call the geImageData but it wasn't calling it. Could you please advice. Here is the modified method. protected synchronized ResourceState getResourceState() { return new ResourceState() { private byte[] imageData; private final String contentType = "image/" + format; @Override public Time lastModifiedTime() { if (lastModifiedTime == null) { lastModifiedTime = DynamicImageResource.this.lastModifiedTime; if (lastModifiedTime == null) { lastModifiedTime = Time.now(); } } return lastModifiedTime; } @Override public byte[] getData() { // here is what I made the change. imageData = getImageData(); return imageData; } @Override public String getContentType() { return contentType; } }; } >From my Image Class I called the copied version of in getImageResource() { return new DynamicImageResource(){ public class TugboatChartImage extends NonCachingImage { private int width; private int height; public TugboatChartImage(String id, JFreeChart chart, int width, int height){ super(id, new Model(chart)); this.width = width; this.height = height; } @Override protected Resource getImageResource() { return new DynamicImageResource(){//my copied version of DynamicResouce @Override protected byte[] getImageData() { JFreeChart chart = (JFreeChart)getDefaultModelObject(); return toImageData(chart.createBufferedImage(width, height)); } }; } } > To: users@wicket.apache.org > From: craig.mcil...@openroadsconsulting.com > Subject: Re: Updating a Dynamic Image with AJAX (and JFreeChart) > Date: Fri, 13 Nov 2009 23:31:39 -0500 > > Look at the source of the DynamicImageResource class. The getResourceState > method does something like (sorry for the lame pseudocode) 'if image data is > null then save and return value of getImageData else return the previous > image data'. So its gonna call your getImageData() method once and save the > value. This falls in line with the super class's (DynamicWebResource) > javadoc that says: > > very useful for things you generate dynamically, but reuse for a while > after that. If you need resources that stream directly and are not cached, > extend WebResource directly and implement Resouce.getResourceStream() > yourself. > > It has nothing to do with HTTP caching, which it looks like you're trying to > solve with your headers, but server-side caching. Anyways... in this case, > getResourceStream of WebResource ends up calling getResourceState of > DynamicImageResource. All you need to do is is override getResourceState > (and therefore kind of overrides the behavior of getResourceStream) of your > DynamicImageResource and ensure that it doesn't cache the result of > getImageData() and you should be set. > > Craig > _ > > From: wicketnewuser [mailto:swarn...@hotmail.com] > To: users@wicket.apache.org > Sent: Fri, 13 Nov 2009 20:32:05 -0500 > Subject: Re: Updating a Dynamic Image with AJAX (and JFreeChart) > > > I have same situation. I'm not able to refresh my image. But if i view the > image i do get refreshed image > Here is my code. Based on my dropdownchoice it should make new Jfreechart > and the image should refresh. I couldn't get it working so i wrapped the > image with in a span but it still doesn't work. TugboatChartImage extends > NonCachingImage . Can any one point out what I'm doing wrong > Chart chart1 = new Chart(this.getString(column1.toString()), "Date", > "Dollars"); > final String yAxisType = "linear"; > final int smallChartWidth=400; > final int smallChartHeight=200; > JFreeChart jfChartOne = chart1.render(chartOneCollection, null, yAxisType, > smallChartWidth, smallChartHeight); > > > // make an image > final TugboatChartImage imageOne = new TugboatChartImage("chart1image", > jfChartOne, smallChartWidth, smallChartHeight); > final WebMarkupContainer chart1Span = new > WebMarkupContainer("chart1Span"); > chart1Span.add(imageOne); > add(chart1Span); > > // draw chart 2 > Chart chart2 = new Chart(this.getString(column2.toString()), "Date", > "Count"); > JFreeChart jfChartTwo
Re: Updating a Dynamic Image with AJAX (and JFreeChart)
Look at the source of the DynamicImageResource class. The getResourceState method does something like (sorry for the lame pseudocode) 'if image data is null then save and return value of getImageData else return the previous image data'. So its gonna call your getImageData() method once and save the value. This falls in line with the super class's (DynamicWebResource) javadoc that says: very useful for things you generate dynamically, but reuse for a while after that. If you need resources that stream directly and are not cached, extend WebResource directly and implement Resouce.getResourceStream() yourself. It has nothing to do with HTTP caching, which it looks like you're trying to solve with your headers, but server-side caching. Anyways... in this case, getResourceStream of WebResource ends up calling getResourceState of DynamicImageResource. All you need to do is is override getResourceState (and therefore kind of overrides the behavior of getResourceStream) of your DynamicImageResource and ensure that it doesn't cache the result of getImageData() and you should be set. Craig _ From: wicketnewuser [mailto:swarn...@hotmail.com] To: users@wicket.apache.org Sent: Fri, 13 Nov 2009 20:32:05 -0500 Subject: Re: Updating a Dynamic Image with AJAX (and JFreeChart) I have same situation. I'm not able to refresh my image. But if i view the image i do get refreshed image Here is my code. Based on my dropdownchoice it should make new Jfreechart and the image should refresh. I couldn't get it working so i wrapped the image with in a span but it still doesn't work. TugboatChartImage extends NonCachingImage . Can any one point out what I'm doing wrong Chart chart1 = new Chart(this.getString(column1.toString()), "Date", "Dollars"); final String yAxisType = "linear"; final int smallChartWidth=400; final int smallChartHeight=200; JFreeChart jfChartOne = chart1.render(chartOneCollection, null, yAxisType, smallChartWidth, smallChartHeight); // make an image final TugboatChartImage imageOne = new TugboatChartImage("chart1image", jfChartOne, smallChartWidth, smallChartHeight); final WebMarkupContainer chart1Span = new WebMarkupContainer("chart1Span"); chart1Span.add(imageOne); add(chart1Span); // draw chart 2 Chart chart2 = new Chart(this.getString(column2.toString()), "Date", "Count"); JFreeChart jfChartTwo = chart2.render(chartTwoCollection, null, yAxisType, smallChartWidth, smallChartHeight); // make an image TugboatChartImage imageTwo = new TugboatChartImage("chart2image", jfChartTwo, smallChartWidth, smallChartHeight); add(imageTwo); String filterStringList =""; if (filterStringList!= null){ filterStringList = report.getFilterParameterList().toString().replaceAll("\\[", ""); filterStringList = filterStringList.replaceAll("\\]", ""); } final DropDownChoice chart1Select = new DropDownChoice("chart1Select" ,new PropertyModel(this, "column1"), TugboatReportData.trafficColumns,new IChoiceRenderer() { public Object getDisplayValue(Object obj) { //this.getString give you value from the propertyfile return ReportResultsPage.this.getString(((TugboatReportData.ColumnName) obj).toString()); } public String getIdValue(Object obj, int index) { return obj.toString(); } }); chart1Select.add(new AjaxFormComponentUpdatingBehavior("onchange") { protected void onUpdate(AjaxRequestTarget target) { sortByColumn(displayRowSetFinal, column1); Chart chart1R = new Chart(ReportResultsPage.this.getString(column1.toString()), "Date", "Dollars"); SwishTimeSeriesCollection chartOneCollectionR = createChartCollection(report, originalRowSet, displayRowSetFinal.subList(0, (originalRowSet.size() > 10) ? 9 : originalRowSet.size() - 1), column1); logger.error(displayRowSetFinal); JFreeChart jfChartOneR = chart1R.render(chartOneCollectionR, null, yAxisType, smallChartWidth, smallChartHeight); imageOne.setDefaultModelObject(jfChartOneR); imageOne.modelChanged(); chart1Span.modelChanged(); chart1Span.setOutputMarkupId(true); imageOne.setOutputMarkupId(true); target.addComponent(imageOne); target.addComponent(chart1Span); } }); Jason Mihalick wrote: > > I am integrating JFreeChart into my application and I've followed the > JFreeChart example on the wiki. That works very nicely. I was impressed. > What I want to do now is update the graph that I display based on the > selection from a drop down list. I've successfully added the > DropDownChoice component and added a AjaxFormComponentUpdatingBehavior to > it. I've verified that my onUpdate( AjaxRequestTarget ) method is being > invoked and I'm receiving the updated value, w
Re: Updating a Dynamic Image with AJAX (and JFreeChart)
I have same situation. I'm not able to refresh my image. But if i view the image i do get refreshed image Here is my code. Based on my dropdownchoice it should make new Jfreechart and the image should refresh. I couldn't get it working so i wrapped the image with in a span but it still doesn't work. TugboatChartImage extends NonCachingImage . Can any one point out what I'm doing wrong Chart chart1 = new Chart(this.getString(column1.toString()), "Date", "Dollars"); final String yAxisType = "linear"; final int smallChartWidth=400; final int smallChartHeight=200; JFreeChart jfChartOne = chart1.render(chartOneCollection, null, yAxisType, smallChartWidth, smallChartHeight); // make an image final TugboatChartImage imageOne = new TugboatChartImage("chart1image", jfChartOne, smallChartWidth, smallChartHeight); final WebMarkupContainer chart1Span = new WebMarkupContainer("chart1Span"); chart1Span.add(imageOne); add(chart1Span); // draw chart 2 Chart chart2 = new Chart(this.getString(column2.toString()), "Date", "Count"); JFreeChart jfChartTwo = chart2.render(chartTwoCollection, null, yAxisType, smallChartWidth, smallChartHeight); // make an image TugboatChartImage imageTwo = new TugboatChartImage("chart2image", jfChartTwo, smallChartWidth, smallChartHeight); add(imageTwo); String filterStringList =""; if (filterStringList!= null){ filterStringList = report.getFilterParameterList().toString().replaceAll("\\[", ""); filterStringList = filterStringList.replaceAll("\\]", ""); } final DropDownChoice chart1Select = new DropDownChoice("chart1Select" ,new PropertyModel(this, "column1"), TugboatReportData.trafficColumns,new IChoiceRenderer() { public Object getDisplayValue(Object obj) { //this.getString give you value from the propertyfile return ReportResultsPage.this.getString(((TugboatReportData.ColumnName) obj).toString()); } public String getIdValue(Object obj, int index) { return obj.toString(); } }); chart1Select.add(new AjaxFormComponentUpdatingBehavior("onchange") { protected void onUpdate(AjaxRequestTarget target) { sortByColumn(displayRowSetFinal, column1); Chart chart1R = new Chart(ReportResultsPage.this.getString(column1.toString()), "Date", "Dollars"); SwishTimeSeriesCollection chartOneCollectionR = createChartCollection(report, originalRowSet, displayRowSetFinal.subList(0, (originalRowSet.size() > 10) ? 9 : originalRowSet.size() - 1), column1); logger.error(displayRowSetFinal); JFreeChart jfChartOneR = chart1R.render(chartOneCollectionR, null, yAxisType, smallChartWidth, smallChartHeight); imageOne.setDefaultModelObject(jfChartOneR); imageOne.modelChanged(); chart1Span.modelChanged(); chart1Span.setOutputMarkupId(true); imageOne.setOutputMarkupId(true); target.addComponent(imageOne); target.addComponent(chart1Span); } }); Jason Mihalick wrote: > > I am integrating JFreeChart into my application and I've followed the > JFreeChart example on the wiki. That works very nicely. I was impressed. > What I want to do now is update the graph that I display based on the > selection from a drop down list. I've successfully added the > DropDownChoice component and added a AjaxFormComponentUpdatingBehavior to > it. I've verified that my onUpdate( AjaxRequestTarget ) method is being > invoked and I'm receiving the updated value, which is very cool. Here is > my onUpdate implementation for the DropDownChoice control: > > protected void onUpdate( AjaxRequestTarget target ) { > log.debug( "graphStyles onUpdate invoked! SelectedGraphStyle = " + > FieldResultsPanel.this.getSelectedGraphStyle() ); > FieldResultsPanel.this.updateGraph(); // Update the model and re-create > the JFreeChart Image > > // fieldGraph is my JFreeChartImage instance (derived from Image) > // This is supposed to indicate back to the browser that the image needs > updated. I think this > // is working properly > target.addComponent( FieldResultsPanel.this.fieldGraph ); > } > > Even though I am updating the model of my J
Re: Question regarding extending components and their html markups
Hi, thanks for the quick response. But I do in fact needed to do some markup. Just that I did not want to alter the original, just add additional markups. I guess I could make a main panel and instantiate the FeedbackPanel in it and perform markups there. But I feel that this is not making use of inheritance at all. I posted my work around in a previous mail Do you think that approach is acceptable baring the existence of tag? Lester Igor Vaynberg wrote: if you do not want to alter the parent's markup then simply do not provide a markup file. -igor On Fri, Nov 13, 2009 at 4:10 PM, Lester Chua wrote: Hi, I'm trying at extending the FeedbackPanel but could not find a reference as to how to do a markup extension. Is there a tag in HTML that is equivalent to the java super()? This may be a case of rtfm but I cant seem to find it in Manning's Wicket in Action. I know about the wicket:extend and the wicket:child tag but this dosent seem to apply in my use case as I would like to use my parent's markups and just do the parent's rendering. Am I missing something crucial? Lester - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Question regarding extending components and their html markups
if you do not want to alter the parent's markup then simply do not provide a markup file. -igor On Fri, Nov 13, 2009 at 4:10 PM, Lester Chua wrote: > Hi, > > I'm trying at extending the FeedbackPanel but could not find a reference as > to how to do a markup extension. > Is there a tag in HTML that is equivalent to the java super()? > > This may be a case of rtfm but I cant seem to find it in Manning's Wicket in > Action. I know about the wicket:extend and the wicket:child tag but this > dosent seem to apply in my use case as I would like to use my parent's > markups and just do the parent's rendering. > > Am I missing something crucial? > > Lester > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Question regarding extending components and their html markups
For anyone interested, I did a workaround. Basically I just put in tag, without any other tags, into my Child panel. This basically throws an exception, as expected in the webpage. I just took whatever markup that is shown in the error and added it to my Child, thus circumventing my problem of not having my Parent's markup available. Is there an equivalent of ? This is for people who dont know the markup of the parent class they are extending. Lester Lester Chua wrote: Hi, I'm trying at extending the FeedbackPanel but could not find a reference as to how to do a markup extension. Is there a tag in HTML that is equivalent to the java super()? This may be a case of rtfm but I cant seem to find it in Manning's Wicket in Action. I know about the wicket:extend and the wicket:child tag but this dosent seem to apply in my use case as I would like to use my parent's markups and just do the parent's rendering. Am I missing something crucial? Lester - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Question regarding extending components and their html markups
Hi, I'm trying at extending the FeedbackPanel but could not find a reference as to how to do a markup extension. Is there a tag in HTML that is equivalent to the java super()? This may be a case of rtfm but I cant seem to find it in Manning's Wicket in Action. I know about the wicket:extend and the wicket:child tag but this dosent seem to apply in my use case as I would like to use my parent's markups and just do the parent's rendering. Am I missing something crucial? Lester - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: (Igor) page without class
huh? the current approach is seterrorpage(class), this is the page wicket will show when there is an error it can be changed to: seterrorpage(irequesttarget target) and become more flexible. you can use seterrorpage(new pagerequesttarget(page.class)) to achieve the same as what there is now, or seterrorpage(new redirectrequesttarget("error.html")); to go to a static html page. or did i miss something in your response? -igor On Fri, Nov 13, 2009 at 1:10 PM, Alex Rass wrote: > > > You could also create an interface to EVERY class in Wicket (as OO > suggests). ;) > Is there a point in doing it though? > If you are NOT handling something - let Tomcat(or whomever) deal with it! > Works GREAT for me, btw. 1/2 of my pages are static + all the image > resources and other crap. This behavior is the default, btw. > > Why waste a CPU on serving static stuff that you do NOT want "handled" or > "massaged"? Your container will do a better job at it anyways. (see the > papers on tomcat and jetty competing on that point alone!) Let them deal > with it. > > And if you DO want it handled - one can write a StaticContentPage class > (overwrite page handling methods in WebPage class). > Unless you just wanna serve it from ELSEWHERE, in which case - just > configure the apps server, like with any other j2ee project. > > > -Original Message- > From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] > Sent: Friday, November 13, 2009 3:50 PM > To: users@wicket.apache.org > Subject: Re: page without class > > add an rfe to have it changed to take an irequesttarget instead of a > page class, that way you can do whatever you want. > > -igor > > On Fri, Nov 13, 2009 at 12:21 PM, Frank Silbermann > wrote: >> I don't know, but I wouldn't be surprised if the answer is no. >> >> A foundational assumption about the way Wicket works is that a WebPage >> object would result from the combination of a WebPage class with a >> matching HTML file. When Wicket sees MyPage.html in MyPackage with no >> matching class, it assumes the class is erroneously missing. You want >> instead that Wicket should assume the class: >> >> package MyPackage >> class MyPage extends org.apache.wicket.markup.html.WebPage {} >> >> I don't think the convenience of avoiding this two-line MyPage.java file >> justifies eliminating this error check. >> >> I suppose Wicket could provide an API command to tell it to assume a >> trivial MyPage.java for MyPage.html, but I don't think such an API call >> would save you all that many keystrokes over the two-line class >> definition. >> >> -Original Message- >> From: fachhoch [mailto:fachh...@gmail.com] >> Sent: Friday, November 13, 2009 12:12 PM >> To: users@wicket.apache.org >> Subject: Re: page without class >> >> >> I am asking about creating a wicket page without a class , can I create >> a >> org.apache.wicket.markup.html.WebPage instance without any additional >> java file just html ? >> >> >> >> >> insom wrote: >>> >>> I believe you can do this if you change the Wicket filter mapping in >> your >>> web.xml to something other than /*. Then Tomcat will serve the page >> and >>> bypass Wicket entirely. >>> >>> Dane >>> >>> >>> On Fri, Nov 13, 2009 at 8:36 AM, fachhoch wrote: >>> Ok I have to tell that page to my IApplicationSettings IApplicationSettings settings= super.getApplicationSettings(); settings.setAccessDeniedPage(accessDeniedPage) here accessDeniedPage page is a static html page and I dont need java >> . I am talking about a wicket page without a class just html is it possible ? Pedro H. O. dos Santos wrote: > > Only put then on top-level directory of a web module. > http://java.sun.com/javaee/5/docs/tutorial/doc/bnadx.html#bnadz > > On Fri, Nov 13, 2009 at 1:21 PM, tubin gen >> wrote: > >> can I create a page just with html and not write class ? I need >> some >> static >> html pages and writing java for those will be of no use . >> > > > > -- > Pedro Henrique Oliveira dos Santos > > -- View this message in context: http://old.nabble.com/page-without-class-tp26338268p26339453.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/page-without-class-tp26338268p26340879.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> -
Re: London Wicket Event at Foyles Bookshop, November 21st, 2009
Jeremy, Yes, that is the right place In fact your map looks identical to the one on our registration page. We're drawing another good crowd for this LWE (around 40 so far, including many of our regulars), so you'll have a good audience to appreciate your talk! I'll probably fix a drink for you, Matej, Dima and anyone who can get to London during your week here too if you like. What day is best fro you? Regards - Cemal jWeekend OO & Java Technologies, Wicket Training and Development http://jWeekend.com jthomerson wrote: > > Just to confirm (for me as a foreigner) - this is the correct place? > > http://tinyurl.com/foyles > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Mon, Nov 2, 2009 at 5:11 PM, jWeekend > wrote: > >> We will hold our next London Wicket Event on Saturday, 21st November, >> from >> 14:45. This time we have hired "The Gallery" at the iconic Foyles >> Bookshop >> in central London. >> We again welcome guests and speakers from several countries, including at >> least 3 core committers, Matej, Jeremy and of course, Alastair, as well >> as >> the founders of WiQuery (Wicket-jQuery integration), Lionel Armanet and >> his >> team. >> >> Join us for some very interesting, high quality presentations and to chat >> with fellow Wicket users and developers at all levels. We're expecting >> this >> to be another popular event and since places are limited book and confirm >> early if you can make it. Details and registration are at the usual place >> [1]. >> There is a cool little Jazz cafe at Foyles too, where there'll be a live >> act (Femi Temowo) at 13:00 if you enjoy some Jazz guitar relaxation >> before >> your intellectual stimulation. They offer a decent range of food and >> drink >> there too. >> >> The event schedule looks like: >> Cemal Bayramoglu: Introduction >> >> Jeremy Thomerson (USA): Custom JavaScript Integrations with Wicket + Auto >> Resolvers >> Lionel Armanet (FR): Announcing WiQuery 1.0: Introduction & Demo >> >> Matej Knopp (SK): BRIX CMS + Wicket 1.5 Developments Q&A >> Alastair Maw (UK): The Al Talk >> Our Regular General Wicket Q&A with Al and Cemal >> We expect to formally finish by around 19:00. I would expect the usual >> suspects will be heading somewhere in the neighbourhood for refreshments >> straight after the event, and of course you are more than welcome to join >> us. >> Regards - Cemal jWeekend http://jWeekend.com >> Training, Consulting, Development >> [1] http://jweekend.com/dev/LWUGReg/ >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > -- View this message in context: http://old.nabble.com/London-Wicket-Event-at-Foyles-Bookshop%2C-November-21st%2C-2009-tp26172328p26343768.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE:(Igor) page without class
You could also create an interface to EVERY class in Wicket (as OO suggests). ;) Is there a point in doing it though? If you are NOT handling something - let Tomcat(or whomever) deal with it! Works GREAT for me, btw. 1/2 of my pages are static + all the image resources and other crap. This behavior is the default, btw. Why waste a CPU on serving static stuff that you do NOT want "handled" or "massaged"? Your container will do a better job at it anyways. (see the papers on tomcat and jetty competing on that point alone!) Let them deal with it. And if you DO want it handled - one can write a StaticContentPage class (overwrite page handling methods in WebPage class). Unless you just wanna serve it from ELSEWHERE, in which case - just configure the apps server, like with any other j2ee project. -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Friday, November 13, 2009 3:50 PM To: users@wicket.apache.org Subject: Re: page without class add an rfe to have it changed to take an irequesttarget instead of a page class, that way you can do whatever you want. -igor On Fri, Nov 13, 2009 at 12:21 PM, Frank Silbermann wrote: > I don't know, but I wouldn't be surprised if the answer is no. > > A foundational assumption about the way Wicket works is that a WebPage > object would result from the combination of a WebPage class with a > matching HTML file. When Wicket sees MyPage.html in MyPackage with no > matching class, it assumes the class is erroneously missing. You want > instead that Wicket should assume the class: > > package MyPackage > class MyPage extends org.apache.wicket.markup.html.WebPage {} > > I don't think the convenience of avoiding this two-line MyPage.java file > justifies eliminating this error check. > > I suppose Wicket could provide an API command to tell it to assume a > trivial MyPage.java for MyPage.html, but I don't think such an API call > would save you all that many keystrokes over the two-line class > definition. > > -Original Message- > From: fachhoch [mailto:fachh...@gmail.com] > Sent: Friday, November 13, 2009 12:12 PM > To: users@wicket.apache.org > Subject: Re: page without class > > > I am asking about creating a wicket page without a class , can I create > a > org.apache.wicket.markup.html.WebPage instance without any additional > java file just html ? > > > > > insom wrote: >> >> I believe you can do this if you change the Wicket filter mapping in > your >> web.xml to something other than /*. Then Tomcat will serve the page > and >> bypass Wicket entirely. >> >> Dane >> >> >> On Fri, Nov 13, 2009 at 8:36 AM, fachhoch wrote: >> >>> >>> Ok I have to tell that page to my IApplicationSettings >>> >>> IApplicationSettings settings= >>> super.getApplicationSettings(); >>> settings.setAccessDeniedPage(accessDeniedPage) >>> here accessDeniedPage page is a static html page and I dont need java > . >>> I am talking about a wicket page without a class just html is it >>> possible >>> ? >>> >>> >>> >>> Pedro H. O. dos Santos wrote: >>> > >>> > Only put then on top-level directory of a web module. >>> > http://java.sun.com/javaee/5/docs/tutorial/doc/bnadx.html#bnadz >>> > >>> > On Fri, Nov 13, 2009 at 1:21 PM, tubin gen > wrote: >>> > >>> >> can I create a page just with html and not write class ? I need > some >>> >> static >>> >> html pages and writing java for those will be of no use . >>> >> >>> > >>> > >>> > >>> > -- >>> > Pedro Henrique Oliveira dos Santos >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/page-without-class-tp26338268p26339453.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> > > -- > View this message in context: > http://old.nabble.com/page-without-class-tp26338268p26340879.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: page without class
add an rfe to have it changed to take an irequesttarget instead of a page class, that way you can do whatever you want. -igor On Fri, Nov 13, 2009 at 12:21 PM, Frank Silbermann wrote: > I don't know, but I wouldn't be surprised if the answer is no. > > A foundational assumption about the way Wicket works is that a WebPage > object would result from the combination of a WebPage class with a > matching HTML file. When Wicket sees MyPage.html in MyPackage with no > matching class, it assumes the class is erroneously missing. You want > instead that Wicket should assume the class: > > package MyPackage > class MyPage extends org.apache.wicket.markup.html.WebPage {} > > I don't think the convenience of avoiding this two-line MyPage.java file > justifies eliminating this error check. > > I suppose Wicket could provide an API command to tell it to assume a > trivial MyPage.java for MyPage.html, but I don't think such an API call > would save you all that many keystrokes over the two-line class > definition. > > -Original Message- > From: fachhoch [mailto:fachh...@gmail.com] > Sent: Friday, November 13, 2009 12:12 PM > To: users@wicket.apache.org > Subject: Re: page without class > > > I am asking about creating a wicket page without a class , can I create > a > org.apache.wicket.markup.html.WebPage instance without any additional > java file just html ? > > > > > insom wrote: >> >> I believe you can do this if you change the Wicket filter mapping in > your >> web.xml to something other than /*. Then Tomcat will serve the page > and >> bypass Wicket entirely. >> >> Dane >> >> >> On Fri, Nov 13, 2009 at 8:36 AM, fachhoch wrote: >> >>> >>> Ok I have to tell that page to my IApplicationSettings >>> >>> IApplicationSettings settings= >>> super.getApplicationSettings(); >>> settings.setAccessDeniedPage(accessDeniedPage) >>> here accessDeniedPage page is a static html page and I dont need java > . >>> I am talking about a wicket page without a class just html is it >>> possible >>> ? >>> >>> >>> >>> Pedro H. O. dos Santos wrote: >>> > >>> > Only put then on top-level directory of a web module. >>> > http://java.sun.com/javaee/5/docs/tutorial/doc/bnadx.html#bnadz >>> > >>> > On Fri, Nov 13, 2009 at 1:21 PM, tubin gen > wrote: >>> > >>> >> can I create a page just with html and not write class ? I need > some >>> >> static >>> >> html pages and writing java for those will be of no use . >>> >> >>> > >>> > >>> > >>> > -- >>> > Pedro Henrique Oliveira dos Santos >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/page-without-class-tp26338268p26339453.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> > > -- > View this message in context: > http://old.nabble.com/page-without-class-tp26338268p26340879.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: (Frank) page without class
Frank, They/he/she wants to just serve static content w/o being probed by wicket. It's there, it's possible, read rest of the threads on it. Yeah, the poster wasn't clear at all at first as to what was needed. It's better further you read. -Original Message- From: Frank Silbermann [mailto:frank.silberm...@fedex.com] Sent: Friday, November 13, 2009 3:21 PM To: users@wicket.apache.org Subject: RE: page without class I don't know, but I wouldn't be surprised if the answer is no. A foundational assumption about the way Wicket works is that a WebPage object would result from the combination of a WebPage class with a matching HTML file. When Wicket sees MyPage.html in MyPackage with no matching class, it assumes the class is erroneously missing. You want instead that Wicket should assume the class: package MyPackage class MyPage extends org.apache.wicket.markup.html.WebPage {} I don't think the convenience of avoiding this two-line MyPage.java file justifies eliminating this error check. I suppose Wicket could provide an API command to tell it to assume a trivial MyPage.java for MyPage.html, but I don't think such an API call would save you all that many keystrokes over the two-line class definition. -Original Message- From: fachhoch [mailto:fachh...@gmail.com] Sent: Friday, November 13, 2009 12:12 PM To: users@wicket.apache.org Subject: Re: page without class I am asking about creating a wicket page without a class , can I create a org.apache.wicket.markup.html.WebPage instance without any additional java file just html ? insom wrote: > > I believe you can do this if you change the Wicket filter mapping in your > web.xml to something other than /*. Then Tomcat will serve the page and > bypass Wicket entirely. > > Dane > > > On Fri, Nov 13, 2009 at 8:36 AM, fachhoch wrote: > >> >> Ok I have to tell that page to my IApplicationSettings >> >>IApplicationSettings settings= >> super.getApplicationSettings(); >>settings.setAccessDeniedPage(accessDeniedPage) >> here accessDeniedPage page is a static html page and I dont need java . >> I am talking about a wicket page without a class just html is it >> possible >> ? >> >> >> >> Pedro H. O. dos Santos wrote: >> > >> > Only put then on top-level directory of a web module. >> > http://java.sun.com/javaee/5/docs/tutorial/doc/bnadx.html#bnadz >> > >> > On Fri, Nov 13, 2009 at 1:21 PM, tubin gen wrote: >> > >> >> can I create a page just with html and not write class ? I need some >> >> static >> >> html pages and writing java for those will be of no use . >> >> >> > >> > >> > >> > -- >> > Pedro Henrique Oliveira dos Santos >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/page-without-class-tp26338268p26339453.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > -- View this message in context: http://old.nabble.com/page-without-class-tp26338268p26340879.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Security/login for pages?
I need a rather simple authentication added to some of my screens. Is WASP still the way to go? Or are there newer/better things now? http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security I could write my own with a panel, 2 tables and a hammer, but I'd rather use something proper with better future reusability. PS: I've seen what the 2 wicket books out there offer and it's... sh*t. This day and age page security shouldn't be an afterthought. Thanks. - Alex. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: page without class
I don't know, but I wouldn't be surprised if the answer is no. A foundational assumption about the way Wicket works is that a WebPage object would result from the combination of a WebPage class with a matching HTML file. When Wicket sees MyPage.html in MyPackage with no matching class, it assumes the class is erroneously missing. You want instead that Wicket should assume the class: package MyPackage class MyPage extends org.apache.wicket.markup.html.WebPage {} I don't think the convenience of avoiding this two-line MyPage.java file justifies eliminating this error check. I suppose Wicket could provide an API command to tell it to assume a trivial MyPage.java for MyPage.html, but I don't think such an API call would save you all that many keystrokes over the two-line class definition. -Original Message- From: fachhoch [mailto:fachh...@gmail.com] Sent: Friday, November 13, 2009 12:12 PM To: users@wicket.apache.org Subject: Re: page without class I am asking about creating a wicket page without a class , can I create a org.apache.wicket.markup.html.WebPage instance without any additional java file just html ? insom wrote: > > I believe you can do this if you change the Wicket filter mapping in your > web.xml to something other than /*. Then Tomcat will serve the page and > bypass Wicket entirely. > > Dane > > > On Fri, Nov 13, 2009 at 8:36 AM, fachhoch wrote: > >> >> Ok I have to tell that page to my IApplicationSettings >> >>IApplicationSettings settings= >> super.getApplicationSettings(); >>settings.setAccessDeniedPage(accessDeniedPage) >> here accessDeniedPage page is a static html page and I dont need java . >> I am talking about a wicket page without a class just html is it >> possible >> ? >> >> >> >> Pedro H. O. dos Santos wrote: >> > >> > Only put then on top-level directory of a web module. >> > http://java.sun.com/javaee/5/docs/tutorial/doc/bnadx.html#bnadz >> > >> > On Fri, Nov 13, 2009 at 1:21 PM, tubin gen wrote: >> > >> >> can I create a page just with html and not write class ? I need some >> >> static >> >> html pages and writing java for those will be of no use . >> >> >> > >> > >> > >> > -- >> > Pedro Henrique Oliveira dos Santos >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/page-without-class-tp26338268p26339453.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > -- View this message in context: http://old.nabble.com/page-without-class-tp26338268p26340879.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Automatically avoid executing component code when not authorized for instantiation?
abstract class securecomponentcontainer extends webmarkupcontainer { protected component abstract newsecurecomponent(string id); protected component boolean isauthrorized(); protected void onbeforerender() { if (isauthorized()) { replacewith(newsecurecomponent(getid()); } } } have you tried something like this? -igor On Fri, Nov 13, 2009 at 11:48 AM, Early Morning wrote: > Hi All, > > There are cases wherein a user is authorized to view a page, but not a > component within that page. Currently we set the authorizations needed for a > component using a custom annotation, and handle the Render and Enable > actions in a custom AuthorizationStrategy. However, we also have to handle > authorizations for component instantiation such that the actual code of the > component should not be run if it is not authorized. This is needed since > there are many components which retrieve data from a DB or otherwise do > unnecessary processing which ideally shoudn't be done if the component is > not authorized for instantiation in the first place. > > Is there a way that we can automatically replace that component with a dummy > component or just not execute the code within the component (say, in the > onUnauthorizedInstantiation method) in our AuthorizationStrategy? Of course, > we could manually check within the component whether the processing should > be done depending on the authorization, but we'd like to avoid that since > that would mean manually checking authorizations for every component (thus > rendering the AuthorizationStrategy somewhat redundant). Is there a way for > us to do this automatically for components where we've set > isInstantiationAuthorized = false? Thanks! > > > ---Ces > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Automatically avoid executing component code when not authorized for instantiation?
Hi All, There are cases wherein a user is authorized to view a page, but not a component within that page. Currently we set the authorizations needed for a component using a custom annotation, and handle the Render and Enable actions in a custom AuthorizationStrategy. However, we also have to handle authorizations for component instantiation such that the actual code of the component should not be run if it is not authorized. This is needed since there are many components which retrieve data from a DB or otherwise do unnecessary processing which ideally shoudn't be done if the component is not authorized for instantiation in the first place. Is there a way that we can automatically replace that component with a dummy component or just not execute the code within the component (say, in the onUnauthorizedInstantiation method) in our AuthorizationStrategy? Of course, we could manually check within the component whether the processing should be done depending on the authorization, but we'd like to avoid that since that would mean manually checking authorizations for every component (thus rendering the AuthorizationStrategy somewhat redundant). Is there a way for us to do this automatically for components where we've set isInstantiationAuthorized = false? Thanks! ---Ces
Re: XML Serialization Wicket
That's cool thanks On Fri, Nov 13, 2009 at 8:47 PM, Igor Vaynberg wrote: > sure, you can implement your own ipagestore and save pages however you > want. > > -igor > > On Fri, Nov 13, 2009 at 10:43 AM, Pamir Erdem > wrote: > > Again sorry i sent it too quickly, > > BinarySerialization is default, > > but i want to do it in XMLSerializaion and with SAXParse > > is it possible ? > > > > On Fri, Nov 13, 2009 at 8:27 PM, Pamir Erdem > wrote: > > > >> Sorry for the information that i gave, i tried to explain how wicket > stores > >> information. > >> But we really want to know if there is a way to do in SAX way, cause as > you > >> know > >> java's default serializer uses DOM Serializer. > >> > >> > >> On Fri, Nov 13, 2009 at 6:07 PM, Igor Vaynberg >wrote: > >> > >>> wicket doesnt store pages using xml. we use ObjectOutputStream which > >>> uses java's serialization format, not xml. > >>> > >>> -igor > >>> > >>> On Fri, Nov 13, 2009 at 6:37 AM, Pamir Erdem > >>> wrote: > >>> > No, I'm not dealing with PageSizes. I'm dealing to decrea stack tree > >>> depth > >>> > in serialization. One way to achieve this converting changing > >>> DomSerializer > >>> > to SAXSerializer. So is there any way to make it possible in wicket ? > >>> > > >>> > > >>> > > >>> > 2009/11/13 Uwe Schäfer > >>> > > >>> >> Pamir Erdem schrieb: > >>> >> > >>> >> > >>> >> As you know, Wicket uses disk storage to save web pages by > serializing > >>> >>> them. > >>> >>> PageMap and DiskPageStore classes are examples for it. Is there > any > >>> way > >>> >>> to > >>> >>> change the serialization type from DOM Serialization to SAX > >>> >>> Serialization > >>> >>> in these classes ? If serialization of an object seralization tree > >>> depth > >>> >>> is > >>> >>> high what you have to do is just increasing the java argument Xss > or > >>> >>> changing the serialization method from DOM to SAX > >>> >>> > >>> >> > >>> >> For debugging purposes in dev environments, once a serialized Page > Size > >>> >> exceeds a certain limit, we produce XML via XStream in order to be > able > >>> to > >>> >> look at it. > >>> >> > >>> >> Is this what you´re looking for? > >>> >> > >>> >> cu uwe > >>> >> > >>> >> > >>> >> > >>> >> > - > >>> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >>> >> For additional commands, e-mail: users-h...@wicket.apache.org > >>> >> > >>> >> > >>> > > >>> > > >>> > -- > >>> > Pamir Erdem > >>> > > >>> > >>> - > >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >>> For additional commands, e-mail: users-h...@wicket.apache.org > >>> > >>> > >> > >> > >> -- > >> Pamir Erdem > >> > > > > > > > > -- > > Pamir Erdem > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Pamir Erdem
Re: XML Serialization Wicket
sure, you can implement your own ipagestore and save pages however you want. -igor On Fri, Nov 13, 2009 at 10:43 AM, Pamir Erdem wrote: > Again sorry i sent it too quickly, > BinarySerialization is default, > but i want to do it in XMLSerializaion and with SAXParse > is it possible ? > > On Fri, Nov 13, 2009 at 8:27 PM, Pamir Erdem wrote: > >> Sorry for the information that i gave, i tried to explain how wicket stores >> information. >> But we really want to know if there is a way to do in SAX way, cause as you >> know >> java's default serializer uses DOM Serializer. >> >> >> On Fri, Nov 13, 2009 at 6:07 PM, Igor Vaynberg >> wrote: >> >>> wicket doesnt store pages using xml. we use ObjectOutputStream which >>> uses java's serialization format, not xml. >>> >>> -igor >>> >>> On Fri, Nov 13, 2009 at 6:37 AM, Pamir Erdem >>> wrote: >>> > No, I'm not dealing with PageSizes. I'm dealing to decrea stack tree >>> depth >>> > in serialization. One way to achieve this converting changing >>> DomSerializer >>> > to SAXSerializer. So is there any way to make it possible in wicket ? >>> > >>> > >>> > >>> > 2009/11/13 Uwe Schäfer >>> > >>> >> Pamir Erdem schrieb: >>> >> >>> >> >>> >> As you know, Wicket uses disk storage to save web pages by serializing >>> >>> them. >>> >>> PageMap and DiskPageStore classes are examples for it. Is there any >>> way >>> >>> to >>> >>> change the serialization type from DOM Serialization to SAX >>> >>> Serialization >>> >>> in these classes ? If serialization of an object seralization tree >>> depth >>> >>> is >>> >>> high what you have to do is just increasing the java argument Xss or >>> >>> changing the serialization method from DOM to SAX >>> >>> >>> >> >>> >> For debugging purposes in dev environments, once a serialized Page Size >>> >> exceeds a certain limit, we produce XML via XStream in order to be able >>> to >>> >> look at it. >>> >> >>> >> Is this what you´re looking for? >>> >> >>> >> cu uwe >>> >> >>> >> >>> >> >>> >> - >>> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> >> For additional commands, e-mail: users-h...@wicket.apache.org >>> >> >>> >> >>> > >>> > >>> > -- >>> > Pamir Erdem >>> > >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> >> -- >> Pamir Erdem >> > > > > -- > Pamir Erdem > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: XML Serialization Wicket
http://java.sun.com/javase/6/docs/platform/serialization/spec/protocol.html -igor On Fri, Nov 13, 2009 at 10:27 AM, Pamir Erdem wrote: > Sorry for the information that i gave, i tried to explain how wicket stores > information. > But we really want to know if there is a way to do in SAX way, cause as you > know > java's default serializer uses DOM Serializer. > > > On Fri, Nov 13, 2009 at 6:07 PM, Igor Vaynberg wrote: > >> wicket doesnt store pages using xml. we use ObjectOutputStream which >> uses java's serialization format, not xml. >> >> -igor >> >> On Fri, Nov 13, 2009 at 6:37 AM, Pamir Erdem >> wrote: >> > No, I'm not dealing with PageSizes. I'm dealing to decrea stack tree >> depth >> > in serialization. One way to achieve this converting changing >> DomSerializer >> > to SAXSerializer. So is there any way to make it possible in wicket ? >> > >> > >> > >> > 2009/11/13 Uwe Schäfer >> > >> >> Pamir Erdem schrieb: >> >> >> >> >> >> As you know, Wicket uses disk storage to save web pages by serializing >> >>> them. >> >>> PageMap and DiskPageStore classes are examples for it. Is there any >> way >> >>> to >> >>> change the serialization type from DOM Serialization to SAX >> >>> Serialization >> >>> in these classes ? If serialization of an object seralization tree >> depth >> >>> is >> >>> high what you have to do is just increasing the java argument Xss or >> >>> changing the serialization method from DOM to SAX >> >>> >> >> >> >> For debugging purposes in dev environments, once a serialized Page Size >> >> exceeds a certain limit, we produce XML via XStream in order to be able >> to >> >> look at it. >> >> >> >> Is this what you´re looking for? >> >> >> >> cu uwe >> >> >> >> >> >> >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> >> >> > >> > >> > -- >> > Pamir Erdem >> > >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > Pamir Erdem > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: XML Serialization Wicket
Again sorry i sent it too quickly, BinarySerialization is default, but i want to do it in XMLSerializaion and with SAXParse is it possible ? On Fri, Nov 13, 2009 at 8:27 PM, Pamir Erdem wrote: > Sorry for the information that i gave, i tried to explain how wicket stores > information. > But we really want to know if there is a way to do in SAX way, cause as you > know > java's default serializer uses DOM Serializer. > > > On Fri, Nov 13, 2009 at 6:07 PM, Igor Vaynberg wrote: > >> wicket doesnt store pages using xml. we use ObjectOutputStream which >> uses java's serialization format, not xml. >> >> -igor >> >> On Fri, Nov 13, 2009 at 6:37 AM, Pamir Erdem >> wrote: >> > No, I'm not dealing with PageSizes. I'm dealing to decrea stack tree >> depth >> > in serialization. One way to achieve this converting changing >> DomSerializer >> > to SAXSerializer. So is there any way to make it possible in wicket ? >> > >> > >> > >> > 2009/11/13 Uwe Schäfer >> > >> >> Pamir Erdem schrieb: >> >> >> >> >> >> As you know, Wicket uses disk storage to save web pages by serializing >> >>> them. >> >>> PageMap and DiskPageStore classes are examples for it. Is there any >> way >> >>> to >> >>> change the serialization type from DOM Serialization to SAX >> >>> Serialization >> >>> in these classes ? If serialization of an object seralization tree >> depth >> >>> is >> >>> high what you have to do is just increasing the java argument Xss or >> >>> changing the serialization method from DOM to SAX >> >>> >> >> >> >> For debugging purposes in dev environments, once a serialized Page Size >> >> exceeds a certain limit, we produce XML via XStream in order to be able >> to >> >> look at it. >> >> >> >> Is this what you´re looking for? >> >> >> >> cu uwe >> >> >> >> >> >> >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> >> >> > >> > >> > -- >> > Pamir Erdem >> > >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > Pamir Erdem > -- Pamir Erdem
RE: page without class
... Or by overwriting how page requests are handled. -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Friday, November 13, 2009 1:14 PM To: users@wicket.apache.org Subject: Re: page without class No. Although you can create a single page (java class) that can serve multiple html pages if you'd like - either through panels or style variation. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Nov 13, 2009 at 12:11 PM, fachhoch wrote: > > I am asking about creating a wicket page without a class , can I create a > org.apache.wicket.markup.html.WebPage instance without any additional > java file just html ? > > > > > insom wrote: > > > > I believe you can do this if you change the Wicket filter mapping in your > > web.xml to something other than /*. Then Tomcat will serve the page and > > bypass Wicket entirely. > > > > Dane > > > > > > On Fri, Nov 13, 2009 at 8:36 AM, fachhoch wrote: > > > >> > >> Ok I have to tell that page to my IApplicationSettings > >> > >>IApplicationSettings settings= > >> super.getApplicationSettings(); > >>settings.setAccessDeniedPage(accessDeniedPage) > >> here accessDeniedPage page is a static html page and I dont need java . > >> I am talking about a wicket page without a class just html is it > >> possible > >> ? > >> > >> > >> > >> Pedro H. O. dos Santos wrote: > >> > > >> > Only put then on top-level directory of a web module. > >> > http://java.sun.com/javaee/5/docs/tutorial/doc/bnadx.html#bnadz > >> > > >> > On Fri, Nov 13, 2009 at 1:21 PM, tubin gen > wrote: > >> > > >> >> can I create a page just with html and not write class ? I need some > >> >> static > >> >> html pages and writing java for those will be of no use . > >> >> > >> > > >> > > >> > > >> > -- > >> > Pedro Henrique Oliveira dos Santos > >> > > >> > > >> > >> -- > >> View this message in context: > >> http://old.nabble.com/page-without-class-tp26338268p26339453.html > >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > >> > > > > > > -- > View this message in context: > http://old.nabble.com/page-without-class-tp26338268p26340879.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: page without class
Oh, for that... Try messing with: getRequestCycle().setRequestTarget(new RedirectRequestTarget("access-in-denial.html")); -Original Message- From: fachhoch [mailto:fachh...@gmail.com] Sent: Friday, November 13, 2009 11:36 AM To: users@wicket.apache.org Subject: Re: page without class Ok I have to tell that page to my IApplicationSettings IApplicationSettings settings= super.getApplicationSettings(); settings.setAccessDeniedPage(accessDeniedPage) here accessDeniedPage page is a static html page and I dont need java . I am talking about a wicket page without a class just html is it possible ? Pedro H. O. dos Santos wrote: > > Only put then on top-level directory of a web module. > http://java.sun.com/javaee/5/docs/tutorial/doc/bnadx.html#bnadz > > On Fri, Nov 13, 2009 at 1:21 PM, tubin gen wrote: > >> can I create a page just with html and not write class ? I need some >> static >> html pages and writing java for those will be of no use . >> > > > > -- > Pedro Henrique Oliveira dos Santos > > -- View this message in context: http://old.nabble.com/page-without-class-tp26338268p26339453.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: page without class
Yup. Works for me! Or just configure tomcat or whatever you use as servlet container to pick up the files elsewhere. This has totally nothing to do with Wicket. It, very wisely, picks up just the stuff it knows about. All your other requests fall through to Tomcat/servlet engine. In fact, it's counter productive to run things through wicket that it d/n need to handle. You are just wasting resources. (It caches stuff and even minimal processing is > than no processing). Another idea - move static stuff to another cheap server and point html to pick up stuff (images) there. Could save you resources (bandwidth, cpu, ram etc) and improve performance (most browsers limit number of simultaneous threads to 1 server). -Original Message- From: Pedro Santos [mailto:pedros...@gmail.com] Sent: Friday, November 13, 2009 10:30 AM To: users@wicket.apache.org Subject: Re: page without class Only put then on top-level directory of a web module. http://java.sun.com/javaee/5/docs/tutorial/doc/bnadx.html#bnadz On Fri, Nov 13, 2009 at 1:21 PM, tubin gen wrote: > can I create a page just with html and not write class ? I need some > static > html pages and writing java for those will be of no use . > -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: XML Serialization Wicket
Sorry for the information that i gave, i tried to explain how wicket stores information. But we really want to know if there is a way to do in SAX way, cause as you know java's default serializer uses DOM Serializer. On Fri, Nov 13, 2009 at 6:07 PM, Igor Vaynberg wrote: > wicket doesnt store pages using xml. we use ObjectOutputStream which > uses java's serialization format, not xml. > > -igor > > On Fri, Nov 13, 2009 at 6:37 AM, Pamir Erdem > wrote: > > No, I'm not dealing with PageSizes. I'm dealing to decrea stack tree > depth > > in serialization. One way to achieve this converting changing > DomSerializer > > to SAXSerializer. So is there any way to make it possible in wicket ? > > > > > > > > 2009/11/13 Uwe Schäfer > > > >> Pamir Erdem schrieb: > >> > >> > >> As you know, Wicket uses disk storage to save web pages by serializing > >>> them. > >>> PageMap and DiskPageStore classes are examples for it. Is there any > way > >>> to > >>> change the serialization type from DOM Serialization to SAX > >>> Serialization > >>> in these classes ? If serialization of an object seralization tree > depth > >>> is > >>> high what you have to do is just increasing the java argument Xss or > >>> changing the serialization method from DOM to SAX > >>> > >> > >> For debugging purposes in dev environments, once a serialized Page Size > >> exceeds a certain limit, we produce XML via XStream in order to be able > to > >> look at it. > >> > >> Is this what you´re looking for? > >> > >> cu uwe > >> > >> > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > >> > > > > > > -- > > Pamir Erdem > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Pamir Erdem
Re: page without class
No. Although you can create a single page (java class) that can serve multiple html pages if you'd like - either through panels or style variation. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Nov 13, 2009 at 12:11 PM, fachhoch wrote: > > I am asking about creating a wicket page without a class , can I create a > org.apache.wicket.markup.html.WebPage instance without any additional > java file just html ? > > > > > insom wrote: > > > > I believe you can do this if you change the Wicket filter mapping in your > > web.xml to something other than /*. Then Tomcat will serve the page and > > bypass Wicket entirely. > > > > Dane > > > > > > On Fri, Nov 13, 2009 at 8:36 AM, fachhoch wrote: > > > >> > >> Ok I have to tell that page to my IApplicationSettings > >> > >>IApplicationSettings settings= > >> super.getApplicationSettings(); > >>settings.setAccessDeniedPage(accessDeniedPage) > >> here accessDeniedPage page is a static html page and I dont need java . > >> I am talking about a wicket page without a class just html is it > >> possible > >> ? > >> > >> > >> > >> Pedro H. O. dos Santos wrote: > >> > > >> > Only put then on top-level directory of a web module. > >> > http://java.sun.com/javaee/5/docs/tutorial/doc/bnadx.html#bnadz > >> > > >> > On Fri, Nov 13, 2009 at 1:21 PM, tubin gen > wrote: > >> > > >> >> can I create a page just with html and not write class ? I need some > >> >> static > >> >> html pages and writing java for those will be of no use . > >> >> > >> > > >> > > >> > > >> > -- > >> > Pedro Henrique Oliveira dos Santos > >> > > >> > > >> > >> -- > >> View this message in context: > >> http://old.nabble.com/page-without-class-tp26338268p26339453.html > >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > >> > > > > > > -- > View this message in context: > http://old.nabble.com/page-without-class-tp26338268p26340879.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: page without class
I am asking about creating a wicket page without a class , can I create a org.apache.wicket.markup.html.WebPage instance without any additional java file just html ? insom wrote: > > I believe you can do this if you change the Wicket filter mapping in your > web.xml to something other than /*. Then Tomcat will serve the page and > bypass Wicket entirely. > > Dane > > > On Fri, Nov 13, 2009 at 8:36 AM, fachhoch wrote: > >> >> Ok I have to tell that page to my IApplicationSettings >> >>IApplicationSettings settings= >> super.getApplicationSettings(); >>settings.setAccessDeniedPage(accessDeniedPage) >> here accessDeniedPage page is a static html page and I dont need java . >> I am talking about a wicket page without a class just html is it >> possible >> ? >> >> >> >> Pedro H. O. dos Santos wrote: >> > >> > Only put then on top-level directory of a web module. >> > http://java.sun.com/javaee/5/docs/tutorial/doc/bnadx.html#bnadz >> > >> > On Fri, Nov 13, 2009 at 1:21 PM, tubin gen wrote: >> > >> >> can I create a page just with html and not write class ? I need some >> >> static >> >> html pages and writing java for those will be of no use . >> >> >> > >> > >> > >> > -- >> > Pedro Henrique Oliveira dos Santos >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/page-without-class-tp26338268p26339453.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > -- View this message in context: http://old.nabble.com/page-without-class-tp26338268p26340879.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: page without class
but can I tell IApplicationSettings about this html page ? insom wrote: > > I believe you can do this if you change the Wicket filter mapping in your > web.xml to something other than /*. Then Tomcat will serve the page and > bypass Wicket entirely. > > Dane > > > On Fri, Nov 13, 2009 at 8:36 AM, fachhoch wrote: > >> >> Ok I have to tell that page to my IApplicationSettings >> >>IApplicationSettings settings= >> super.getApplicationSettings(); >>settings.setAccessDeniedPage(accessDeniedPage) >> here accessDeniedPage page is a static html page and I dont need java . >> I am talking about a wicket page without a class just html is it >> possible >> ? >> >> >> >> Pedro H. O. dos Santos wrote: >> > >> > Only put then on top-level directory of a web module. >> > http://java.sun.com/javaee/5/docs/tutorial/doc/bnadx.html#bnadz >> > >> > On Fri, Nov 13, 2009 at 1:21 PM, tubin gen wrote: >> > >> >> can I create a page just with html and not write class ? I need some >> >> static >> >> html pages and writing java for those will be of no use . >> >> >> > >> > >> > >> > -- >> > Pedro Henrique Oliveira dos Santos >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/page-without-class-tp26338268p26339453.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > -- View this message in context: http://old.nabble.com/page-without-class-tp26338268p26340220.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
HybridUrlCodingStrategy to get "/path/http://what/ever" as "/path?q=http://what/ever"
I am looking for a hybrid URL coding strategy X that when mounted via mount(new X("link", LinkPage.class)); maps URLs contained in my URLs, as in /link/http://code.google.com/p/salve/wiki/WhySalve to a PageParameters instance with a single parameter containing the URL: "http://code.google.com/p/salve/wiki/WhySalve";. Does anybody have such an implementation and could share it? I suppose the page id and version need to be stored differently (because URLs may end in ".2.3", for instance), maybe as /link/2.3/http://code.google.com/p/salve/wiki/WhySalve? Thanks, Kaspar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ajax and visibility question
Ugh. I mean " on version 1.3.7". I'm confusing my libraries. -troy On Fri, Nov 13, 2009 at 12:13 PM, Troy Cauble wrote: > Yes, I know about using setOutputMarkupPlaceholderTag(true). > But shouldn't updating the in/visible component's container work too? > > Here's a simple example that fails on 2.0-M5. > > -troy > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
ajax and visibility question
Yes, I know about using setOutputMarkupPlaceholderTag(true). But shouldn't updating the in/visible component's container work too? Here's a simple example that fails on 2.0-M5. -troy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: page without class
I believe you can do this if you change the Wicket filter mapping in your web.xml to something other than /*. Then Tomcat will serve the page and bypass Wicket entirely. Dane On Fri, Nov 13, 2009 at 8:36 AM, fachhoch wrote: > > Ok I have to tell that page to my IApplicationSettings > >IApplicationSettings settings= > super.getApplicationSettings(); >settings.setAccessDeniedPage(accessDeniedPage) > here accessDeniedPage page is a static html page and I dont need java . > I am talking about a wicket page without a class just html is it > possible > ? > > > > Pedro H. O. dos Santos wrote: > > > > Only put then on top-level directory of a web module. > > http://java.sun.com/javaee/5/docs/tutorial/doc/bnadx.html#bnadz > > > > On Fri, Nov 13, 2009 at 1:21 PM, tubin gen wrote: > > > >> can I create a page just with html and not write class ? I need some > >> static > >> html pages and writing java for those will be of no use . > >> > > > > > > > > -- > > Pedro Henrique Oliveira dos Santos > > > > > > -- > View this message in context: > http://old.nabble.com/page-without-class-tp26338268p26339453.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: page without class
Ok I have to tell that page to my IApplicationSettings IApplicationSettings settings= super.getApplicationSettings(); settings.setAccessDeniedPage(accessDeniedPage) here accessDeniedPage page is a static html page and I dont need java . I am talking about a wicket page without a class just html is it possible ? Pedro H. O. dos Santos wrote: > > Only put then on top-level directory of a web module. > http://java.sun.com/javaee/5/docs/tutorial/doc/bnadx.html#bnadz > > On Fri, Nov 13, 2009 at 1:21 PM, tubin gen wrote: > >> can I create a page just with html and not write class ? I need some >> static >> html pages and writing java for those will be of no use . >> > > > > -- > Pedro Henrique Oliveira dos Santos > > -- View this message in context: http://old.nabble.com/page-without-class-tp26338268p26339453.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page expired in BEA, not Jetty
It's ok, I'm heading that way. Thanks anyway. 2009/11/13 Igor Vaynberg > sorry, i dont use bea so i have no clue. but if it works on jetty and > on tomcat it limits where you should look - bea configuration? bea > sessions? > > -igor > > On Fri, Nov 13, 2009 at 8:21 AM, Xavier López wrote: > > Hi, > > > > It's working nicely on Tomcat. > > > > I'll have to rectify on what I've said on the first assertion. With > Jetty, > > the first time I try, pageMapsUsedInRequest is null too. I'll try to > provide > > a more elaborate description of the things happening in the second code > > fragment... > > > > I've tried even to remove weblogic.xml to bypass any harmful setting I > could > > have in it, but it's still happening the same. Curious thing is, I > remember > > seeing it work before. By the way, I'm on BEA 9.2 MP3, > > I'd be grateful to any hint that could lead to this problem's solution > > (thanks Igor). > > > > Cheers! > > Xavier > > > > 2009/11/13 Igor Vaynberg > > > >> try in tomcat. sounds like bea is not tracking your sessions. > >> > >> -igor > >> > >> On Fri, Nov 13, 2009 at 7:37 AM, Xavier López > wrote: > >> > Hi, > >> > > >> > I'm having a weird problem deploying my Wicket application in BEA. I > only > >> > manage to view the Application's HomePage and mounted > BookMarkablePages. > >> > Whenever I try to move from one of these pages (including a failed > login > >> > from the HomePage, which does not do 'setResponsePage', so it should > load > >> > the HomePage again), I get a PageExpiredException. Using Jetty > everyhting > >> is > >> > fine. > >> > > >> > I'm using Wicket 1.3.5. Debugging the Wicket classes I found out the > root > >> of > >> > the problem is found in Session.getPage(final String pageMapName, > final > >> > String path, final int versionNumber). > >> > > >> > The first difference I find when executing in Jetty and BEA is here > >> > (Session.class line 694) > >> > > >> > if (pageMapsUsedInRequest == null) { > >> >pageMapsUsedInRequest = new HashMap(3); > >> > } > >> > > >> > With Jetty the variable does not have a null value (it is an empty > Map). > >> > With BEA, it is null. > >> > > >> > Then, the execution is the same until it gets to the point: > >> (Session.class > >> > line 746) > >> > > >> > PageMapsUsedInRequestEntry newEntry = new > PageMapsUsedInRequestEntry(); > >> > newEntry.thread = Thread.currentThread(); > >> > newEntry.requestCycle = RequestCycle.get(); > >> > pageMapsUsedInRequest.put(pageMap, newEntry); > >> > final String id = Strings.firstPathComponent(path, > >> > Component.PATH_SEPARATOR); > >> > Page page = pageMap.get(Integer.parseInt(id), versionNumber); > >> > if (page == null) > >> > { > >> > pageMapsUsedInRequest.remove(pageMap); > >> > pageMapsUsedInRequest.notifyAll(); > >> > } > >> > else > >> > { > >> > // attach the page now. > >> > page.onPageAttached(); > >> > touch(page); > >> > } > >> > return page; > >> > > >> > In Jetty, it effectively returns a Page instance, but in BEA keeps > >> returning > >> > null. > >> > > >> > Is there any setting I'm not aware of that may be causing this strange > >> > behavior ? I use a custom session class (extending WebSession, and > >> instanced > >> > by means of Application.newSession), but do not override any of its > >> > methods... > >> > > >> > Thanks! > >> > Xavier > >> > > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > >> > > > > > > -- > > "Klein bottle for rent--inquire within." > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- "Klein bottle for rent--inquire within."
Re: Page expired in BEA, not Jetty
sorry, i dont use bea so i have no clue. but if it works on jetty and on tomcat it limits where you should look - bea configuration? bea sessions? -igor On Fri, Nov 13, 2009 at 8:21 AM, Xavier López wrote: > Hi, > > It's working nicely on Tomcat. > > I'll have to rectify on what I've said on the first assertion. With Jetty, > the first time I try, pageMapsUsedInRequest is null too. I'll try to provide > a more elaborate description of the things happening in the second code > fragment... > > I've tried even to remove weblogic.xml to bypass any harmful setting I could > have in it, but it's still happening the same. Curious thing is, I remember > seeing it work before. By the way, I'm on BEA 9.2 MP3, > I'd be grateful to any hint that could lead to this problem's solution > (thanks Igor). > > Cheers! > Xavier > > 2009/11/13 Igor Vaynberg > >> try in tomcat. sounds like bea is not tracking your sessions. >> >> -igor >> >> On Fri, Nov 13, 2009 at 7:37 AM, Xavier López wrote: >> > Hi, >> > >> > I'm having a weird problem deploying my Wicket application in BEA. I only >> > manage to view the Application's HomePage and mounted BookMarkablePages. >> > Whenever I try to move from one of these pages (including a failed login >> > from the HomePage, which does not do 'setResponsePage', so it should load >> > the HomePage again), I get a PageExpiredException. Using Jetty everyhting >> is >> > fine. >> > >> > I'm using Wicket 1.3.5. Debugging the Wicket classes I found out the root >> of >> > the problem is found in Session.getPage(final String pageMapName, final >> > String path, final int versionNumber). >> > >> > The first difference I find when executing in Jetty and BEA is here >> > (Session.class line 694) >> > >> > if (pageMapsUsedInRequest == null) { >> > pageMapsUsedInRequest = new HashMap(3); >> > } >> > >> > With Jetty the variable does not have a null value (it is an empty Map). >> > With BEA, it is null. >> > >> > Then, the execution is the same until it gets to the point: >> (Session.class >> > line 746) >> > >> > PageMapsUsedInRequestEntry newEntry = new PageMapsUsedInRequestEntry(); >> > newEntry.thread = Thread.currentThread(); >> > newEntry.requestCycle = RequestCycle.get(); >> > pageMapsUsedInRequest.put(pageMap, newEntry); >> > final String id = Strings.firstPathComponent(path, >> > Component.PATH_SEPARATOR); >> > Page page = pageMap.get(Integer.parseInt(id), versionNumber); >> > if (page == null) >> > { >> > pageMapsUsedInRequest.remove(pageMap); >> > pageMapsUsedInRequest.notifyAll(); >> > } >> > else >> > { >> > // attach the page now. >> > page.onPageAttached(); >> > touch(page); >> > } >> > return page; >> > >> > In Jetty, it effectively returns a Page instance, but in BEA keeps >> returning >> > null. >> > >> > Is there any setting I'm not aware of that may be causing this strange >> > behavior ? I use a custom session class (extending WebSession, and >> instanced >> > by means of Application.newSession), but do not override any of its >> > methods... >> > >> > Thanks! >> > Xavier >> > >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > "Klein bottle for rent--inquire within." > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page expired in BEA, not Jetty
Hi, It's working nicely on Tomcat. I'll have to rectify on what I've said on the first assertion. With Jetty, the first time I try, pageMapsUsedInRequest is null too. I'll try to provide a more elaborate description of the things happening in the second code fragment... I've tried even to remove weblogic.xml to bypass any harmful setting I could have in it, but it's still happening the same. Curious thing is, I remember seeing it work before. By the way, I'm on BEA 9.2 MP3, I'd be grateful to any hint that could lead to this problem's solution (thanks Igor). Cheers! Xavier 2009/11/13 Igor Vaynberg > try in tomcat. sounds like bea is not tracking your sessions. > > -igor > > On Fri, Nov 13, 2009 at 7:37 AM, Xavier López wrote: > > Hi, > > > > I'm having a weird problem deploying my Wicket application in BEA. I only > > manage to view the Application's HomePage and mounted BookMarkablePages. > > Whenever I try to move from one of these pages (including a failed login > > from the HomePage, which does not do 'setResponsePage', so it should load > > the HomePage again), I get a PageExpiredException. Using Jetty everyhting > is > > fine. > > > > I'm using Wicket 1.3.5. Debugging the Wicket classes I found out the root > of > > the problem is found in Session.getPage(final String pageMapName, final > > String path, final int versionNumber). > > > > The first difference I find when executing in Jetty and BEA is here > > (Session.class line 694) > > > > if (pageMapsUsedInRequest == null) { > >pageMapsUsedInRequest = new HashMap(3); > > } > > > > With Jetty the variable does not have a null value (it is an empty Map). > > With BEA, it is null. > > > > Then, the execution is the same until it gets to the point: > (Session.class > > line 746) > > > > PageMapsUsedInRequestEntry newEntry = new PageMapsUsedInRequestEntry(); > > newEntry.thread = Thread.currentThread(); > > newEntry.requestCycle = RequestCycle.get(); > > pageMapsUsedInRequest.put(pageMap, newEntry); > > final String id = Strings.firstPathComponent(path, > > Component.PATH_SEPARATOR); > > Page page = pageMap.get(Integer.parseInt(id), versionNumber); > > if (page == null) > > { > > pageMapsUsedInRequest.remove(pageMap); > > pageMapsUsedInRequest.notifyAll(); > > } > > else > > { > > // attach the page now. > > page.onPageAttached(); > > touch(page); > > } > > return page; > > > > In Jetty, it effectively returns a Page instance, but in BEA keeps > returning > > null. > > > > Is there any setting I'm not aware of that may be causing this strange > > behavior ? I use a custom session class (extending WebSession, and > instanced > > by means of Application.newSession), but do not override any of its > > methods... > > > > Thanks! > > Xavier > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- "Klein bottle for rent--inquire within."
Re: Page expired in BEA, not Jetty
try in tomcat. sounds like bea is not tracking your sessions. -igor On Fri, Nov 13, 2009 at 7:37 AM, Xavier López wrote: > Hi, > > I'm having a weird problem deploying my Wicket application in BEA. I only > manage to view the Application's HomePage and mounted BookMarkablePages. > Whenever I try to move from one of these pages (including a failed login > from the HomePage, which does not do 'setResponsePage', so it should load > the HomePage again), I get a PageExpiredException. Using Jetty everyhting is > fine. > > I'm using Wicket 1.3.5. Debugging the Wicket classes I found out the root of > the problem is found in Session.getPage(final String pageMapName, final > String path, final int versionNumber). > > The first difference I find when executing in Jetty and BEA is here > (Session.class line 694) > > if (pageMapsUsedInRequest == null) { > pageMapsUsedInRequest = new HashMap(3); > } > > With Jetty the variable does not have a null value (it is an empty Map). > With BEA, it is null. > > Then, the execution is the same until it gets to the point: (Session.class > line 746) > > PageMapsUsedInRequestEntry newEntry = new PageMapsUsedInRequestEntry(); > newEntry.thread = Thread.currentThread(); > newEntry.requestCycle = RequestCycle.get(); > pageMapsUsedInRequest.put(pageMap, newEntry); > final String id = Strings.firstPathComponent(path, > Component.PATH_SEPARATOR); > Page page = pageMap.get(Integer.parseInt(id), versionNumber); > if (page == null) > { > pageMapsUsedInRequest.remove(pageMap); > pageMapsUsedInRequest.notifyAll(); > } > else > { > // attach the page now. > page.onPageAttached(); > touch(page); > } > return page; > > In Jetty, it effectively returns a Page instance, but in BEA keeps returning > null. > > Is there any setting I'm not aware of that may be causing this strange > behavior ? I use a custom session class (extending WebSession, and instanced > by means of Application.newSession), but do not override any of its > methods... > > Thanks! > Xavier > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: XML Serialization Wicket
wicket doesnt store pages using xml. we use ObjectOutputStream which uses java's serialization format, not xml. -igor On Fri, Nov 13, 2009 at 6:37 AM, Pamir Erdem wrote: > No, I'm not dealing with PageSizes. I'm dealing to decrea stack tree depth > in serialization. One way to achieve this converting changing DomSerializer > to SAXSerializer. So is there any way to make it possible in wicket ? > > > > 2009/11/13 Uwe Schäfer > >> Pamir Erdem schrieb: >> >> >> As you know, Wicket uses disk storage to save web pages by serializing >>> them. >>> PageMap and DiskPageStore classes are examples for it. Is there any way >>> to >>> change the serialization type from DOM Serialization to SAX >>> Serialization >>> in these classes ? If serialization of an object seralization tree depth >>> is >>> high what you have to do is just increasing the java argument Xss or >>> changing the serialization method from DOM to SAX >>> >> >> For debugging purposes in dev environments, once a serialized Page Size >> exceeds a certain limit, we produce XML via XStream in order to be able to >> look at it. >> >> Is this what you´re looking for? >> >> cu uwe >> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > Pamir Erdem > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Exception while testing cluster failover with Tomcat Session Replication
can you check your tomcat logs for what its doing? -igor On Fri, Nov 13, 2009 at 5:54 AM, Onur Ağın wrote: > Hi, > > I am trying session replication with tomcat 6.0.16 and wicket 1.3.6 > There is a load balancer in front of two servers. > > > I noticed that, > Within a page that is requested from server A, I stop server A and make a > postback, request succeeds > if that page is requested from server B before > and fails if that page is never requested from server B before. > > The exception is: > Attempt to access unknown request listener interface > IActivePageBehaviorListenerorg.apache.wicket.WicketRuntimeException: Attempt > to access unknown request listener interface IActivePageBehaviorListener > > > Any ideas? > > > Thanks, > > Onur > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Restarting AjaxLazyLoadingPanel
Finally got this working by changing the following line of code: newPanel.setOutputMarkupId(true); to : newPanel.setOutputMarkupId(true).setOutputMarkupPlaceholderTag(true); Hopefully this helps someone. Ryan On Nov 12, 2009, at 2:57 PM, rjohara wrote: We are after the same behavior, as well. During the initial page load, the AjaxLazyLoadPanel works great. However, after hiding/showing the image (using an AjaxLink), the panel no longer loads. I tried using the custom ReloadingAjaxLazyPanel, too, and the results were the same as replacing with a new panel instance. Any ideas? Below is a code snippet: final Label gbrowseHideShowLabel = new Label("gbrowseHideShowLabel", new LoadableDetachableModel() { protected Object load() { return gbrowseHideShowText; } }); gbrowseHideShowLabel.setOutputMarkupId(true); gbrowseLazyLoaded = getNewGbrowseLazyLoaded(); add(gbrowseLazyLoaded); AjaxLink gbrowseHideShow = new AjaxLink("gbrowseHideShow") { public void onClick(AjaxRequestTarget target) { if (!gbrowseVisible) { gbrowseVisible = true; gbrowseHideShowText = "Hide image"; user.setImageViewer(true); } else { gbrowseVisible = false; gbrowseHideShowText = "Show image"; user.setImageViewer(false); } target.addComponent(gbrowseHideShowLabel); AjaxLazyLoadPanel newPanel = getNewGbrowseLazyLoaded(); newPanel.setOutputMarkupId(true); getGbrowseLazyLoaded().replaceWith(newPanel); setGbrowseLazyLoaded(newPanel); target.addComponent(newPanel); } }; gbrowseHideShow.add(gbrowseHideShowLabel); add(gbrowseHideShow); Thanks, Ryan igor.vaynberg wrote: you can just replace the entire panel with a new instance. -igor On Sat, May 30, 2009 at 3:11 AM, Antony Stubbs > wrote: We use AjaxLazyLoadingPanel, and want to be able to trigger the process of showing the indicator, and requesting the panels contents with a separate Ajax request, after the first complete render has finished. I.e. do the whole process over and over, without having to reload the entire page. I came up with this, which I was surprised actually worked first try :) gotta love Wicket. But perhaps there's a better way to do it ? A simpler way? Something I'm missing? I tried simply replacing the lazy loading panel with a new instance of one but that didn't seem to have an effect - I think the magic is in the adding a new AbstractAjaxBehaviour on each request. import org.apache.wicket.Component; import org.apache.wicket.ajax.AbstractDefaultAjaxBehavior; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel; import org.apache.wicket.markup.html.IHeaderResponse; /** * An {...@link AjaxLazyLoadPanel} extension which allows it to * {...@link #restart(AjaxRequestTarget)} the process of showing the loading * indicator, then load it's contents using a separate Ajax request. * * @author Antony Stubbs */ abstract public class ReloadingAjaxLazyPanel extends AjaxLazyLoadPanel { private static final long serialVersionUID = 1L; public ReloadingAjaxLazyPanel(String id) { super( id ); } /** * Causes the {...@link AjaxLazyLoadPanel} to re-display the loading indicator, * then in a seperate ajax request, get it's contents. * * @param target */ public void restart(AjaxRequestTarget target) { target.addComponent( this ); // replace panel contents with loading icon Component loadingComponent = getLoadingComponent( "content" ); this.replace( loadingComponent ); // add ajax behaviour to install call back loadingComponent.add( new AbstractDefaultAjaxBehavior() { private static final long serialVersionUID = 1L; @Override protected void respond(AjaxRequestTarget target) { Component component = ReloadingAjaxLazyPanel.this.getLazyLoadComponent( "content" ); ReloadingAjaxLazyPanel.this.replace( component.setRenderBodyOnly( true ) ); target.addComponent( ReloadingAjaxLazyPanel.this ); // setState((byte)2); } @Override public void renderHead(IHeaderResponse response) { super.renderHead( response ); response.renderOnDomReadyJavascript( getCallbackScript().toString() ); } } ); } } As you can see, there is duplication from AjaxLazyLoadingPanel - which would need re-factoring in order to remove. - no problem there. But also, because the setState method is private, I can't use that state system. Re
Re: page without class
yes,you can do it. > > On Fri, Nov 13, 2009 at 1:21 PM, tubin gen wrote: > > > can I create a page just with html and not write class ? I need some > > static > > html pages and writing java for those will be of no use . > > > > > > -- > Pedro Henrique Oliveira dos Santos >
Page expired in BEA, not Jetty
Hi, I'm having a weird problem deploying my Wicket application in BEA. I only manage to view the Application's HomePage and mounted BookMarkablePages. Whenever I try to move from one of these pages (including a failed login from the HomePage, which does not do 'setResponsePage', so it should load the HomePage again), I get a PageExpiredException. Using Jetty everyhting is fine. I'm using Wicket 1.3.5. Debugging the Wicket classes I found out the root of the problem is found in Session.getPage(final String pageMapName, final String path, final int versionNumber). The first difference I find when executing in Jetty and BEA is here (Session.class line 694) if (pageMapsUsedInRequest == null) { pageMapsUsedInRequest = new HashMap(3); } With Jetty the variable does not have a null value (it is an empty Map). With BEA, it is null. Then, the execution is the same until it gets to the point: (Session.class line 746) PageMapsUsedInRequestEntry newEntry = new PageMapsUsedInRequestEntry(); newEntry.thread = Thread.currentThread(); newEntry.requestCycle = RequestCycle.get(); pageMapsUsedInRequest.put(pageMap, newEntry); final String id = Strings.firstPathComponent(path, Component.PATH_SEPARATOR); Page page = pageMap.get(Integer.parseInt(id), versionNumber); if (page == null) { pageMapsUsedInRequest.remove(pageMap); pageMapsUsedInRequest.notifyAll(); } else { // attach the page now. page.onPageAttached(); touch(page); } return page; In Jetty, it effectively returns a Page instance, but in BEA keeps returning null. Is there any setting I'm not aware of that may be causing this strange behavior ? I use a custom session class (extending WebSession, and instanced by means of Application.newSession), but do not override any of its methods... Thanks! Xavier
Re: page without class
Only put then on top-level directory of a web module. http://java.sun.com/javaee/5/docs/tutorial/doc/bnadx.html#bnadz On Fri, Nov 13, 2009 at 1:21 PM, tubin gen wrote: > can I create a page just with html and not write class ? I need some > static > html pages and writing java for those will be of no use . > -- Pedro Henrique Oliveira dos Santos
Re: page without class
Have you tried? I'd guess it should just work. Regards, Linda tubin gen wrote: can I create a page just with html and not write class ? I need some static html pages and writing java for those will be of no use . Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.707 / Virusdatabase: 270.14.63/2500 - datum van uitgifte: 11/13/09 08:54:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
page without class
can I create a page just with html and not write class ? I need some static html pages and writing java for those will be of no use .
try wicket example
Hi, I tried auto complete example locally (under tomcat in windows), but isn't presented with any auto complete suggestions. Maybe the example losts data ? Who can help me? Thanks !
try wicket example 1.4.3
Hi, I tried auto complete example locally (under tomcat in windows), but isn't presented with any auto complete suggestions. Maybe the example losts data ? Who can help me? Thanks !
Re: Wicket Stuff Support and Interest
You do have to download the jars from somewhere at some point. You could use Maven with a local repo and nobody would require an external connection to build. You download the jars oce (like you must be dong now), and add them to your local repo (rather than checking them into source control or whatever you're doing now). -- Jeremy Thomerson http://www.wickettraining.com On Fri, Nov 13, 2009 at 3:58 AM, Lester Chua wrote: > Thanks for the reply. > > Due to network reasons, I can't add external dependencies to my project > that require connections to obtain code. So Maven was out as a build mgmt > tool for me. > I should be looking at the release tags on the svn repo right? Is that > current? > > Regards, > > Lester > > > > > > Jeremy Thomerson wrote: > >> A lot of the projects are abandoned test beds of code. But the releases >> for >> the ones that are released do not end up in SF releases anyway - they are >> released through Maven and end up in the Wicket Stuff maven repo. See the >> WS wiki for info on how to use the repo. >> >> -- >> Jeremy Thomerson >> http://www.wickettraining.com >> >> >> >> On Thu, Nov 12, 2009 at 9:51 PM, Lester Chua >> wrote: >> >> >> >>> Hi, >>> >>> I noticed that in wicket stuff. If I browse the source forge releases. >>> The >>> latest is at 2008 June (Wicket Jquery). What is the status there? It >>> seems >>> that there has been nothing going on in wicket stuff. Did the projects >>> move >>> into Wicket proper? Or did the extension interest died? >>> >>> Lester >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >>> >> >> >> > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: XML Serialization Wicket
No, I'm not dealing with PageSizes. I'm dealing to decrea stack tree depth in serialization. One way to achieve this converting changing DomSerializer to SAXSerializer. So is there any way to make it possible in wicket ? 2009/11/13 Uwe Schäfer > Pamir Erdem schrieb: > > > As you know, Wicket uses disk storage to save web pages by serializing >> them. >> PageMap and DiskPageStore classes are examples for it. Is there any way >> to >> change the serialization type from DOM Serialization to SAX >> Serialization >> in these classes ? If serialization of an object seralization tree depth >> is >> high what you have to do is just increasing the java argument Xss or >> changing the serialization method from DOM to SAX >> > > For debugging purposes in dev environments, once a serialized Page Size > exceeds a certain limit, we produce XML via XStream in order to be able to > look at it. > > Is this what you´re looking for? > > cu uwe > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Pamir Erdem
Re: XML Serialization Wicket
Pamir Erdem schrieb: As you know, Wicket uses disk storage to save web pages by serializing them. PageMap and DiskPageStore classes are examples for it. Is there any way to change the serialization type from DOM Serialization to SAX Serialization in these classes ? If serialization of an object seralization tree depth is high what you have to do is just increasing the java argument Xss or changing the serialization method from DOM to SAX For debugging purposes in dev environments, once a serialized Page Size exceeds a certain limit, we produce XML via XStream in order to be able to look at it. Is this what you´re looking for? cu uwe - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: XML Serialization Wicket
I would never guess that DiskPageStore should waste time producing xml... ** Martin 2009/11/13 Pamir Erdem : > Hi. > > As you know, Wicket uses disk storage to save web pages by serializing them. > PageMap and DiskPageStore classes are examples for it. Is there any way to > change the serialization type from DOM Serialization to SAX Serialization > in these classes ? If serialization of an object seralization tree depth is > high what you have to do is just increasing the java argument Xss or > changing the serialization method from DOM to SAX > > > Thanks > -- > Pamir Erdem > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Exception while testing cluster failover with Tomcat Session Replication
Hi, I am trying session replication with tomcat 6.0.16 and wicket 1.3.6 There is a load balancer in front of two servers. I noticed that, Within a page that is requested from server A, I stop server A and make a postback, request succeeds if that page is requested from server B before and fails if that page is never requested from server B before. The exception is: Attempt to access unknown request listener interface IActivePageBehaviorListenerorg.apache.wicket.WicketRuntimeException: Attempt to access unknown request listener interface IActivePageBehaviorListener Any ideas? Thanks, Onur
RE: Error on Websphere 6.1 for Wicket Application
Vinay, is the code working in WAS v6.1 even the sample hello world doesn't work on Websphere v6.1 --- On Fri, 11/13/09, Alex Rass wrote: From: Alex Rass Subject: RE: Error on Websphere 6.1 for Wicket Application To: users@wicket.apache.org Date: Friday, November 13, 2009, 3:22 AM It's not a problem. It's a warning. Just means that it's not optimized for production and you will see an ajax debug message in the UI. Everything will run perfectly fine. It's a setting to turn production mode on and off. By the time you write ANYTHING, you would have figured out how to turn it on/off ;) Usually you can do it through a setting in web.ini Google: wicket setting development production - Alex. -Original Message- From: vinay.karmar...@wipro.com [mailto:vinay.karmar...@wipro.com] Sent: Friday, November 13, 2009 1:26 AM To: users@wicket.apache.org Subject: Error on Websphere 6.1 for Wicket Application Hi, I am using Websphere 6.1 as App Server & Rational Application Developer environment for development of Wicket Application. I am getting the following error while trying to access the application. [11/12/09 10:34:24:033 IST] 0031 SystemErr R *** WARNING: Wicket is running in DEVELOPMENT mode. *** *** ^^^ *** *** Do NOT deploy to your live server(s) without changing this. *** *** See Application#getConfigurationType() for more information. *** [11/12/09 10:34:24:065 IST] 0031 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened incident stream file C:\Program Files\IBM\SDP70\runtimes\base_v61\profiles\AppSrv09\logs\ffdc\server1_1b 381b38_09.11.12_10.34.24_0.txt [11/12/09 10:34:24:393 IST] 0031 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\Program Files\IBM\SDP70\runtimes\base_v61\profiles\AppSrv09\logs\ffdc\server1_1b 381b38_09.11.12_10.34.24_0.txt [11/12/09 10:34:24:424 IST] 0031 SRTServletRes W WARNING: Cannot set status. Response already committed. [11/12/09 10:34:24:487 IST] 0031 SRTServletRes W WARNING: Cannot set header. Response already committed. Can anyone suggest any solution for this problem? Regards, Vinay Karmarkar Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
XML Serialization Wicket
Hi. As you know, Wicket uses disk storage to save web pages by serializing them. PageMap and DiskPageStore classes are examples for it. Is there any way to change the serialization type from DOM Serialization to SAX Serialization in these classes ? If serialization of an object seralization tree depth is high what you have to do is just increasing the java argument Xss or changing the serialization method from DOM to SAX Thanks -- Pamir Erdem
Re: Wicket Stuff Support and Interest
Thanks! Pierre Goupil wrote: Hello, In the release tags, you'll find wicketstuff-core-1.4.1. For more up to date code, you'll have to fall back to the trunk. Regards, Pierre On Fri, Nov 13, 2009 at 10:58 AM, Lester Chua wrote: Thanks for the reply. Due to network reasons, I can't add external dependencies to my project that require connections to obtain code. So Maven was out as a build mgmt tool for me. I should be looking at the release tags on the svn repo right? Is that current? Regards, Lester Jeremy Thomerson wrote: A lot of the projects are abandoned test beds of code. But the releases for the ones that are released do not end up in SF releases anyway - they are released through Maven and end up in the Wicket Stuff maven repo. See the WS wiki for info on how to use the repo. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Nov 12, 2009 at 9:51 PM, Lester Chua wrote: Hi, I noticed that in wicket stuff. If I browse the source forge releases. The latest is at 2008 June (Wicket Jquery). What is the status there? It seems that there has been nothing going on in wicket stuff. Did the projects move into Wicket proper? Or did the extension interest died? Lester - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Stuff Support and Interest
Hello, In the release tags, you'll find wicketstuff-core-1.4.1. For more up to date code, you'll have to fall back to the trunk. Regards, Pierre On Fri, Nov 13, 2009 at 10:58 AM, Lester Chua wrote: > Thanks for the reply. > > Due to network reasons, I can't add external dependencies to my project > that require connections to obtain code. So Maven was out as a build mgmt > tool for me. > I should be looking at the release tags on the svn repo right? Is that > current? > > Regards, > > Lester > > > > > > Jeremy Thomerson wrote: > >> A lot of the projects are abandoned test beds of code. But the releases >> for >> the ones that are released do not end up in SF releases anyway - they are >> released through Maven and end up in the Wicket Stuff maven repo. See the >> WS wiki for info on how to use the repo. >> >> -- >> Jeremy Thomerson >> http://www.wickettraining.com >> >> >> >> On Thu, Nov 12, 2009 at 9:51 PM, Lester Chua >> wrote: >> >> >> >>> Hi, >>> >>> I noticed that in wicket stuff. If I browse the source forge releases. >>> The >>> latest is at 2008 June (Wicket Jquery). What is the status there? It >>> seems >>> that there has been nothing going on in wicket stuff. Did the projects >>> move >>> into Wicket proper? Or did the extension interest died? >>> >>> Lester >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >>> >> >> >> > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Sans amis était le grand maître des mondes, Eprouvait manque, ce pour quoi il créa les esprits, Miroirs bienveillants de sa béatitude. Mais au vrai, il ne trouva aucun égal, Du calice du royaume total des âmes Ecume jusqu'à lui l'infinité. (Schiller, "l'amitié")
Re: Wicket Stuff Support and Interest
Thanks for the reply. Due to network reasons, I can't add external dependencies to my project that require connections to obtain code. So Maven was out as a build mgmt tool for me. I should be looking at the release tags on the svn repo right? Is that current? Regards, Lester Jeremy Thomerson wrote: A lot of the projects are abandoned test beds of code. But the releases for the ones that are released do not end up in SF releases anyway - they are released through Maven and end up in the Wicket Stuff maven repo. See the WS wiki for info on how to use the repo. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Nov 12, 2009 at 9:51 PM, Lester Chua wrote: Hi, I noticed that in wicket stuff. If I browse the source forge releases. The latest is at 2008 June (Wicket Jquery). What is the status there? It seems that there has been nothing going on in wicket stuff. Did the projects move into Wicket proper? Or did the extension interest died? Lester - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Error on Websphere 6.1 for Wicket Application
It's not a problem. It's a warning. Just means that it's not optimized for production and you will see an ajax debug message in the UI. Everything will run perfectly fine. It's a setting to turn production mode on and off. By the time you write ANYTHING, you would have figured out how to turn it on/off ;) Usually you can do it through a setting in web.ini Google: wicket setting development production - Alex. -Original Message- From: vinay.karmar...@wipro.com [mailto:vinay.karmar...@wipro.com] Sent: Friday, November 13, 2009 1:26 AM To: users@wicket.apache.org Subject: Error on Websphere 6.1 for Wicket Application Hi, I am using Websphere 6.1 as App Server & Rational Application Developer environment for development of Wicket Application. I am getting the following error while trying to access the application. [11/12/09 10:34:24:033 IST] 0031 SystemErr R *** WARNING: Wicket is running in DEVELOPMENT mode. *** *** ^^^*** *** Do NOT deploy to your live server(s) without changing this. *** *** See Application#getConfigurationType() for more information. *** [11/12/09 10:34:24:065 IST] 0031 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened incident stream file C:\Program Files\IBM\SDP70\runtimes\base_v61\profiles\AppSrv09\logs\ffdc\server1_1b 381b38_09.11.12_10.34.24_0.txt [11/12/09 10:34:24:393 IST] 0031 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\Program Files\IBM\SDP70\runtimes\base_v61\profiles\AppSrv09\logs\ffdc\server1_1b 381b38_09.11.12_10.34.24_0.txt [11/12/09 10:34:24:424 IST] 0031 SRTServletRes W WARNING: Cannot set status. Response already committed. [11/12/09 10:34:24:487 IST] 0031 SRTServletRes W WARNING: Cannot set header. Response already committed. Can anyone suggest any solution for this problem? Regards, Vinay Karmarkar Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org