Re: renderHead() / wicket:head page / component order

2012-07-31 Thread Emond Papegaaij
On Monday 30 July 2012 18:18:46 Pierre Goiffon wrote: But one more question though : why rendering wicket:head (in the markup file) contributions before renderHead() (in the java file) contributions ? Seems to me that what you'll put in wicket:head will certainly be some king of static code,

Re: FormTester - wicket 1.6

2012-07-31 Thread Martin Grigorov
Show us some code. On Tue, Jul 31, 2012 at 1:50 AM, Douglas Ferguson the...@gmail.com wrote: We are trying to write some tests using FormTester. We are setting values on a text field and then submitting the form. The form is erroring out because the field is required. Does anybody have any

Re: DataTable's accessibility use of the id and headers attributes to table cells so screen readers can identify the cells that relate to the headers for blind people

2012-07-31 Thread Martin Grigorov
Hi, Most of the default components do not support well ARIA or similar accessibility specifications. Patches are welcome, as always! On Tue, Jul 31, 2012 at 1:57 AM, Paul Bors p...@bors.ws wrote: Hey guys, I've noticed during a scan of our webapp in http://achecker.ca that the Wicket

Editing list in Dataview

2012-07-31 Thread kshitiz
Hi, Right now I am using listview but I am considering to look after dataview where data is fetched from database everytime you change page. So, do we have to modify our query to get the required data to be displayed in the page? I mean right now I am retrieving all data from database. Also,

Re: Link is disabled after Ajax request

2012-07-31 Thread Martin Grigorov
Hi, On Mon, Jul 30, 2012 at 5:09 PM, tmaus loum...@yahoo.com wrote: Hi there .. Setup a panel that covers both, a facebook-login button and a user state sensitive link. The link should be disabled unless we find a user in the session. The Ajax FB link looks like: AjaxLink fbLink = new

Re: Link is disabled after Ajax request

2012-07-31 Thread tmaus
Thanks for your response, Martin ... I have tried to tweak things a bit, replace the Link by an AjaxLink, overrode internal methods and did some things things. The fb login button as well as the link to me admin area belong to a panel. The fb login button fires an async call to fb. The link

Re: Link is disabled after Ajax request

2012-07-31 Thread Martin Grigorov
Do you see the log statements logged after successful authentication with FB ? Do you re-render the whole page after authentication or just some components (AjaxRequestTarget#add(aComponent)) ? On Tue, Jul 31, 2012 at 12:01 PM, tmaus loum...@yahoo.com wrote: Thanks for your response, Martin ...

Re: Link is disabled after Ajax request

2012-07-31 Thread tmaus
I see all log statements. All methods are properly accessed. I tested it both ways: 1. A static link = complete rerendering of the page 2. AjaxLink = partially rerendering of the page In both occasions the outcome is the same. Initial call renders link properly Successive call renders link

Re: FormTester - wicket 1.6

2012-07-31 Thread Douglas Ferguson
I got it to work using this: tester.startComponentInPage(tester.getComponentFromLastRenderedPage(myPanel)); Does this ring any bells? Martin do you want to see the test code or the app code as well? The app code uses alot of custom components, so I'd prolly want to figure out tease things

ComponentNotFoundException when replace a fragment

2012-07-31 Thread Alex66955
Hey, I have some issues when I replace a fragment in an ajax calback function. There is a parent class and a child class. The parent create an AbstractAjaxTimerBehavior and call in it the fragment with the child class. In the child class there is also an AbstractAjaxTimerBehavior to process some

Re: ComponentNotFoundException when replace a fragment

2012-07-31 Thread Bertrand Guay-Paquet
Hi Alex, Your stack trace did not show up on the mailing list. Please also show a snippet showing what throws the exception. Bertrand On 31/07/2012 10:44 AM, Alex66955 wrote: Hey, I have some issues when I replace a fragment in an ajax calback function. There is a parent class and a child

Re: FormTester - wicket 1.6

2012-07-31 Thread Martin Grigorov
Hi, On Tue, Jul 31, 2012 at 5:26 PM, Douglas Ferguson the...@gmail.com wrote: I got it to work using this: tester.startComponentInPage(tester.getComponentFromLastRenderedPage(myPanel)); Does this ring any bells? No. This just starts a panel, i.e. render it. There is nothing about form

Re: ComponentNotFoundException when replace a fragment

2012-07-31 Thread Alex66955
Sorry. In the wicket user forum the stack trace is shown (perhaps the RAW-TAG). I use wicket 6.0.0-beta3 trace: Last cause: Could not find component 'mainContentFragmens:eagrPanel' on page 'class com.vipco.spracherweiterung.CurrentDisplayPage

Re: Where to add javascript in html pages which follow inheritance relationship.

2012-07-31 Thread kshitiz
Please help me out here...for a child page..how would I add javascript in its head. I have tried out wicket:head with head tag in base page but it is not working out... -- View this message in context:

Re: ComponentNotFoundException when replace a fragment

2012-07-31 Thread Bertrand Guay-Paquet
With the stack trace, I can only see that the listener (the object responsible for handling a request) componentmainContentFragmens:eagrPanel is not found in the current page. Perhaps someone else can answer with only this but I would need code snippets showing how you manipulate your

Re: Where to add javascript in html pages which follow inheritance relationship.

2012-07-31 Thread Alec Swan
Try the following and let us know what happens when Page 2 is rendered by Wicket. Page1: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en

RE: Where to add javascript in html pages which follow inheritance relationship.

2012-07-31 Thread Paul Bors
From what I remember wicket:head/ is the way to go! https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%2527sXHTMLtag s-Elementwicket%253Ahead I believe this tag will appends what its surrounding to the bottom of already existing head tag contents on the page. For your child page you