Re: Wicket 6 event script tag and JavaScriptFilteredIntoFooterHeaderResponse

2012-11-13 Thread Martin Grigorov
Hi,

My setup is a bit longer:

// this is the id of the HeaderResponseContainer in the end of the 
String JsInFooterFilterName = "jsInFooter";

setHeaderResponseDecorator(new IHeaderResponseDecorator {
  public IHeaderResponse decorate(IHeaderResponse response) {
String headBucket = "headBucket";
List filters = new
ArrayList();
AbstractHeaderResponseFilter jsAcceptingFilter = new
AbstractHeaderResponseFilter(JsInFooterFilterName) {
  public boolean accepts(HeaderItem item) {
return item instanceof JavaScriptHeaderItem  ||
   item instanceof OnDomReadyHeaderItem ||
   item instanceof OnLoadHeaderItem;
  }
}
filters.add(jsAcceptingFilter);
OppositeHeaderResponseFilter nonJsFilter = new
OppositeHeaderResponseFilter(headBucket, jsAcceptingFilter);
filters.add(nonJsFilter);

return new FilteringHeaderResponse(response, headBucket, filters);
  }
});



On Tue, Nov 13, 2012 at 10:43 PM, jlangston  wrote:

> Testing our application with wicket 6.0.0 it works that the event block is
> in
> the footer bucket but with wicket 6.2.0 it gets rendered in the head. I was
> able to see the same behavior using a quickstart on wicket 6.2.0.
>
> In the init method of WicketApplication I set the response decorator.
>
> setHeaderResponseDecorator(new IHeaderResponseDecorator()
> {
>   @Override
>   public IHeaderResponse decorate(IHeaderResponse response)
>   {
> return new JavaScriptFilteredIntoFooterHeaderResponse(response,
> "footerJS");
>   }
> });
>
> The Homepage class I simply set the footer bucket container and add an ajax
> link so it will add the event script tag and wicket event js reference.
>
> public class HomePage extends WebPage
> {
>   private static final long serialVersionUID = 1L;
>
>   public HomePage(final PageParameters parameters)
>   {
> super(parameters);
> add(new AjaxLink("alertTrigger")
> {
>   private static final long serialVersionUID = -3848680946743570021L;
>
>   @Override
>   public void onClick(AjaxRequestTarget arg0)
>   {
> arg0
>   .appendJavaScript("alert('View source and see the Event Script
> tag
> is in the header when it should get put in the footer')");
>   }
> });
> add(new HeaderResponseContainer("footerJs", "footerJS"));
>   }
> }
>
> In the html file
> Ajax Link
> 
>
>
> With this quickstart the jquery library reference, wicket-event.js and the
> script block for the events are  put in the header tag when all the other
> JS
> is correctly put into the footer bucket.
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-6-event-script-tag-and-JavaScriptFilteredIntoFooterHeaderResponse-tp4653800p4653850.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 


Re: Wicket 6 and wicket push

2012-11-13 Thread Martin Grigorov
Hi,

I think Atmosphere provides a bit more than what Play has.
Atmosphere falls back from WebSocket to Server Side events/Long
polling/Streaming if any of those is not supported by the browser and/or
server.
Play (version 2.0.4 is latest at the moment) has modules for WebSocket or
Comet but not combined or with fallback support!

Wicket also has WebSocket-only module - wicket-native-websocket (
http://wicketinaction.com/2012/07/wicket-6-native-websockets/). But as its
documentation (
https://cwiki.apache.org/confluence/display/WICKET/Wicket+Native+WebSockets)
says it will work only when WebSockets are supported by both the browser
and the server. Just like Play's WebSocket support.


On Wed, Nov 14, 2012 at 8:08 AM, pkc  wrote:

> The atmosphere support is "experimental" right?  I just migrated from 1.5
> to
> 6.2 and used the wicket atmosphere support but I'm having issues where
> pushes sometimes stop working.  I thought I found a way around it by
> turning
> on atmosphere broadcaster caching and message length checking but then I
> got
> strange behavior where other open browsers would get data meant only for a
> single client.  I may post a bug but I don't quite understand all the
> atmosphere settings.  I wish it was a clean and simple as Play 2.1
> Framework
> but that is a stateless framework.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-6-and-wicket-push-tp4653766p4653864.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 


Re: Wicket 6 and wicket push

2012-11-13 Thread pkc
The atmosphere support is "experimental" right?  I just migrated from 1.5 to
6.2 and used the wicket atmosphere support but I'm having issues where
pushes sometimes stop working.  I thought I found a way around it by turning
on atmosphere broadcaster caching and message length checking but then I got
strange behavior where other open browsers would get data meant only for a
single client.  I may post a bug but I don't quite understand all the
atmosphere settings.  I wish it was a clean and simple as Play 2.1 Framework
but that is a stateless framework.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-and-wicket-push-tp4653766p4653864.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: Wicket 6 Atmosphere - where to configure filter-mapping dispatchers?

2012-11-13 Thread pkc
Just got a response from Jeanfrancois in the atmosphere forum and dispatchers
are currently not supported by the ReflectorServletProcessor.

There is a general ticket open for better filter support:
https://github.com/Atmosphere/atmosphere/issues/157 





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Atmosphere-where-to-configure-filter-mapping-dispatchers-tp4653794p4653863.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: strange issue, OnChangeAjaxBehavior() executed only once

2012-11-13 Thread saty
Thanks martin.

I see that i have two java script errors and these could be causing the
problem.

ReferenceError: Prototype is not defined 

TypeError: Tip is not a constructor



These are related to prototype.js and wicketstuff-minis (tool tip)

Any help on resolving these?

Thanks



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/strange-issue-OnChangeAjaxBehavior-executed-only-once-tp4653798p4653862.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: strange issue, OnChangeAjaxBehavior() executed only once

2012-11-13 Thread Martin Grigorov
It means that there is a running Ajax request.
Wicket sends one Ajax request per channel (see AjaxChannel.java).


On Tue, Nov 13, 2012 at 11:28 PM, saty  wrote:

> Thanks, using the debug mode i see that it prints
>
> INFO: Channel '0' is busy - scheduling the callback to be executed when the
> previous request finish.
>
> not sure what it means.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/strange-issue-OnChangeAjaxBehavior-executed-only-once-tp4653798p4653858.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 


Re: strange issue, OnChangeAjaxBehavior() executed only once

2012-11-13 Thread saty
Thanks, using the debug mode i see that it prints

INFO: Channel '0' is busy - scheduling the callback to be executed when the
previous request finish.

not sure what it means.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/strange-issue-OnChangeAjaxBehavior-executed-only-once-tp4653798p4653858.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: any book about wicket 6?

2012-11-13 Thread Martin Grigorov
Hi,

I'm not aware of such.
But that doesn't mean that someone doesn't write one in stealth mode.


On Tue, Nov 13, 2012 at 9:29 PM, Djalma Silva Junior <
djalma.silva...@gmail.com> wrote:

> Hi guys,
> Does anyone know of future book about 6 wicket?
> Thanks,
> --
> Djalma G. Silva Jr
>



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


Re: error Running wicket in development mode

2012-11-13 Thread Martin Grigorov
org.apache.wicket.settings.IDebugSettings#setAjaxDebugModeEnabled


On Tue, Nov 13, 2012 at 11:23 PM, saty  wrote:

> I can disable this using:
>
> getDebugSettings().setComponentUseCheck(false);
>
> what is the equivalent for below (wicket 1.4)  in wicket 6+
>
> getAjaxSettings().setAjaxDebugModeEnabled(true);
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/error-Running-wicket-in-development-mode-tp4653844p4653856.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 


Re: error Running wicket in development mode

2012-11-13 Thread saty
I can disable this using:

getDebugSettings().setComponentUseCheck(false);

what is the equivalent for below (wicket 1.4)  in wicket 6+

getAjaxSettings().setAjaxDebugModeEnabled(true);




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/error-Running-wicket-in-development-mode-tp4653844p4653856.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: Links in modal dialog are relative to dialog URL and not base page URL

2012-11-13 Thread Martin Grigorov
Hi,

The problem is trivial.
You are loading the markup of a _page_ into an element of another page.
The loaded page doesn't know that it is being included in another page and
its links doesn't count this.
See ModalWindow from wicket-extensions. It has two modes - Page and Panel.
When using a Page it renders it inside an _iframe_.


On Tue, Nov 13, 2012 at 10:40 PM, Alec Swan  wrote:

> Martin,
>
> My original problem was in the environment without any proxies but
> relative URLs on the modal dialog loaded from jQuery were still
> broken. If you have a chance could you please review my original email
> and suggest what can be done to fix the links?
>
> Thanks,
>
> Alec
>
> On Mon, Nov 12, 2012 at 8:51 AM, Martin Grigorov 
> wrote:
> > This is the reason why Wicket works with relative urls.
> > The absolute ones do not work well behind proxies.
> >
> >
> > On Mon, Nov 12, 2012 at 5:46 PM, Alec Swan  wrote:
> >
> >> It turned out that
> >> RequestCycle.get().getUrlRenderer().renderFullUrl(..) always returns
> >> URL starting with http://localhost:8080 even when I deploy my on the
> >> DEV server.
> >>
> >> Has anyone experienced this issue?
> >>
> >> Thanks,
> >>
> >> Alec
> >>
> >> On Tue, Nov 6, 2012 at 9:31 AM, Alec Swan  wrote:
> >> > To solve the problem I decided to change all my links to use absolute
> >> > URLs by overriding Link#getUrl() method as follows:
> >> >
> >> >@Override
> >> > protected CharSequence getURL() {
> >> > return
> >> >
> >>
> RequestCycle.get().getUrlRenderer().renderFullUrl(Url.parse(super.getURL().toString()));
> >> > }
> >> >
> >> > Please let me know if there is a problem with this approach.
> >> >
> >> > Thanks,
> >> >
> >> > Alec
> >> >
> >> > On Mon, Nov 5, 2012 at 2:09 PM, Alec Swan  wrote:
> >> >> Hello,
> >> >>
> >> >> I have a base page mounted at /app/root URL. This page loads and pops
> >> >> up a modal dialog (DIV) which content is loaded from /app/root/dialog
> >> >> URL. All links on the dialog are relative to the dialog URL and not
> >> >> base page URL. However, the browser resolves relative links against
> >> >> base page URL and hence all links are broken.
> >> >>
> >> >> The modal dialog is shown as follows:
> >> >> $("#dialogId").load("/app/root/dialog").modal('show')
> >> >>
> >> >> How can I fix this?
> >> >>
> >> >> Thanks,
> >> >>
> >> >> Alec
> >>
> >> -
> >> 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
>
>


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


Re: Convert bookmarkable url to wicket relative url?

2012-11-13 Thread Corbin, James
The encrypted parameter was my doing, not anything the CryptoMapper would
have done, as you pointed out.

The parameter value was chopped off due to some parsing errors.

I also needed to use,
RequestCycle.get().getUrlRenderer().renderFullUrl(Url).

Thanks for the help.







On 11/13/12 1:30 PM, "Martin Grigorov"  wrote:

>Hi,
>
>Do you use Wicket's CryptoMapper to encrypt the urls ?
>Because last time I checked it it encrypted the url segments themselves.
>Wicket 1.4 works with query parameter named 'x', but since 1.5 there is no
>such parameter.
>
>Additionally Component#urlFor() produces a url which is already relative
>to
>the current page. I'm not sure what more could be done.
>
>
>On Tue, Nov 13, 2012 at 9:21 PM, Corbin, James
>wrote:
>
>> I need some help with converting a bookmarkable url into a wicket
>>relative
>> url.
>>
>> My intent is to persist the url convert it to a wicket relative url and
>> then redirect to that relative url.
>>
>> I am using Component.urlFor(Class, PageParameters) api to generate the
>> bookmarkable url.
>>
>> Some interesting points about this problem is that I am using Wicket
>>6.0 ,
>> and Encrypting the URLs (using CryptoMapper).
>>
>> The url format that comes back from the urlFor API, in my case, is as
>> follows:
>>
>> generatedUrlString = ./bookmarkable/> page>?x=FWzgyImodAY
>>
>> I've tried the following to generate a wicket relative URL,
>>
>>
>> Url url = Url.parse(generatedUrlString);
>>
>> String url2 = 
>>RequestCycle.get().getUrlRenderer().renderRelativeUrl(url);
>>
>>
>> This comes close, generating a URI, like,
>>
>>
>> ://:/wicket/wicket/bookmarkable/>page>?x
>>
>>
>>
>> Notice that the parameter is chopped off.
>>
>>
>> Is there way to achieve a wicket relative url from a bookmarkable url
>>with
>> encrypted parameters?
>>
>>
>> Thanks,
>>
>> J.D.
>>
>>
>
>
>-- 
>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: Wicket 6 event script tag and JavaScriptFilteredIntoFooterHeaderResponse

2012-11-13 Thread jlangston
Testing our application with wicket 6.0.0 it works that the event block is in
the footer bucket but with wicket 6.2.0 it gets rendered in the head. I was
able to see the same behavior using a quickstart on wicket 6.2.0.

In the init method of WicketApplication I set the response decorator. 

setHeaderResponseDecorator(new IHeaderResponseDecorator()
{
  @Override
  public IHeaderResponse decorate(IHeaderResponse response)
  {
return new JavaScriptFilteredIntoFooterHeaderResponse(response,
"footerJS");
  }
});

The Homepage class I simply set the footer bucket container and add an ajax
link so it will add the event script tag and wicket event js reference. 

public class HomePage extends WebPage
{
  private static final long serialVersionUID = 1L;

  public HomePage(final PageParameters parameters)
  {
super(parameters);
add(new AjaxLink("alertTrigger")
{
  private static final long serialVersionUID = -3848680946743570021L;

  @Override
  public void onClick(AjaxRequestTarget arg0)
  {
arg0
  .appendJavaScript("alert('View source and see the Event Script tag
is in the header when it should get put in the footer')");
  }
});
add(new HeaderResponseContainer("footerJs", "footerJS"));
  }
}

In the html file
Ajax Link 



With this quickstart the jquery library reference, wicket-event.js and the
script block for the events are  put in the header tag when all the other JS
is correctly put into the footer bucket.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-event-script-tag-and-JavaScriptFilteredIntoFooterHeaderResponse-tp4653800p4653850.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: Links in modal dialog are relative to dialog URL and not base page URL

2012-11-13 Thread Alec Swan
Martin,

My original problem was in the environment without any proxies but
relative URLs on the modal dialog loaded from jQuery were still
broken. If you have a chance could you please review my original email
and suggest what can be done to fix the links?

Thanks,

Alec

On Mon, Nov 12, 2012 at 8:51 AM, Martin Grigorov  wrote:
> This is the reason why Wicket works with relative urls.
> The absolute ones do not work well behind proxies.
>
>
> On Mon, Nov 12, 2012 at 5:46 PM, Alec Swan  wrote:
>
>> It turned out that
>> RequestCycle.get().getUrlRenderer().renderFullUrl(..) always returns
>> URL starting with http://localhost:8080 even when I deploy my on the
>> DEV server.
>>
>> Has anyone experienced this issue?
>>
>> Thanks,
>>
>> Alec
>>
>> On Tue, Nov 6, 2012 at 9:31 AM, Alec Swan  wrote:
>> > To solve the problem I decided to change all my links to use absolute
>> > URLs by overriding Link#getUrl() method as follows:
>> >
>> >@Override
>> > protected CharSequence getURL() {
>> > return
>> >
>> RequestCycle.get().getUrlRenderer().renderFullUrl(Url.parse(super.getURL().toString()));
>> > }
>> >
>> > Please let me know if there is a problem with this approach.
>> >
>> > Thanks,
>> >
>> > Alec
>> >
>> > On Mon, Nov 5, 2012 at 2:09 PM, Alec Swan  wrote:
>> >> Hello,
>> >>
>> >> I have a base page mounted at /app/root URL. This page loads and pops
>> >> up a modal dialog (DIV) which content is loaded from /app/root/dialog
>> >> URL. All links on the dialog are relative to the dialog URL and not
>> >> base page URL. However, the browser resolves relative links against
>> >> base page URL and hence all links are broken.
>> >>
>> >> The modal dialog is shown as follows:
>> >> $("#dialogId").load("/app/root/dialog").modal('show')
>> >>
>> >> How can I fix this?
>> >>
>> >> Thanks,
>> >>
>> >> Alec
>>
>> -
>> 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: error Running wicket in development mode

2012-11-13 Thread Martin Grigorov
It complains because this check is active only in DEV mode.
See org.apache.wicket.settings.IDebugSettings#getComponentUseCheck


On Tue, Nov 13, 2012 at 9:26 PM, saty  wrote:

> Just wanted to add that application is running fine in deployment mode, not
> sure why its complaining in development mode for missing markup.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/error-Running-wicket-in-development-mode-tp4653844p4653846.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 


Re: Convert bookmarkable url to wicket relative url?

2012-11-13 Thread Martin Grigorov
Hi,

Do you use Wicket's CryptoMapper to encrypt the urls ?
Because last time I checked it it encrypted the url segments themselves.
Wicket 1.4 works with query parameter named 'x', but since 1.5 there is no
such parameter.

Additionally Component#urlFor() produces a url which is already relative to
the current page. I'm not sure what more could be done.


On Tue, Nov 13, 2012 at 9:21 PM, Corbin, James wrote:

> I need some help with converting a bookmarkable url into a wicket relative
> url.
>
> My intent is to persist the url convert it to a wicket relative url and
> then redirect to that relative url.
>
> I am using Component.urlFor(Class, PageParameters) api to generate the
> bookmarkable url.
>
> Some interesting points about this problem is that I am using Wicket 6.0 ,
> and Encrypting the URLs (using CryptoMapper).
>
> The url format that comes back from the urlFor API, in my case, is as
> follows:
>
> generatedUrlString = ./bookmarkable/ page>?x=FWzgyImodAY
>
> I've tried the following to generate a wicket relative URL,
>
>
> Url url = Url.parse(generatedUrlString);
>
> String url2 = RequestCycle.get().getUrlRenderer().renderRelativeUrl(url);
>
>
> This comes close, generating a URI, like,
>
>
> ://:/wicket/wicket/bookmarkable/?x
>
>
>
> Notice that the parameter is chopped off.
>
>
> Is there way to achieve a wicket relative url from a bookmarkable url with
> encrypted parameters?
>
>
> Thanks,
>
> J.D.
>
>


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


Convert bookmarkable url to wicket relative url?

2012-11-13 Thread Corbin, James
I need some help with converting a bookmarkable url into a wicket relative url.

My intent is to persist the url convert it to a wicket relative url and then 
redirect to that relative url.

I am using Component.urlFor(Class, PageParameters) api to generate the 
bookmarkable url.

Some interesting points about this problem is that I am using Wicket 6.0 , and 
Encrypting the URLs (using CryptoMapper).

The url format that comes back from the urlFor API, in my case, is as follows:

generatedUrlString = ./bookmarkable/?x=FWzgyImodAY

I've tried the following to generate a wicket relative URL,


Url url = Url.parse(generatedUrlString);

String url2 = RequestCycle.get().getUrlRenderer().renderRelativeUrl(url);


This comes close, generating a URI, like,


://:/wicket/wicket/bookmarkable/?x



Notice that the parameter is chopped off.


Is there way to achieve a wicket relative url from a bookmarkable url with 
encrypted parameters?


Thanks,

J.D.



error Running wicket in development mode

2012-11-13 Thread saty
Switched to run in development mode but it throws below error, am i suppose
to add markup for these?
Did extensive google on this, found nothing so far, thanks

Root cause:
org.apache.wicket.WicketRuntimeException: The component(s) below failed to
render. Possible reasons could be that: 1) you have added a component in
code but forgot to reference it in the markup (thus the component will never
be rendered), 2) if your components were added in a parent container then
make sure the markup for the child container includes them in
.

1. [Component id = statusLabel]
2. [FeedbackPanel [Component id = feedbackPanel]]
3. [FeedbackPanel [Component id = feedbackPanel]]
4. [Component id = assignee]

at org.apache.wicket.Page.checkRendering(Page.java:665)
at org.apache.wicket.Page.onAfterRender(Page.java:822)
at org.apache.wicket.markup.html.WebPage.onAfterRender(WebPage.java:215)
at org.apache.wicket.Component.afterRender(Component.java:891)
at org.apache.wicket.Component.render(Component.java:2305)
at org.apache.wicket.Page.renderPage(Page.java:1021)
at
org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:116)
at
org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:244)
at
org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:165)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:830)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:253)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:210)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:281)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
at org.apache.wicket.protocol.http.WicketFilter.d



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/error-Running-wicket-in-development-mode-tp4653844.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: how do you pass load=effects to scriptaculous.js

