Re: unit testing cookies after redirect

2011-11-08 Thread Martin Grigorov
On Wed, Nov 9, 2011 at 12:42 AM, kamiseq  wrote:
> ok, thanks for that.
>
> I have one small question that is bugging me for a while.
>
> What would be the difference between throwing exception or
> setResponsePage(pageClass);??
> I ve found somewhere that I should always throw RestartException, but
> I see setResponsePage so many times that Im confused.

The exception stops the execution of your code and immediately
replaces the current IRequestHandler while setResponsePage() just
schedules another IRequestHandler to be executed after the current one
and continues executing your code.

>
> pozdrawiam
> Paweł Kamiński
>
> kami...@gmail.com
> pkaminski@gmail.com
> __
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Advice wanted about polished component set with Wicket

2011-11-08 Thread Martin Grigorov
Hi David,

I'm interested in your work.
Another guy also did something at https://github.com/vijaykiran/wicketstuff-dojo

On Tue, Nov 8, 2011 at 8:36 PM, David Berkman  wrote:
> I've had excellent success wrapping most of Dojo with Wicket, and it
> would not be hard to complete the rest. There's a wicket-dojo project
> out there, but it didn't seem to be active, so I just started in on my
> own. Dojo is a comprehensive, well laid out project (always had a good
> concept of namespace and packaging, unlike most other javascript
> frameworks), with decent documentation. Browsers have a tendency to fire
> events in different orders, and when you start adding your own 'onxxx'
> functions, you can get unexpected behavior. My first guess would be that
> this is the cause of your problems in IE, as it seems to be particularly
> random in this regard. Dojo has its own, extensive, event framework,
> that corrects for these issues. If you want to look at my code, let me
> know and I'll send it your way.
>
> David
>
> -Original Message-
> From: James Stewart [mailto:james.stewart...@gmail.com]
> Sent: Tuesday, November 08, 2011 4:58 AM
> To: users@wicket.apache.org
> Subject: Advice wanted about polished component set with Wicket
>
> Hi all,
>
> We have been using Wicket for some time now with our home grown html &
> some wicket components. However, there are some complaints that our
> components and pages look a bit bland.
>
> This has prompted us to look around at various alternatives. We tried
> using plain jQuery with wicket and found some odd behaviour here and
> there on Internet Explorer when using Ajax, which we never got to the
> bottom of. If I remember correctly it was the calendar appearing on
> first render which then disappeared and it would never reappear again.
>
> This has lead us to reassess our component situation. Having looked at
> the wiQuery demo site it doesn't fill me with confidence. Perhaps it is
> just the demo site that does not work well and is not an indication of
> the underlying library.
>
> The next library we are considering is Visural Wicket. It looks
> promising but it only seem to have one developer working on it.
>
> Otherwise we would probably look to something like YUI of which I have
> some experience but not with Wicket. It would take some investigating
> though to establish if it would have similar problems that we
> encountered with JQuery.
>
> Any advice or real world experience will be appreciated.
>
> Thanks,
> James.
>
> -
> 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
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Icefaces

2011-11-08 Thread Jeremy Thomerson
On Wed, Nov 9, 2011 at 12:17 AM, saraswathi wrote:

> I am new to the Icefaces web technologies i have some problem to generate
> the
> expandable datatable in icefaces can u send how to generate expand
> datatable
> in icefaces with complete example
>

This is a *Wicket* mailing list.  Are you dealing with Icefaces?  Or
Wicket?  Or an integration of both?

-- 
Jeremy Thomerson
http://wickettraining.com
*Need a CMS for Wicket?  Use Brix! http://brixcms.org*


Icefaces

2011-11-08 Thread saraswathi
I am new to the Icefaces web technologies i have some problem to generate the
expandable datatable in icefaces can u send how to generate expand datatable
in icefaces with complete example

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Icefaces-tp4018757p4018757.html
Sent from the Users forum 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



Icefaces

2011-11-08 Thread saraswathi
I am new to the Icefaces web tchnologies i have some problem to generate the 
expand  datatable in icefaces.
can u send how to generate expandable datatable in icefaces with complete
example.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Icefaces-tp4018750p4018750.html
Sent from the Users forum 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: Vanishing Markup

