HTML frame alternative to visualise external web-page

2012-03-23 Thread Walter Rugora
Hi there, I was wondering if I can avoid HTML frames. In my wicket page I'd like to have a section in which external web-page content is displayed. If that is possible, can someone please refer to an example? Thanks a lot!! Walter

CryptedUrlWebRequestCodingStrategy and bookmarkable urls

2012-03-23 Thread brazz
Hi, i want to encrypt my urls except the bookmarkable ones. my bookmarkable pages are mounted in the contructor of my Application class. In my Application class i have this code (copied from wicket wiki page): @Override protected IRequestCycleProcessor newRequestCycleProcessor() {

Re: AjaxTabbedPanel - how to get at the tabs..?

2012-03-23 Thread Andrea Del Bene
Hi, you should use getTabs passing the index of the desired tab. in the debugger I see the tabs member of my AjaxTabbedPanel containing three items. but myTabPanel.get(2) returns null... What is the correct way to get a ref to a tab inside a tabbed panel? TIA -- View this message in context:

Re: HTML frame alternative to visualise external web-page

2012-03-23 Thread Martin Grigorov
Hi, The best way is to use iframe - see InlineFrame component. You can also try with Include component, but it is more appropriate for including fragments of html (i.e. without html / body elements) On Fri, Mar 23, 2012 at 8:31 AM, Walter Rugora m...@sudus.eu wrote: Hi there, I was wondering

Re: CryptedUrlWebRequestCodingStrategy and bookmarkable urls

2012-03-23 Thread Martin Grigorov
Hi, At https://issues.apache.org/jira/browse/WICKET-4140 there is a attachment that does this for Wicket 1.5+. On Fri, Mar 23, 2012 at 10:42 AM, brazz alexander.li...@man.eu wrote: Hi, i want to encrypt my urls except the bookmarkable ones. my bookmarkable pages are mounted in the

Re: inferring locale from URL in 1.5

2012-03-23 Thread Martin Grigorov
Hi, Check http://www.wicket-library.com/wicket-examples/mappers/ - LocaleFirstMapper On Fri, Mar 23, 2012 at 2:04 AM, armhold armh...@gmail.com wrote: What's the cleanest way to set a user's locale based on the domainname of the URL of the request in 1.5?

Re: StyleSheetReference change between 1.4.19 and 1.4.20

2012-03-23 Thread Martin Grigorov
Hi, I think the reason is that org.apache.wicket.util.lang.Packages#absolutePath(String, String) has been improved to better calculate relative paths in packages. See org.apache.wicket.util.lang.PackagesTest and file a ticket if you think there is a place for improvement. On Thu, Mar 22, 2012 at

Re: Why authenticate method of WebSession is public?

2012-03-23 Thread Martin Grigorov
Hi, AuthenticatedWebSession is just an example. I guess WebSession#authenticate() is used in users' applications in the wild too. It is a bit late to change (reduce) its visibility. We try to avoid making API changes for no hard reason. But thanks for discussing this! On Thu, Mar 22, 2012 at

Re: CryptedUrlWebRequestCodingStrategy and bookmarkable urls

2012-03-23 Thread brazz
Thanks Martin for your reply! So what i understand is: using: *@Override protected IRequestCycleProcessor newRequestCycleProcessor() { return new WebRequestCycleProcessor() { protected IRequestCodingStrategy newRequestCodingStrategy() {

Re: CryptedUrlWebRequestCodingStrategy and bookmarkable urls

2012-03-23 Thread Martin Grigorov
Hi, I haven't used 1.4 for 2 years now... I cannot say what is wrong and how to achieve what you need there. I just showed you how to do that in Wicket 1.5. Use it if you can upgrade to 1.5 soon. On Fri, Mar 23, 2012 at 12:05 PM, brazz alexander.li...@man.eu wrote: Thanks Martin for your reply!

Re: HTML frame alternative to visualise external web-page

2012-03-23 Thread Walter Rugora
Dear Martin, thanks a lot for your response. I understand how to refer to wicket related pages, but how would I do this for an external web-page? I reckon this is a super basic question ... here is a newbie on the other line ;) Thanks for your help, Stephan On 23/03/12 19:00, Martin Grigorov

Re: HTML frame alternative to visualise external web-page

2012-03-23 Thread Martin Grigorov
Hi, Sorry for confusing you :-) Indeed org.apache.wicket.markup.html.link.InlineFrame is meant to load Wicket pages. But org.apache.wicket.markup.html.include.Include can load from external site. On Fri, Mar 23, 2012 at 12:57 PM, Walter Rugora m...@sudus.eu wrote: Dear Martin, thanks a lot

Re: HTML frame alternative to visualise external web-page

2012-03-23 Thread Walter Rugora
Thanks a lot Martin! Guess it is exactly what I need. Will try it later. Would be great to have a reference about the practical usage of all those wonderful wicket aspects. Hard to derive it from the class description. Thanks again, Walter On 23/03/12 21:08, Martin Grigorov wrote: Hi, Sorry

Re: HTML frame alternative to visualise external web-page

2012-03-23 Thread Martin Grigorov
Check the examples at http://www.wicket-library.com/wicket-examples/compref/ There you can see them in action and there is a description what they do. On Fri, Mar 23, 2012 at 1:40 PM, Walter Rugora m...@sudus.eu wrote: Thanks a lot Martin! Guess it is exactly what I need. Will try it later.

AjaxPagingNavigator does not scroll to top

2012-03-23 Thread wicket
Hello, I use an AjaxPagingNavigator for clicking through my results. I have a list and the AjaxPagingNavigator below it. When I click on the AjaxPagingNavigator, the next results are displayed but the scrollbar of the browser stays at the bottom of the page. Is that a normal behavior? Can I

Re: AjaxPagingNavigator does not scroll to top

2012-03-23 Thread Martin Grigorov
Hi, Yes, it is normal. This is left to the application to decide whether it wants to scroll or not. You can use ajaxRequestTarget.appendJavaScript(scrollTo(0. 0)) to accomplish that. On Fri, Mar 23, 2012 at 3:13 PM, wic...@faustas.de wrote: Hello, I use an AjaxPagingNavigator for clicking

Re: WebResource in Wicket 1.5

2012-03-23 Thread Decebal Suiu
Hi I have the same problem. I changed WebResource to ByteArrayResource but I don't know how I can migrate the following lines: public void onResourceRequested() { createJsonResource(); // TODO wicket 1.5 // jsonResource.onResourceRequested(); } No method

Re: java.util.Date cannot be cast to java.sql.Date

2012-03-23 Thread Alok Pathak
Kindly Help -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/java-util-Date-cannot-be-cast-to-java-sql-Date-tp4484703p4498860.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: WebResource in Wicket 1.5

2012-03-23 Thread Martin Grigorov
ByteArrayResource resource = ... path = urlFor(new ResourceRequestHandler(resource)) On Fri, Mar 23, 2012 at 3:45 PM, Decebal Suiu decebal.s...@asf.ro wrote: Hi I have the same problem. I changed WebResource to ByteArrayResource but I don't know how I can migrate the following lines: public

Re: WebResource in Wicket 1.5

2012-03-23 Thread Decebal Suiu
Thanks Martin for the your prompt response. In constructor of OpenFlashChart I have these lines: jsonResource = new ByteArrayResource(text/plain, getJsonData().getBytes()); CharSequence dataPath = urlFor(new ResourceRequestHandler(jsonResource, null)); System.out.println(*** + dataPath);

attributeappender not rendered / processed

2012-03-23 Thread nino martinez wael
Hi Im wondering what could cause a attributeappender not to be rendered? One thing I guess would be if the component are not enabled.. heres my code: AttributeAppender attributeAppender = AttributeModifier.append( class, new ModelString(getCssClass()));

Re: WebResource in Wicket 1.5

2012-03-23 Thread Martin Grigorov
Right. This will work only for static resources. Sorry. ResourceReference ref = new ResourceReference(jsonRes) { public IResource getResource() {return resource;} } urlFor(new ResourceReferenceHandler(reference)) On Fri, Mar 23, 2012 at 4:29 PM, Decebal Suiu decebal.s...@asf.ro wrote: Thanks

RE: attributeappender not rendered / processed

2012-03-23 Thread Michal Wegrzyn
Hi Nino, Check void org.apache.wicket.AttributeModifier.replaceAttributeValue(Component component, ComponentTag tag). Probably component is not enabled or value is null. Debug if there is a need. Best regards, Michal Wegrzyn -Original Message- From: nino martinez wael

AJAX Requests Too Slow, Have a Delay on Component Refresh

2012-03-23 Thread eugenebalt
In our Wicket app, we see that AJAX actions (for example, click a button to show an additional panel under it with new components) take a few seconds. The actions work, but there is a small delay, and the cursor doesn't change into an hourglass to indicate that anything is going on, it remains as

RE: attributeappender not rendered / processed

2012-03-23 Thread nino martinez wael
Seems it never hits that for that appender... On Mar 23, 2012 4:11 PM, Michal Wegrzyn michal.wegr...@onior.com wrote: Hi Nino, Check void org.apache.wicket.AttributeModifier.replaceAttributeValue(Component component, ComponentTag tag). Probably component is not enabled or value is null.

Re: WebResource in Wicket 1.5

2012-03-23 Thread Martin Grigorov
you can give different names (constructor parameter) for the ResourceReference's On Fri, Mar 23, 2012 at 5:12 PM, Decebal Suiu decebal.s...@asf.ro wrote: Works but I have a question: The json data path is wicket/resource/org.apache.wicket.Application/jsonRes and I think that if I have many

RE: attributeappender not rendered / processed

2012-03-23 Thread Michal Wegrzyn
Are you using ajax? Maybe you are adding appender but form container is not added to the ajax target? Best regards, Michal Wegrzyn -Original Message- From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] Sent: Friday, March 23, 2012 16:20 To: users@wicket.apache.org

java.io.UnsupportedEncodingException: ISO8859_10

2012-03-23 Thread andretampold
Hello dear Wicket developers! We have thousands of log lines of UnsupportedEncodingException: ISO8859_10. What can be done to elliminate this log entry? Stack Trace added. Please help! We are using Wicket 1.4.19. Thank you very much in advance for any kind of information/help! -- STACKTrace from

Re: AJAX Requests Too Slow, Have a Delay on Component Refresh

2012-03-23 Thread Josh Kamau
Use indicatorAjax* components On 23 Mar 2012 18:19, eugenebalt eugeneb...@yahoo.com wrote: In our Wicket app, we see that AJAX actions (for example, click a button to show an additional panel under it with new components) take a few seconds. The actions work, but there is a small delay, and the

Re: Override BrowserInfoPage

2012-03-23 Thread Adam Gray
You can provide your own markup for BrowserInfoPage if you place it in the correct package within your application (org.apache.wicket.markup.html.pages? I believe). From there you can replace the text with a wicket:message that you can translate. On Fri, Mar 23, 2012 at 12:47 PM, sudeivas

Homepage runs 2 times if I mount it as /

2012-03-23 Thread Paolo
I made bookmarkable the HomePage: But it is executed two times!!! Infact it make me crazy! I put an System.out.printf to check it in the console log. Because the page in the browser look like to load only one time, but in the console I can read 2 times printf line! If I mount it as something

Re: Homepage runs 2 times if I mount it as /

2012-03-23 Thread Jeff Schneller
I may be wrong but you don't need to mount the homepage which is why it is being executed twice. On Mar 23, 2012, at 1:36 PM, Paolo irresistible...@gmail.com wrote: I made bookmarkable the HomePage: But it is executed two times!!! Infact it make me crazy! I put an System.out.printf to

Re: attributeappender not rendered / processed

2012-03-23 Thread nino martinez wael
Yes are using ajax, but it's the same when not using ajax.. 2012/3/23 Michal Wegrzyn michal.wegr...@onior.com Are you using ajax? Maybe you are adding appender but form container is not added to the ajax target? Best regards, Michal Wegrzyn -Original Message- From: nino

Eclipse-IDE Plugin Wicket Bench not existing (any more)?

2012-03-23 Thread Ben Stover
When I go to page http://wicket.apache.org/learn/ides.html and click on Wicket Bench link for Eclipse then this link goes to nowhere. Is this project out of date/closed? Ben - To unsubscribe, e-mail:

Is there a GUI Builder for Wicket which generates Wicket java code?

2012-03-23 Thread Ben Stover
Sorry for this newbie question. From what I read so far Wicket users have to write at first java code which leads to a GUI front end. Is there a GUI builder tool for the opposite direction? I would like to click and design visually (!) a GUI and let this GUI builder generate later the

Re: HTML frame alternative to visualise external web-page

2012-03-23 Thread Walter Rugora
Thanks Martin, I gave it a go and it works great with static web-pages. Is there a way that the external stylesheets are considered? On another note I tried to use 'include' on dynamic pages as well. Works for some but not for all of them. But I'm unsure what the reason with this is. E.g. the