2012-11-13 Thread saty
Thanks, this is helpful.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-do-you-pass-load-effects-to-scriptaculous-js-tp4653797p4653841.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: how do you pass load=effects to scriptaculous.js

2012-11-13 Thread Martin Grigorov
On Tue, Nov 13, 2012 at 5:13 PM, saty  wrote:

> Thanks for responding, To use SCRIPTACULOUS js libraries:
>
> We are using in maven:
>
>  
> org.wicketstuff
> wicketstuff-jslibraries
> 1.5.8
>

You better use 6.2.0 as your Wicket version.


>  
>
> And than code like this
>   @Override
>   public void renderHead(Component component, IHeaderResponse response)
>   {
>
>
> JSLib.getHeaderContribution(VersionDescriptor.alwaysLatest(Library.SCRIPTACULOUS)).renderHead(response)
>

As I said this is not Wicket API.


>   }
>
> scriptaculous.js documentation says:
>
> By default, scriptaculous.js loads all of the other javascript files
> necessary for effects, drag-and-drop, sliders, and all of the other
> script.aculo.us features. If you don’t need all of the features, you can
> limit the additional scripts that get loaded by specifying them in a
> comma-separated list, e.g.:
>
>
>
> So my question is how in wicket i will achieve this passing =>
> ?load=effects,dragdrop
> to scriptaculous.js
>