2011-11-08 Thread anantasthana
Wow that was a really silly mistake i made. Thanks for the help that worked.
cant believe i couldnt figure it out
thanks again

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Vanishing-Markup-tp4017788p4018746.html
Sent from the Users forum 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: Vanishing Markup

2011-11-08 Thread Stanislav Savulchik

Hi,

You are missing  tags in markup. Most likely the browser 
tries to fix invalid markup by removing


On 11/09/2011 05:21 AM, anantasthana wrote:

I have a form that i make as an inner class of a panel.
In the Page i have a table containing the form components.
When the form renders the form components show up but the markup for the
table vanishes.
I would appreciate any help on this

The Java code can be found athttp://pastebin.com/zrcXiDXD
and the HTML athttp://pastebin.com/gerxEXKs

Thank you every one for the great answers and help you have been providing

--
View this message in 
context:http://apache-wicket.1842946.n4.nabble.com/Vanishing-Markup-tp4017788p4017788.html
Sent from the Users forum 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: Use Wicket 1.5 to serve "text/xml" content type (Rest-style)

2011-11-08 Thread aaaa0441
Thanks, Lim. That does the trick!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Use-Wicket-1-5-to-serve-text-xml-content-type-Rest-style-tp4018490p4018601.html
Sent from the Users forum 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: Use Wicket 1.5 to serve "text/xml" content type (Rest-style)

2011-11-08 Thread TH Lim
try reversing the statements in configureResponse(...) body 


@Override
protected void configureResponse(WebResponse response) {
super.configureResponse(response);
response.setContentType("text/xml");

}


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Use-Wicket-1-5-to-serve-text-xml-content-type-Rest-style-tp4018490p4018575.html
Sent from the Users forum 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



Use Wicket 1.5 to serve "text/xml" content type (Rest-style)

2011-11-08 Thread aaaa0441
Hi yo'all,

I did quite a lot Googling and searched this forum, but still did not find
what I was looking for.
Basically I need to create pages that respond with xml content with
"text/xml" content-type.


In some posts, Igor suggested to overwrite "configureResponse" method. So I
tried the following

@Override
protected void configureResponse(WebResponse response) {
response.setContentType("text/xml");
super.configureResponse(response);
}

which does not work. The page response's content-type is still "text/html".


I also tried to overwrite "getMarkupType" method, as shown here

@Override
public MarkupType getMarkupType() {
return new MarkupType("xml", MarkupType.XML_MIME);
}

which also does not work and throws
"org.apache.wicket.markup.MarkupNotFoundException: Can not determine Markup.
Component is not yet connected to a parent. [Page class = SomePage, id = 3,
render count = 1]".


One user who was asking questions on this forum created the following
article, which could serve my purpose.

http://blog.brunoborges.com.br/2008/11/restful-web-services-with-wicket.html

So I migrated his code to Wicket 1.5, as shown below.

import org.apache.wicket.Component;
import org.apache.wicket.behavior.Behavior;
import org.apache.wicket.markup.MarkupType;
import org.apache.wicket.markup.html.WebPage;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * Created by IntelliJ IDEA.
 * User: Ma Ding
 * Date: 11/9/11
 * Time: 9:46 AM
 */
public class RestXmlPage extends WebPage {

public RestXmlPage() {
setStatelessHint(true);
}

private CharSequence getXML() {
return "<12>round n round";
}

@Override
protected void onRender() {
try {
PrintWriter pw = new PrintWriter(((HttpServletResponse)
getResponse().getContainerResponse()).getOutputStream());
pw.write(getXML().toString());
pw.close();
} catch (IOException e) {
e.printStackTrace();
}
}

@Override
public MarkupType getMarkupType() {
return new MarkupType("xml", MarkupType.XML_MIME);
}

@Override
public final boolean hasAssociatedMarkup() {
return false;
}

@Override
public final Component add(Behavior... behaviors) {
throw new UnsupportedOperationException(
"WebServicePage does not support IBehaviours");
}
}

But this page also throws "org.apache.wicket.markup.MarkupNotFoundException:
Can not determine Markup. Component is not yet connected to a parent."
exception.


Could anyone spare some time and help me with this?
Thanks a lot!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Use-Wicket-1-5-to-serve-text-xml-content-type-Rest-style-tp4018490p4018490.html
Sent from the Users forum 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: Spring secury + auth-roles authentication and authorization: access denied