With plain Wicket:
PageParameters params = new PageParameters();
params.set("load", "effects,dragdrop");
response.render(JavaScriptHeaderItem.forReference(new
JavaScriptResourceReference(Scriptaculous.class, "scriptaculous.js"),
params))


>
> Thanks
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/how-do-you-pass-load-effects-to-scriptaculous-js-tp4653797p4653833.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 


Re: strange issue, OnChangeAjaxBehavior() executed only once

2012-11-13 Thread Uwe Schäfer

On 11/13/2012 04:13 PM, saty wrote:

Anyone?


wild guess, but could it be that the component with this behavior is 
rerendererd on the way back, but it's URL is now pointing to the initial 
version's behavior? (means you do not get different URLS for the callback)


i tricked myself the other day this way.

if so, solution is recreate the url when rendering.

cu uwe


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



Re: Wicket-Atmosphere & complex JS

2012-11-13 Thread Pierre Goupil
Cheers, men, I'll try it ASAP!

Big thanks,

Pierre


On Tue, Nov 13, 2012 at 3:49 PM, Emond Papegaaij  wrote:

> I found the link to the wiki page explaining how to fix this:
> https://github.com/Atmosphere/atmosphere/wiki/Multiply-messages-arrives-as-
> single-response-body-or-message-received-are-incomplete
>
> It seems the trackMessageLength option needs to be enabled in the js, and
> some
> additional code is needed server side. From what I see, neither one will
> work
> without the other. Can you try if the solution provided at wiki works? To
> pass
> the additional option in the js, just copy jquery.wicketatmosphere.js, add
> the
> parameter and register the new file as a replacement resource in the
> application. Also please create a Jira issue for this. If you could post
> your
> findings there, that would help me tremendously, because my time to work on
> Wicket is very limited at the moment.
>
> Best regards,
> Emond
>
> On Tuesday 13 November 2012 16:03:30 Martin Grigorov wrote:
> > The problem is that Atmosphere sends the response in chunks.
> > Jean Francois explained in Atmosphere mailing lists that a special
> > Atmosphere has to be used that will collect the whole response before
> > flushing it.
> >
> >
> > On Tue, Nov 13, 2012 at 3:25 PM, Emond Papegaaij <
> emond.papega...@topicus.nl
> > > wrote:
> > >
> > > This is most likely caused by incorrect escaping, which might be a bug
> in
> > > Wicket or Wicket-Atmosphere. Can you try to create a quickstart to
> > > demonstrate
> > > the problem and file a Jira ticket? You can use the example
> application at
> > > https://github.com/papegaaij/wicket-atmosphere-quickstart
> > >
> > > Best regards,
> > > Emond
> > >
> > > On Sunday 11 November 2012 18:03:52 Pierre Goupil wrote:
> > > > Hi all,
> > > >
> > > > When I submit complex JS to my client using target.appendJavaScript()
> > >
> > > with
> > >
> > > > a @Subscribe method from Wicket-Atmosphere, I got this message in the
> > > > browser console:
> > > >
> > > > Wicket.Ajax: Wicket.Ajax.Call.failure: Error while parsing response:
> > > > Could not find root  element
> > > >
> > > > I do have an  tag and the response from the server
> seems
> > >
> > > to
> > >
> > > > be all OK. Nonetheless, for a reason I'm not aware of, it fails.
> > > >
> > > > Did anyone encounter this error before? Is there a known work-around?
> > > >
> > > > When I have a simple response, it works though. The problem only
> occurs
> > > > with complex responses.
> > > >
> > > > I'm using:
> > > > 6.3.0-SNAPSHOT
> > > > 6.2.1
> > >
> > > 0.5-SNAPSHOT
> > >
> > > > (GIT master)
> > > >
> > > > Regards,
> > > >
> > > > Pierre
>