2011-11-08 Thread Andrew Geery
See this:

http://apache-wicket.1842946.n4.nabble.com/Acegi-and-Wicket-auth-roles-td1846051.html

I would be willing to bet the problem is the order of your filter-mappings
in the web.xml -- Spring Security has to be first.

Andrew

On Tue, Nov 8, 2011 at 8:05 PM, James Carman
wrote:

> Take a look at wicketopia's example app.  It has spring security
> integration.
>
> Sent from tablet device.  Please excuse typos and brevity.
> On Nov 7, 2011 11:24 AM, "massizigao"  wrote:
>


Re: Spring secury + auth-roles authentication and authorization: access denied

2011-11-08 Thread James Carman
Take a look at wicketopia's example app.  It has spring security
integration.

Sent from tablet device.  Please excuse typos and brevity.
On Nov 7, 2011 11:24 AM, "massizigao"  wrote:


Custom Wicket Accordion Panel using ExtJS

2011-11-08 Thread michen
I have found that there are some custom Wicket accordion panel based on DoJo,
Prototype, YUI javascript framework, do we have a custom wicket accordion
component based on ExtJS?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Custom-Wicket-Accordion-Panel-using-ExtJS-tp4018173p4018173.html
Sent from the Users forum 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: unit testing cookies after redirect

2011-11-08 Thread kamiseq
ok, thanks for that.

I have one small question that is bugging me for a while.

What would be the difference between throwing exception or
setResponsePage(pageClass);??
I ve found somewhere that I should always throw RestartException, but
I see setResponsePage so many times that Im confused.

pozdrawiam
Paweł Kamiński

kami...@gmail.com
pkaminski@gmail.com
__

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Vanishing Markup

2011-11-08 Thread anantasthana
I have a form that i make as an inner class of a panel.
In the Page i have a table containing the form components.
When the form renders the form components show up but the markup for the
table vanishes.
I would appreciate any help on this

The Java code can be found at http://pastebin.com/zrcXiDXD
and the HTML at http://pastebin.com/gerxEXKs

Thank you every one for the great answers and help you have been providing

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Vanishing-Markup-tp4017788p4017788.html
Sent from the Users forum 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: Closing modal window with keyboard

2011-11-08 Thread Andrea Del Bene
I don't think there something ready-to-use to do this. You can try 
implementing this with JavaScript, intercepting the right keyPress event 
and closing the modal window. This last code can be obtained from method 
ModalWindow.getCloseJavacriptInternal

Hi,

Is there a way to close modal window with a keyboard shortcut?

Thanks
Anna




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Issue with Busy Indicator and Ajax Pre/PostCall Handlers: Page Redirect

2011-11-08 Thread eugenebalt
I would appreciate any advice on the following:

I followed the example of a "generic busy indicator"
https://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html

This is a 'busy indicator' which shows "Loading..." from the time an Ajax
action starts (preCallHandler) to the time an Ajax action ends
(postCallHandler).

My issue is that my Ajax action involves a Page-Redirect, so I lose the
"Loading..." banner.

Here's what I need:
1) The user clicks an Ajax button on Page 1.
2) This Ajax action is to *redirect* to Page 2.
3) On Page 2, I need to display the "Loading..." indicator, until the Ajax
action ends.

So the Ajax start/stop is not on the same page. And in fact, I only need to
display "Loading..." on Page 2, but BEFORE any of its rendering is done.

Any ideas on how to achieve this? Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Issue-with-Busy-Indicator-and-Ajax-Pre-PostCall-Handlers-Page-Redirect-tp4017387p4017387.html
Sent from the Users forum 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: Migrating a ResourceStreamRequestTarget to a ResourceStreamRequestHandler

2011-11-08 Thread hfriederichs
In adddition: it works fine in IE8!
I'm using firefox 8.0;
Chrome 11.0.696.71: same problem as Firefox...


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Migrating-a-ResourceStreamRequestTarget-to-a-ResourceStreamRequestHandler-tp3998969p4017378.html
Sent from the Users forum 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: Migrating a ResourceStreamRequestTarget to a ResourceStreamRequestHandler

2011-11-08 Thread hfriederichs
I will try these suggestions, but I't is quite frustrating that migrating
such a simple function causes so much problems.
In the meanwhile, I read the improvements in the caching mechanisms of
Wicket 1.5 on 
https://cwiki.apache.org/WICKET/caching-in-wicket-15.html