-- 
Le bonheur n'est pas une destination, mais une façon de voyager.

Papa d'une petite Lou-Ann depuis le 30 juin.


Re: strange issue, OnChangeAjaxBehavior() executed only once

2012-11-13 Thread saty
Anyone?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/strange-issue-OnChangeAjaxBehavior-executed-only-once-tp4653798p4653834.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: how do you pass load=effects to scriptaculous.js

2012-11-13 Thread saty
Thanks for responding, To use SCRIPTACULOUS js libraries:

We are using in maven:

 
org.wicketstuff
wicketstuff-jslibraries
1.5.8
 

And than code like this
  @Override
  public void renderHead(Component component, IHeaderResponse response)
  {
   
JSLib.getHeaderContribution(VersionDescriptor.alwaysLatest(Library.SCRIPTACULOUS)).renderHead(response)
  }

scriptaculous.js documentation says:

By default, scriptaculous.js loads all of the other javascript files
necessary for effects, drag-and-drop, sliders, and all of the other
script.aculo.us features. If you don’t need all of the features, you can
limit the additional scripts that get loaded by specifying them in a
comma-separated list, e.g.:



So my question is how in wicket i will achieve this passing =>
?load=effects,dragdrop
to scriptaculous.js

Thanks




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-do-you-pass-load-effects-to-scriptaculous-js-tp4653797p4653833.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



[Announce] WicketStuff 1.5.9 is released

2012-11-13 Thread Martin Grigorov
Hello,

WicketStuff Core projects version 1.5.9 have been released and shortly
will be available at Maven Central repository.
They are built against Apache Wicket 1.5.9.

The changelog is:

Michael Mosmann (44):
  init commit
  tests are green
  package rename from kryo to kryo2
  inspection listener
  inspection listener
  analyzing stuff
  type size report
  formated report
  processor refactoring
  reporting done
  serializble removed
  package refactor
  tree filter
  tree filter
  tree builder
  tests done
  changed some tests
  wicket code format
  use real types
  tree walker level type
  tree proessing should work
  filtered reports
  serial exception handling
  fixed error level
  some more tests
  report builder
  report builder works
  typo
  report refactor done
  reporting cleanup
  listener threadlocal handling
  last functional changes
  java doc
  lic header added
  pre merge to core-1.5.x
  refactoring fix
  Merge remote-tracking branch
'origin/serializer-kryo2-component-sizes' into core-1.5.x
  lic header missing
  [pageserializer-kryo2] wrong condition fix
  [serializer-kryo2] serializer call delegation bugfix
  object id added
  [serializer-kryo2] tree compression and some improvements
  [serializer-kryo2] readme fixed
  [serializer-kryo2] readme version change for this branch

Martin Tzvetanov Grigorov (1):
  [Release] Set version to 1.5.9

=Tom B (1):
  [InMethod Grid] fix for LinkColumns to correctly display links on
EditableDataGrids after a selection for update javadoc
additions/corrections

Tom Burton (1):
  Merge pull request #161 from raystorm/core-1.5.x


The projects can be retrieved from Maven like this:


  org.wicketstuff
  wicketstuff-progressbar
  1.5.9


The release tag is here:
https://github.com/wicketstuff/core/tree/wicketstuff-core-1.5.9

Issues can be reported here: https://github.com/wicketstuff/core/issues

The Project Wiki is available here: https://github.com/wicketstuff/core/wiki

The WicketStuff team!


Re: need advice for wicket-plugin's implementation

2012-11-13 Thread Jesse Long

See CompoundClassResolver. Designed for this purpose.

On 12/11/2012 14:12, Martin Grigorov wrote:

Hi,

Since you use custom ClassLoaders you have to use custom IClassResolver too.


On Fri, Nov 9, 2012 at 5:22 PM, Decebal Suiu  wrote:


Hi

I'm working to first version of wicket-plugin. I encounter some problems.
In few words I implemented a PluginManagerInitializer that create a
PluginManager, load and start the plugins from a directory
and store the plugin manager to application using wicket meta data.
Each plugin is loaded with a PluginClassLaoder.
I want to map each plugin's resources on ./plugin/plugin-name/...

My problem is how to create a reference to a plugin resource.

See this code:

 @Extension
 public static class HelloSection extends SimpleSection {

 public HelloSection() {
 //super(new Model("Hello"), new
PluginResourceReference(HelloSection.class, "settings.png"));
 super(new Model("Hello"), new
PackageResourceReference(HelloSection.class, "settings.png"));
 }

 }

In above code I want to add a new tab (section) to my TabbedPanel (I
created
a demo application with a tabbed panel and itabs from plugins)
but HelloSection.class is not visible to wicket (I retrieve a
CastClassException).
It seems to me that I cannot use ResourceReference in my case because
"scope" parameter (must be visible in wicket but I want something relative
to plugin baseResourcesPath).

Any advice how can I implement my idea is welcome.

Best regards,
Decebal




--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/need-advice-for-wicket-plugin-s-implementation-tp4653751.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: Wicket-Atmosphere & complex JS

2012-11-13 Thread Emond Papegaaij
I found the link to the wiki page explaining how to fix this:
https://github.com/Atmosphere/atmosphere/wiki/Multiply-messages-arrives-as-
single-response-body-or-message-received-are-incomplete