It says:
/Caching is uniformly disabled now by sending the following HTTP response
headers:/
So I tried:

HttpServletResponse response  =
(HttpServletResponse)getResponse().getContainerResponse();
response.addHeader("Pragma", "no-cache");
response.addHeader("Cache-Control", "no-cache, no-store");
response.addHeader("Expires", "Thu, 01 Jan 1970 00:00:00 GMT");

at various places.

I also put
((WebResponse) getResponse()).disableCaching(); 
in the body of the onClick,

But Firefox is still caching like a madman!!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Migrating-a-ResourceStreamRequestTarget-to-a-ResourceStreamRequestHandler-tp3998969p4017233.html
Sent from the Users forum 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



Closing modal window with keyboard

2011-11-08 Thread Anna Simbirtsev
Hi,

Is there a way to close modal window with a keyboard shortcut?

Thanks
Anna


RE: Advice wanted about polished component set with Wicket

2011-11-08 Thread David Berkman
I've had excellent success wrapping most of Dojo with Wicket, and it
would not be hard to complete the rest. There's a wicket-dojo project
out there, but it didn't seem to be active, so I just started in on my
own. Dojo is a comprehensive, well laid out project (always had a good
concept of namespace and packaging, unlike most other javascript
frameworks), with decent documentation. Browsers have a tendency to fire
events in different orders, and when you start adding your own 'onxxx'
functions, you can get unexpected behavior. My first guess would be that
this is the cause of your problems in IE, as it seems to be particularly
random in this regard. Dojo has its own, extensive, event framework,
that corrects for these issues. If you want to look at my code, let me
know and I'll send it your way.

David

-Original Message-
From: James Stewart [mailto:james.stewart...@gmail.com] 
Sent: Tuesday, November 08, 2011 4:58 AM
To: users@wicket.apache.org
Subject: Advice wanted about polished component set with Wicket

Hi all,

We have been using Wicket for some time now with our home grown html &
some wicket components. However, there are some complaints that our
components and pages look a bit bland.

This has prompted us to look around at various alternatives. We tried
using plain jQuery with wicket and found some odd behaviour here and
there on Internet Explorer when using Ajax, which we never got to the
bottom of. If I remember correctly it was the calendar appearing on
first render which then disappeared and it would never reappear again.

This has lead us to reassess our component situation. Having looked at
the wiQuery demo site it doesn't fill me with confidence. Perhaps it is
just the demo site that does not work well and is not an indication of
the underlying library.

The next library we are considering is Visural Wicket. It looks
promising but it only seem to have one developer working on it.

Otherwise we would probably look to something like YUI of which I have
some experience but not with Wicket. It would take some investigating
though to establish if it would have similar problems that we
encountered with JQuery.

Any advice or real world experience will be appreciated.

Thanks,
James.

-
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: How to run a JavaScript function from Form Constructor in Wicket

2011-11-08 Thread David Berkman
Add a Behavior, mark the behavior temporary (setTemporary(true)), and
override the Behavior's renderHead (Component component, IHeaderResponse
response) method, and call response.renderJavascript(). If you want the
JS function to go off every time the component is rendered, don't mark
the behavior as temporary.

David

-Original Message-
From: eugenebalt [mailto:eugeneb...@yahoo.com] 
Sent: Tuesday, November 08, 2011 10:16 AM
To: users@wicket.apache.org
Subject: How to run a JavaScript function from Form Constructor in
Wicket

In my Form Constructor, I need to run a JS function. Is there any way to
do it?

Thanks

--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-run-a-JavaScript-funct
ion-from-Form-Constructor-in-Wicket-tp4016957p4016957.html
Sent from the Users forum 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: How to run a JavaScript function from Form Constructor in Wicket

2011-11-08 Thread Martin Grigorov
See http://www.mozilla.org/rhino/

On Tue, Nov 8, 2011 at 8:15 PM, eugenebalt  wrote:
> In my Form Constructor, I need to run a JS function. Is there any way to do
> it?
>
> Thanks
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/How-to-run-a-JavaScript-function-from-Form-Constructor-in-Wicket-tp4016957p4016957.html
> Sent from the Users forum 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
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Validating HTML 4