It seems the trackMessageLength option needs to be enabled in the js, and some 
additional code is needed server side. From what I see, neither one will work 
without the other. Can you try if the solution provided at wiki works? To pass 
the additional option in the js, just copy jquery.wicketatmosphere.js, add the 
parameter and register the new file as a replacement resource in the 
application. Also please create a Jira issue for this. If you could post your 
findings there, that would help me tremendously, because my time to work on 
Wicket is very limited at the moment.

Best regards,
Emond

On Tuesday 13 November 2012 16:03:30 Martin Grigorov wrote:
> The problem is that Atmosphere sends the response in chunks.
> Jean Francois explained in Atmosphere mailing lists that a special
> Atmosphere has to be used that will collect the whole response before
> flushing it.
> 
> 
> On Tue, Nov 13, 2012 at 3:25 PM, Emond Papegaaij  > wrote:
> > 
> > This is most likely caused by incorrect escaping, which might be a bug in
> > Wicket or Wicket-Atmosphere. Can you try to create a quickstart to
> > demonstrate
> > the problem and file a Jira ticket? You can use the example application at
> > https://github.com/papegaaij/wicket-atmosphere-quickstart
> > 
> > Best regards,
> > Emond
> > 
> > On Sunday 11 November 2012 18:03:52 Pierre Goupil wrote:
> > > Hi all,
> > > 
> > > When I submit complex JS to my client using target.appendJavaScript()
> > 
> > with
> > 
> > > a @Subscribe method from Wicket-Atmosphere, I got this message in the
> > > browser console:
> > > 
> > > Wicket.Ajax: Wicket.Ajax.Call.failure: Error while parsing response:
> > > Could not find root  element
> > > 
> > > I do have an  tag and the response from the server seems
> > 
> > to
> > 
> > > be all OK. Nonetheless, for a reason I'm not aware of, it fails.
> > > 
> > > Did anyone encounter this error before? Is there a known work-around?
> > > 
> > > When I have a simple response, it works though. The problem only occurs
> > > with complex responses.
> > > 
> > > I'm using:
> > > 6.3.0-SNAPSHOT
> > > 6.2.1
> > 
> > 0.5-SNAPSHOT
> > 
> > > (GIT master)
> > > 
> > > Regards,
> > > 
> > > Pierre

Re: Wicket-Atmosphere & complex JS

2012-11-13 Thread Martin Grigorov
The problem is that Atmosphere sends the response in chunks.
Jean Francois explained in Atmosphere mailing lists that a special
Atmosphere has to be used that will collect the whole response before
flushing it.


On Tue, Nov 13, 2012 at 3:25 PM, Emond Papegaaij  wrote:

> This is most likely caused by incorrect escaping, which might be a bug in
> Wicket or Wicket-Atmosphere. Can you try to create a quickstart to
> demonstrate
> the problem and file a Jira ticket? You can use the example application at
> https://github.com/papegaaij/wicket-atmosphere-quickstart
>
> Best regards,
> Emond
>
> On Sunday 11 November 2012 18:03:52 Pierre Goupil wrote:
> > Hi all,
> >
> > When I submit complex JS to my client using target.appendJavaScript()
> with
> > a @Subscribe method from Wicket-Atmosphere, I got this message in the
> > browser console:
> >
> > Wicket.Ajax: Wicket.Ajax.Call.failure: Error while parsing response:
> > Could not find root  element
> >
> > I do have an  tag and the response from the server seems
> to
> > be all OK. Nonetheless, for a reason I'm not aware of, it fails.
> >
> > Did anyone encounter this error before? Is there a known work-around?
> >
> > When I have a simple response, it works though. The problem only occurs
> > with complex responses.
> >
> > I'm using:
> >
> > 6.3.0-SNAPSHOT
> > 6.2.1
> >
> 0.5-SNAPSHOT
> >
> > (GIT master)
> >
> > Regards,
> >
> > Pierre
>



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


Re: Detecting HTML 5 Features in Wicket

2012-11-13 Thread Martin Grigorov
On Mon, Nov 12, 2012 at 5:10 PM, Corbin, James wrote:

> Thanks, I have already.  I know how to detect HTML5 features using
> javascript, just wondered what is the best way to do so from Wicket code.
> Given your suggestion, how could I use Modernizr to set browser state
> indicating, for example, that HTML 5 local storage is in fact supported.
> I'm just not sure how to plug something like this into the initialization
> of the web application.  It would be nice if the gather extended browser
> info support in Wicket supported these properties.
>
> I'm just curious how others have managed to answer the question, "Does my
> browser and version support HTML 5 Local Storage?", from Wicket code.
>
>
The best is to not answer this question at all.
Use a JS library that cares about the persistence at the client side for
you. So you use it as abstraction layer.


> Thanks,
> J.D.
>
>
>
>
>
>
>
> On 11/12/12 7:59 AM, "Phillips, David"  wrote:
>
> >I would suggest taking a look at Modernizr (http://modernizr.com/) for
> >feature detection.
> >
> >Thanks,
> >-David Phillips - USAA
> >
> >-Original Message-
> >From: Corbin, James [mailto:jcor...@iqnavigator.com]
> >Sent: Monday, November 12, 2012 8:40 AM
> >To: users@wicket.apache.org
> >Subject: EXTERNAL: Detecting HTML 5 Features in Wicket
> >
> >Is there any built in support for detecting HTML 5 browser features like
> >Web Storage?
> >
> >If not, what is  the recommended approach for doing so?
> >
> >I'm looking for a way to detect support for Web (e.g. Local) Storage, so
> >in cases where the browser's do not support it (e.g., IE7), I can use
> >cookies or some other mechanism instead.
> >
> >Thanks,
> >
> >J.D.
> >
> >-
> >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 


Re: Wicket 6 Atmosphere - where to configure filter-mapping dispatchers?

2012-11-13 Thread Emond Papegaaij
As far as I know, the latest versions of wicket-atmosphere and atmosphere 
should fall through to the default servlet handling if wicket does not handle 
the request. I don't know that much about servlet configuration, but I don't 
think wicket-atmoshpere changes anything in this context. You might try asking 
your question on the Atmosphere framework mailing list at google groups.

Best regards,
Emond

On Monday 12 November 2012 11:26:37 pkc wrote:
> Before atmosphere, i used a standard web.xml filter and the following
> mappings:
> 
> 
> wicket
> /*
> REQUEST
> INCLUDE
> FORWARD
> ERROR
> 
> 
> From the examples, I now define the filter in the atmosphere.xml which works
> except I don't see a way to configure the dispatchers for FORWARD and
> ERROR.
> 
> 
>  class-name="org.atmosphere.handler.ReflectorServletProcessor">
>value="org.apache.wicket.protocol.http.WicketFilter" />
>   
> 
> 
> This is the last obstacle to my 1.5 to 6.2 migration and I already put a lot
> of work into it so any help is greatly appreciated.
> 
> 
> 
> 
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Atmosphere-where-to-con
> figure-filter-mapping-dispatchers-tp4653794.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: Session Destroy

2012-11-13 Thread Martin Grigorov
Hi,

Servlet APIs provides
http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpSessionListener.html#sessionDestroyed(javax.servlet.http.HttpSessionEvent)
>From the passed event you can get the HttpSession. One of the attributes
inside is the Wicket Session.


On Mon, Nov 12, 2012 at 10:32 PM, Corbin, James wrote:

> Is there any way in Wicket 6+ to be notified when the session is ABOUT to
> be destroyed?  The UnboundListener.sessionUnbound(…) API is too late in the
> cycle for me to interact with the session state.
>
> Thanks,
> J.D.
>



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


Re: Links in modal dialog are relative to dialog URL and not base page URL

2012-11-13 Thread Martin Grigorov
This is the reason why Wicket works with relative urls.
The absolute ones do not work well behind proxies.


On Mon, Nov 12, 2012 at 5:46 PM, Alec Swan  wrote:

> It turned out that
> RequestCycle.get().getUrlRenderer().renderFullUrl(..) always returns
> URL starting with http://localhost:8080 even when I deploy my on the
> DEV server.
>
> Has anyone experienced this issue?
>
> Thanks,
>
> Alec
>
> On Tue, Nov 6, 2012 at 9:31 AM, Alec Swan  wrote:
> > To solve the problem I decided to change all my links to use absolute
> > URLs by overriding Link#getUrl() method as follows:
> >
> >@Override
> > protected CharSequence getURL() {
> > return
> >
> RequestCycle.get().getUrlRenderer().renderFullUrl(Url.parse(super.getURL().toString()));
> > }
> >
> > Please let me know if there is a problem with this approach.
> >
> > Thanks,
> >
> > Alec
> >
> > On Mon, Nov 5, 2012 at 2:09 PM, Alec Swan  wrote:
> >> Hello,
> >>
> >> I have a base page mounted at /app/root URL. This page loads and pops
> >> up a modal dialog (DIV) which content is loaded from /app/root/dialog
> >> URL. All links on the dialog are relative to the dialog URL and not
> >> base page URL. However, the browser resolves relative links against
> >> base page URL and hence all links are broken.
> >>
> >> The modal dialog is shown as follows:
> >> $("#dialogId").load("/app/root/dialog").modal('show')
> >>
> >> How can I fix this?
> >>
> >> Thanks,
> >>
> >> Alec
>
> -
> 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 


Re: Wicket-Atmosphere & complex JS

2012-11-13 Thread Emond Papegaaij
This is most likely caused by incorrect escaping, which might be a bug in 
Wicket or Wicket-Atmosphere. Can you try to create a quickstart to demonstrate 
the problem and file a Jira ticket? You can use the example application at 
https://github.com/papegaaij/wicket-atmosphere-quickstart

Best regards,
Emond

On Sunday 11 November 2012 18:03:52 Pierre Goupil wrote:
> Hi all,
> 
> When I submit complex JS to my client using target.appendJavaScript() with
> a @Subscribe method from Wicket-Atmosphere, I got this message in the
> browser console:
> 
> Wicket.Ajax: Wicket.Ajax.Call.failure: Error while parsing response:
> Could not find root  element
> 
> I do have an  tag and the response from the server seems to
> be all OK. Nonetheless, for a reason I'm not aware of, it fails.
> 
> Did anyone encounter this error before? Is there a known work-around?
> 
> When I have a simple response, it works though. The problem only occurs
> with complex responses.
> 
> I'm using:
> 
> 6.3.0-SNAPSHOT
> 6.2.1
> 0.5-SNAPSHOT
> 
> (GIT master)
> 
> Regards,
> 
> Pierre

Re: need advice for wicket-plugin's implementation

2012-11-13 Thread Martin Grigorov
Hi,

Since you use custom ClassLoaders you have to use custom IClassResolver too.


On Fri, Nov 9, 2012 at 5:22 PM, Decebal Suiu  wrote:

> Hi
>
> I'm working to first version of wicket-plugin. I encounter some problems.
> In few words I implemented a PluginManagerInitializer that create a
> PluginManager, load and start the plugins from a directory
> and store the plugin manager to application using wicket meta data.
> Each plugin is loaded with a PluginClassLaoder.
> I want to map each plugin's resources on ./plugin/plugin-name/...
>
> My problem is how to create a reference to a plugin resource.
>
> See this code:
>
> @Extension
> public static class HelloSection extends SimpleSection {
>
> public HelloSection() {
> //super(new Model("Hello"), new
> PluginResourceReference(HelloSection.class, "settings.png"));
> super(new Model("Hello"), new
> PackageResourceReference(HelloSection.class, "settings.png"));
> }
>
> }
>
> In above code I want to add a new tab (section) to my TabbedPanel (I
> created
> a demo application with a tabbed panel and itabs from plugins)
> but HelloSection.class is not visible to wicket (I retrieve a
> CastClassException).
> It seems to me that I cannot use ResourceReference in my case because
> "scope" parameter (must be visible in wicket but I want something relative
> to plugin baseResourcesPath).
>
> Any advice how can I implement my idea is welcome.
>
> Best regards,
> Decebal
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/need-advice-for-wicket-plugin-s-implementation-tp4653751.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 


Re: how do you pass load=effects to scriptaculous.js

2012-11-13 Thread Martin Grigorov
Hi,

Can you be more specific in your question ?
What exactly is the problem  ? Is there a compile error or runtime one ?
 This code is not part of Wicket core and it is not easy to find the
problem by just looking at this line.


On Tue, Nov 13, 2012 at 12:39 AM, saty  wrote:

> in wicket 6.
>
> using the below code, not sure how to pass the arguments as is done by the
> current code (wicket 1.4)
>
>
> JSLib.getHeaderContribution(VersionDescriptor.alwaysLatest(Library.SCRIPTACULOUS)).renderHead(response)
>
> Thanks
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/how-do-you-pass-load-effects-to-scriptaculous-js-tp4653797.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 


Re: Detecting HTML 5 Features in Wicket

2012-11-13 Thread Martin Grigorov
Hi,

To detect browser capabilities you have to use WebClientInfo. See
http://www.wicket-library.com/wicket-examples-6.0.x/hellobrowser/

By default there is no info for Web Storage, so you will need a custom
BrowserInfoPage,
see org.apache.wicket.protocol.http.WebSession#newBrowserInfoPage


On Mon, Nov 12, 2012 at 4:40 PM, Corbin, James wrote:

> Is there any built in support for detecting HTML 5 browser features like
> Web Storage?
>
> If not, what is  the recommended approach for doing so?
>
> I'm looking for a way to detect support for Web (e.g. Local) Storage, so
> in cases where the browser's do not support it (e.g., IE7), I can use
> cookies or some other mechanism instead.
>
> Thanks,
>
> J.D.
>



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


Re: Wicket-auth-roles and wicket 6

2012-11-13 Thread Martin Grigorov
Please paste the exception.


On Tue, Nov 13, 2012 at 11:30 AM, lsm_7  wrote:

> Yes, I have the jar in classpath: wicket-auth-roles-6.2.0.jar.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-auth-roles-and-wicket-6-tp4653804p4653806.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 


Re: Wicket-auth-roles and wicket 6

2012-11-13 Thread Martin Grigorov
Hi,

Check the contents of your.war#WEB-INF/lib folder. Look for
wicket-auth-roles-6.2.0.jar


On Tue, Nov 13, 2012 at 10:47 AM, lsm_7  wrote:

> Hi all,
>
> I am migrating a project from Wicket 1.4.7 to Wicket 6.2.0. Well, I have a
> problem when executing the application. Tomcat says that
> AuthenticatedWebApplication cannot be found. However, it is included in
> pom.xml and I can see it in Maven dependencies included in the project...
>
> Any idea??
>
> Thanks in advance!!
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-auth-roles-and-wicket-6-tp4653804.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 


Re: Ability to simply enable jQuery.noConflict() globally for an application in Wicket 6

2012-11-13 Thread Martin Grigorov
Hi,

For wicket-examples'
http://www.wicket-library.com/wicket-examples-6.0.x/ajax/effects
all
I had to do was to add

@Override
public void renderHead(IHeaderResponse response)
{
super.renderHead(response);

response.render(OnDomReadyHeaderItem.forScript("jQuery.noConflict();"));
}

to the page that uses Prototype (EffectsPage.java).

But it is quite simple demo so maybe more work is needed in a real use case
like yours.


On Mon, Nov 12, 2012 at 2:58 AM, Marcin Zajączkowski  wrote:

> Hi, I have an application which internally uses prototype. After
> migration from Wicket 1.5 to 6 I had problems with conflicts. It helped
> to enable non conflict mode in jQuery, but to do this globally I had to
> do a few things:
>  - an one line script
>  - a corresponding JavaScriptResourceReference
>  - a new JavaScriptBundle which bundle it with the original one
>  - set a jQueryReference to my bundle
>
> Is there any simpler way to do that? There is probably more people
> facing with that problem and some build in solution which be useful.
>
> Regards
> Marcin
>
> --
> http://blog.solidsoft.info/ - Working code is not enough
>
>
> -
> 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 


Re: Wicket-auth-roles and wicket 6

2012-11-13 Thread lsm_7
Sure!

The problem was that some dependencies were not included in "Deployment
Assembly" configuration of Eclipse project. Maven dependencies must point to
/WEB-INF/lib/

That was all. It seems a dummy thing but I spent some hours with that...



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-auth-roles-and-wicket-6-tp4653804p4653810.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: Wicket-auth-roles and wicket 6

2012-11-13 Thread Martin Grigorov
Share the problem and the solution so next time when someone has the same
or similar problem (s)he can see your solution.


On Tue, Nov 13, 2012 at 1:12 PM, lsm_7  wrote:

> Well, I finally got the solution. There was a problem in Tomcat
> configuration.
>
> Thanks anyway! ;)
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-auth-roles-and-wicket-6-tp4653804p4653807.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 


Re: Wicket 6 event script tag and JavaScriptFilteredIntoFooterHeaderResponse

2012-11-13 Thread Martin Grigorov
Hi,

Please show us your code.
This requirement works fine in my application.


On Tue, Nov 13, 2012 at 2:31 AM, jlangston  wrote:

> Wicket 6 has been very pleasant to work with thus far though I do have one
> question someone might be able to help me with. When using a
> HeaderResponseDecorator with JavaScriptFilteredIntoFooterHeaderResponse I
> am
> curious why the script tag that contains all of the Wicket.Event.add
> statements still gets put into the bucket in the head tag?  All the other
> script tags seems to be moved into the footer appropriately.  If memory
> serves me correctly it seems as though in wicket 6.0.0 it was funneled into
> the footer JS bucket and has changed in more recent versions.
>
> If this was changed on purpose is there a reason I am missing for the
> change?
>
> I am working on a jquery mobile web application with wicket 6 and would
> like
> to leave the built in ajax link hijacking in place if possible but it won't
> execute script tags in the head of pages that are loaded with ajax thus why
> I am trying to get all the non global script tags to render in the footer
> bucket so sub page updates will work properly.
>
> If anyone has any feedback it would be much appreciated.
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-6-event-script-tag-and-JavaScriptFilteredIntoFooterHeaderResponse-tp4653800.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 


Re: Wicket-auth-roles and wicket 6

2012-11-13 Thread lsm_7
Yes, I have the jar in classpath: wicket-auth-roles-6.2.0.jar.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-auth-roles-and-wicket-6-tp4653804p4653806.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



Wicket-auth-roles and wicket 6

2012-11-13 Thread lsm_7
Hi all,

I am migrating a project from Wicket 1.4.7 to Wicket 6.2.0. Well, I have a
problem when executing the application. Tomcat says that
AuthenticatedWebApplication cannot be found. However, it is included in
pom.xml and I can see it in Maven dependencies included in the project...

Any idea??

Thanks in advance!! 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-auth-roles-and-wicket-6-tp4653804.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