2011-11-08 Thread Martin Grigorov
Hi,

The problem is that there are several specifications and all of them
expect different output.
We try to stick to HTML5 because this is the future.

See below.

On Tue, Nov 8, 2011 at 5:17 PM, Pierre Goiffon  wrote:
> Hello,
>
> I'm working as a developper for a software company that build some products
> using Wicket 1.4 (1.4.17 for the moment being).
>
> I'm trying to improve accessibility in our online survey product. The first
> thing I did was to check our pages with the W3C validator
> (http://validator.w3.org), as it's the first step to go on.
>
> The web pages are sent with an html strict doctype with url : indeed we have
> no interest in using XHTML as those pages will be sent over the web so to
> any king of user agents, and don't want to deal with all the things you have
> to care about when sending XHTML in text/html to older browser (like the
> recommandation C appendix).
>
> I noticed some problems that are caused by Wicket, mainly because it works
> in the xml way. As I can't see any mean to override those behaviors I'm
> asking here for any idea :) I looked at the 1.4.19 sources but can't see
> improvements on these subjects.
>
> Here are the different problems I saw :
>
> - When using ResourceReference the link tags are closed in the xhtml way :
> . Should be  in HTML.
> It seems to be hard coded in HeaderResponse#renderCSSReference()

You can use 
org.apache.wicket.Application.setHeaderResponseDecorator(IHeaderResponseDecorator)
to setup custom HeaderResponse and modify this.

>
> - In Form components Wicket adds hidden inputs. They are also closed in the
> xhtml way. Seems to be hard coded in Form#onComponentTagBody() and
> Form#appendDefaultButtonField().

none of these is final. you can override them

>
> - DataTable : a SPAN is always added in the TD and TH. For lots of reasons
> we need to insert DIV (block level) elements in the cells of a custom
> DataTable based component, and so the html hierarchy looks like :
> TH > SPAN > DIV > ...
> TD > SPAN > DIV > ...
> It's not valid to have a block level element inside an inline one.
> I can't see how to change those span to div (DataTable.html and
> HeadersToolbar.html).If it's not possible to get rid of that extra html
> container in that wicket component, would it be at least ok to change it to
> a div element ?

Override DataTable component and provide your own MyDataTable.html.
The .java code will just call super constructors.

>
> - DataTable : the TFOOT node is always sent to the client, even if it's
> empty. In that last case, the html code is invalid in html.

I think this is improved in 1.5.x

>
> Thanks for your answers !
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Validating HTML 4

2011-11-08 Thread Pierre Goiffon

Hello,

I'm working as a developper for a software company that build some 
products using Wicket 1.4 (1.4.17 for the moment being).


I'm trying to improve accessibility in our online survey product. The 
first thing I did was to check our pages with the W3C validator 
(http://validator.w3.org), as it's the first step to go on.


The web pages are sent with an html strict doctype with url : indeed we 
have no interest in using XHTML as those pages will be sent over the web 
so to any king of user agents, and don't want to deal with all the 
things you have to care about when sending XHTML in text/html to older 
browser (like the recommandation C appendix).


I noticed some problems that are caused by Wicket, mainly because it 
works in the xml way. As I can't see any mean to override those 
behaviors I'm asking here for any idea :) I looked at the 1.4.19 sources 
but can't see improvements on these subjects.


Here are the different problems I saw :

- When using ResourceReference the link tags are closed in the xhtml way 
: . Should be  in HTML.

It seems to be hard coded in HeaderResponse#renderCSSReference()

- In Form components Wicket adds hidden inputs. They are also closed in 
the xhtml way. Seems to be hard coded in Form#onComponentTagBody() and 
Form#appendDefaultButtonField().


- DataTable : a SPAN is always added in the TD and TH. For lots of 
reasons we need to insert DIV (block level) elements in the cells of a 
custom DataTable based component, and so the html hierarchy looks like :

TH > SPAN > DIV > ...
TD > SPAN > DIV > ...
It's not valid to have a block level element inside an inline one.
I can't see how to change those span to div (DataTable.html and 
HeadersToolbar.html).If it's not possible to get rid of that extra html 
container in that wicket component, would it be at least ok to change it 
to a div element ?


- DataTable : the TFOOT node is always sent to the client, even if it's 
empty. In that last case, the html code is invalid in html.


Thanks for your answers !

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Advice wanted about polished component set with Wicket

2011-11-08 Thread Ernesto Reinaldo Barreiro
Can you examples of the components you need?

Regards,

Ernesto

On Tue, Nov 8, 2011 at 1:57 PM, James Stewart
 wrote:
> Hi all,
>
> We have been using Wicket for some time now with our home grown html & some
> wicket components. However, there are some complaints that our components
> and pages look a bit bland.
>
> This has prompted us to look around at various alternatives. We tried using
> plain jQuery with wicket and found some odd behaviour here and there on
> Internet Explorer when using Ajax, which we never got to the bottom of. If I
> remember correctly it was the calendar appearing on first render which then
> disappeared and it would never reappear again.
>
> This has lead us to reassess our component situation. Having looked at the
> wiQuery demo site it doesn't fill me with confidence. Perhaps it is just the
> demo site that does not work well and is not an indication of the underlying
> library.
>
> The next library we are considering is Visural Wicket. It looks promising
> but it only seem to have one developer working on it.
>
> Otherwise we would probably look to something like YUI of which I have some
> experience but not with Wicket. It would take some investigating though to
> establish if it would have similar problems that we encountered with JQuery.
>
> Any advice or real world experience will be appreciated.
>
> Thanks,
> James.
>
> -
> 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: Advice wanted about polished component set with Wicket

2011-11-08 Thread Martin Makundi
Hi!

When you render jquery components via ajax you often need to recreate
them (destroy old + create new) with wicket-ajax.onBeforeRender

It might seem bit tricky at start but simply make it part of
onBeforeRender or similar in either a behavior or component itself.

**
Martin

2011/11/8 James Stewart :
> Hi all,
>
> We have been using Wicket for some time now with our home grown html & some
> wicket components. However, there are some complaints that our components
> and pages look a bit bland.
>
> This has prompted us to look around at various alternatives. We tried using
> plain jQuery with wicket and found some odd behaviour here and there on
> Internet Explorer when using Ajax, which we never got to the bottom of. If I
> remember correctly it was the calendar appearing on first render which then
> disappeared and it would never reappear again.
>
> This has lead us to reassess our component situation. Having looked at the
> wiQuery demo site it doesn't fill me with confidence. Perhaps it is just the
> demo site that does not work well and is not an indication of the underlying
> library.
>
> The next library we are considering is Visural Wicket. It looks promising
> but it only seem to have one developer working on it.
>
> Otherwise we would probably look to something like YUI of which I have some
> experience but not with Wicket. It would take some investigating though to
> establish if it would have similar problems that we encountered with JQuery.
>
> Any advice or real world experience will be appreciated.
>
> Thanks,
> James.
>
> -
> 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



Advice wanted about polished component set with Wicket

2011-11-08 Thread James Stewart

Hi all,

We have been using Wicket for some time now with our home grown html & 
some wicket components. However, there are some complaints that our 
components and pages look a bit bland.


This has prompted us to look around at various alternatives. We tried 
using plain jQuery with wicket and found some odd behaviour here and 
there on Internet Explorer when using Ajax, which we never got to the 
bottom of. If I remember correctly it was the calendar appearing on 
first render which then disappeared and it would never reappear again.


This has lead us to reassess our component situation. Having looked at 
the wiQuery demo site it doesn't fill me with confidence. Perhaps it is 
just the demo site that does not work well and is not an indication of 
the underlying library.


The next library we are considering is Visural Wicket. It looks 
promising but it only seem to have one developer working on it.


Otherwise we would probably look to something like YUI of which I have 
some experience but not with Wicket. It would take some investigating 
though to establish if it would have similar problems that we 
encountered with JQuery.


Any advice or real world experience will be appreciated.

Thanks,
James.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Spring secury + auth-roles authentication and authorization: access denied

2011-11-08 Thread massizigao
Thank you Moèz  for your reply.
I looked at the blog you sent, but it didn't helped either. Indeed the
application in the blog does not differ substantially from mine. I updated
my codes with the example implementation and the problem still remains. The
only differences are the  versions of wicket, spring and spring security and
the following methods:

*CustomAuthenticatedWebSession:*

*LoginForm*:

 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Spring-secury-auth-roles-authentication-and-authorization-access-denied-tp4004013p4015730.html
Sent from the Users forum 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