RE: ThreadContext.getSession(); return null in wicket 6.5.0

2013-01-24 Thread Chris Colman
If there currently is no session it won't create one - auto creating a
session is undesirable in many cases - e.g. when serving up a static
resource.


>-Original Message-
>From: Raul [mailto:ralva...@netwie.com]
>Sent: Friday, 25 January 2013 6:08 AM
>To: users@wicket.apache.org
>Subject: ThreadContext.getSession(); return null in wicket 6.5.0
>
>
>Hi, in my application I use ThreadContext.getSession () to get the
session,
>and works well in wicket 6.4.0, upgrade to 6.5.0 but returns null, what
is
>due?
>
>
>
>--
>View this message in context: http://apache-
>wicket.1842946.n4.nabble.com/ThreadContext-getSession-return-null-in-
>wicket-6-5-0-tp4655741.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 remove the file icons from the editable tree table ?

2013-01-24 Thread Colin Rogers
Extend DefaultAbstractTree and override getFolderOpen() and getFolderClosed()  
- which are called by newNodeIcon() (eventually)?

-Original Message-
From: grazia [mailto:grazia.russolass...@gmail.com]
Sent: 25 January 2013 04:18
To: users@wicket.apache.org
Subject: Re: how to remove the file icons from the editable tree table ?

DefaultAbstractTree.newNodeIcon is the culprit ... I guess I can extend class 
TreeTable, which extends DefaultAbstractTree, and then override newNodeIcon as 
I need to ...
Any easier way  ?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-remove-the-file-icons-from-the-editable-tree-table-tp4655709p4655733.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

EMAIL DISCLAIMER This email message and its attachments are confidential and 
may also contain copyright or privileged material. If you are not the intended 
recipient, you may not forward the email or disclose or use the information 
contained in it. If you have received this email message in error, please 
advise the sender immediately by replying to this email and delete the message 
and any associated attachments. Any views, opinions, conclusions, advice or 
statements expressed in this email message are those of the individual sender 
and should not be relied upon as the considered view, opinion, conclusions, 
advice or statement of this company except where the sender expressly, and with 
authority, states them to be the considered view, opinion, conclusions, advice 
or statement of this company. Every care is taken but we recommend that you 
scan any attachments for viruses.

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



Re: ThreadContext.getSession(); return null in wicket 6.5.0

2013-01-24 Thread Francois Meillet
Are you sure your session has been bound ?

François


Le 24 janv. 2013 à 20:07, Raul  a écrit :

> 
> Hi, in my application I use ThreadContext.getSession () to get the session,
> and works well in wicket 6.4.0, upgrade to 6.5.0 but returns null, what is
> due?
> 
> 
> 
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/ThreadContext-getSession-return-null-in-wicket-6-5-0-tp4655741.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



ThreadContext.getSession(); return null in wicket 6.5.0

2013-01-24 Thread Raul

Hi, in my application I use ThreadContext.getSession () to get the session,
and works well in wicket 6.4.0, upgrade to 6.5.0 but returns null, what is
due?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ThreadContext-getSession-return-null-in-wicket-6-5-0-tp4655741.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: Insidious error

2013-01-24 Thread Paul Bors
>From your stack trace:

 es.isdefe.webisdefe.webapp.panels.inicio.Inicio$InicioJsBehaviour@2b0c59fcon
component [Inicio [Component id = contenido]] threw an exception

the component with the "contenido" wicket:id must have a model object
that's cast to the wrong type.

You should use Generics more for your models to prevent those cast errors
or pay more attention to the object types :)
https://cwiki.apache.org/WICKET/generics.html

On Thu, Jan 24, 2013 at 1:56 PM, Oscar Besga Arcauz wrote:

>
> Hi Wickers
>
> I've deployed my wicket webapp in production, now it's online.
> Thanks for all your help !
>
>
> But..
>
> There's an error, that is thrown intermittent, from time to time.
> It doesn't appear to affect the main behaviour of the website
>
> I've trying to reach source and debug and fix it, but it has been
> impossible to me.
> If anyone has a hint or knows what is happening, it will be truly
> appreciated
>
> Thanks !!
>
> ERROR WebIsdefe:276 - ERROR ! >>
> Method  onRequest of interface
> org.apache.wicket.behavior.IBehaviorListener  targeted at
>  es.isdefe.webisdefe.webapp.panels.inicio.Inicio$InicioJsBehaviour@2b0c59fc 
> on component [Inicio [Component id = contenido]] threw an exception
> org.apache.wicket.WicketRuntimeException:  Method onRequest of interface
>  org.apache.wicket.behavior.IBehaviorListener targeted at
>  es.isdefe.webisdefe.webapp.panels.inicio.Inicio$InicioJsBehaviour@2b0c59fc 
> on component [Inicio [Component id = contenido]] threw an exception
> at
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:274)
> at
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
>
> Caused by: java.lang.IllegalArgumentException:
> java.lang.ClassCastException@1e275ff3
> at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
> ... 26 more
> 18:12:26,156 ERROR DefaultExceptionMapper:123 - Unexpected error occurred
> org.apache.wicket.WicketRuntimeException:  Method onRequest of interface
>  org.apache.wicket.behavior.IBehaviorListener targeted at
>  es.isdefe.webisdefe.webapp.panels.inicio.Inicio$InicioJsBehaviour@2b0c59fc 
> on component [Inicio [Component id = contenido]] threw an exception
> at
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:274)
> at
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
>  at
>  
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:247)
> at
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:226)
> at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:830)
> at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> [...]
> Caused by: java.lang.IllegalArgumentException:
> java.lang.ClassCastException@1e275ff3
> at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
> ... 26 more
>
>
> > > > Oscar Besga Arcauz  < < <
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket Editable datagrid with add/edit/delete functionality at once

2013-01-24 Thread Paul Bors
Is this what you're looking for?

http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/extensions/ajax/markup/html/AjaxIndicatorAppender.html

~ Thank you,
   Paul Bors

On Thu, Jan 24, 2013 at 8:05 AM, rsasanulu  wrote:

> Thank you very much to providing the editable grid.
>
> Can you please give the please wait(loading) behavior. I added but, It is
> showing loading page when getting the data from database. But not showing
> busy screen when rendering the web page. Can you please provide this.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-Editable-datagrid-with-add-edit-delete-functionality-at-once-tp3326177p4655726.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
>
>


Insidious error

2013-01-24 Thread Oscar Besga Arcauz
 
Hi Wickers

I've deployed my wicket webapp in production, now it's online.
Thanks for all your help !


But..

There's an error, that is thrown intermittent, from time to time.
It doesn't appear to affect the main behaviour of the website

I've trying to reach source and debug and fix it, but it has been impossible to 
me.
If anyone has a hint or knows what is happening, it will be truly appreciated 

Thanks !!

ERROR WebIsdefe:276 - ERROR ! >> 
Method  onRequest of interface org.apache.wicket.behavior.IBehaviorListener  
targeted at  
es.isdefe.webisdefe.webapp.panels.inicio.Inicio$InicioJsBehaviour@2b0c59fc  on 
component [Inicio [Component id = contenido]] threw an exception
org.apache.wicket.WicketRuntimeException:  Method onRequest of interface  
org.apache.wicket.behavior.IBehaviorListener targeted at  
es.isdefe.webisdefe.webapp.panels.inicio.Inicio$InicioJsBehaviour@2b0c59fc  on 
component [Inicio [Component id = contenido]] threw an exception
    at 
org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:274)
    at 
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)

Caused by: java.lang.IllegalArgumentException: 
java.lang.ClassCastException@1e275ff3
    at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at 
org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
    ... 26 more
18:12:26,156 ERROR DefaultExceptionMapper:123 - Unexpected error occurred
org.apache.wicket.WicketRuntimeException:  Method onRequest of interface  
org.apache.wicket.behavior.IBehaviorListener targeted at  
es.isdefe.webisdefe.webapp.panels.inicio.Inicio$InicioJsBehaviour@2b0c59fc  on 
component [Inicio [Component id = contenido]] threw an exception
    at 
org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:274)
    at 
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
     at  
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:247)
    at 
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:226)
    at 
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:830)
    at 
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
[...]
Caused by: java.lang.IllegalArgumentException: 
java.lang.ClassCastException@1e275ff3
    at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at 
org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
    ... 26 more


    > > > Oscar Besga Arcauz  < < < 


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



Re: Component to String

2013-01-24 Thread Paul Bors
You can also use a VelocityPanel in Wicket to render to HTML or plain text
or XML or whatever your velocity template feels like :)

http://wicket.apache.org/learn/projects/velocity.html

~ Thank you,
Paul Bors

On Thu, Jan 24, 2013 at 1:30 PM, Cedric Gatay  wrote:

> Yes it is the real issue when displaying HTML in emails. However, using
> Wicket's builtin templating engine is great to generate these HTML mails ;)
>
>
> On Thu, Jan 24, 2013 at 7:24 PM, Nick Pratt  wrote:
>
> > The real issue here is that most Email clients render HTML really badly,
> or
> > dont render it at all (or their implementations of such rendering is just
> > wrong).
> >
> > Even modern email clients, like the latest Outlook or GMail dont render
> > significant portions of HTML/CSS correctly, and you will likely have to
> > resort to  layout to get anything even remotely like what you're
> > after.
> >
> > N
> >
> > On Thu, Jan 24, 2013 at 1:04 PM, Francois Meillet <
> > francois.meil...@gmail.com> wrote:
> >
> > > Hi Cedric,
> > >
> > > Great !
> > > It works on 6.5
> > >
> > > François
> > >
> > >
> > > Le 24 janv. 2013 à 17:39, Cedric Gatay  a écrit :
> > >
> > > > Hi,
> > > > I recently needed to do this, I come with a simple solution (quickly
> > > > deprecated by our main application architecture however). I blogged
> > about
> > > > it here
> > > >
> > >
> >
> http://www.bloggure.info/work/java-work/use-wicket-templating-system-to-generate-html.html
> > > >
> > > > I hope it will help you, I don't know if it works well with Wicket 6
> > > > (written for 1.5).
> > > >
> > > > Regards,
> > > >
> > > >
> > > > __
> > > > Cedric Gatay
> > > > http://www.bloggure.info | http://cedric.gatay.fr |
> > > > @Cedric_Gatay
> > > >
> > > >
> > > > On Thu, Jan 24, 2013 at 5:25 PM, Steve Lowery <
> > > slow...@gatessolutions.com>wrote:
> > > >
> > > >> I found several threads on the user list about converting a
> Component
> > > into
> > > >> a String.  There are at least 2 very valid use cases where doing
> this
> > > makes
> > > >> sense:
> > > >>
> > > >> 1.  You are trying to create an html email to send out to your
> > > customers.
> > > >> Building that content out with wicket is a great way to do it.  We
> are
> > > >> able to harness Wicket's awesome i18n capabilities to generate the
> > > content.
> > > >> Otherwise, we resort to ResourceBundles or having to introduce some
> > > other
> > > >> templating library.
> > > >>
> > > >> 2.  Many Javascript APIs/JQuery Plugins (i.e. growl notifications,
> > > >> popovers, etc) want the html content passed in.  Again, ideally the
> > > >> component is written in wicket.
> > > >>
> > > >> The threads I've seen have asked for potential ways to do this, but
> > I'm
> > > >> wondering if this is a utility that should be included within Wicket
> > > >> itself.  What do you think?
> > > >>
> > > >> If you think this type of utility does not belong in the framework
> and
> > > >> should be implemented by the users instead, can you provide a
> wicket 6
> > > way
> > > >> of accomplishing this?
> > > >>
> > > >> Thanks.
> > > >>
> > > >> --
> > > >>
> > > >>
> > > >> IMPORTANT: This e-mail (including any attachments) is intended for
> the
> > > use
> > > >> of the individual or entity to which it is addressed and may contain
> > > >> information that is classified, private, or confidential. If the
> > reader
> > > of
> > > >> this message is not the intended recipient, or the employee or agent
> > > >> responsible for delivering the message to the intended recipient,
> you
> > > are
> > > >> hereby notified that any dissemination, distribution, or copying of
> > this
> > > >> communication is prohibited. If you have received this communication
> > in
> > > >> error, please notify us immediately by replying to this e-mail.
> Thank
> > > you.
> > > >>
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> >
>


Re: Component to String

2013-01-24 Thread Cedric Gatay
Yes it is the real issue when displaying HTML in emails. However, using
Wicket's builtin templating engine is great to generate these HTML mails ;)


On Thu, Jan 24, 2013 at 7:24 PM, Nick Pratt  wrote:

> The real issue here is that most Email clients render HTML really badly, or
> dont render it at all (or their implementations of such rendering is just
> wrong).
>
> Even modern email clients, like the latest Outlook or GMail dont render
> significant portions of HTML/CSS correctly, and you will likely have to
> resort to  layout to get anything even remotely like what you're
> after.
>
> N
>
> On Thu, Jan 24, 2013 at 1:04 PM, Francois Meillet <
> francois.meil...@gmail.com> wrote:
>
> > Hi Cedric,
> >
> > Great !
> > It works on 6.5
> >
> > François
> >
> >
> > Le 24 janv. 2013 à 17:39, Cedric Gatay  a écrit :
> >
> > > Hi,
> > > I recently needed to do this, I come with a simple solution (quickly
> > > deprecated by our main application architecture however). I blogged
> about
> > > it here
> > >
> >
> http://www.bloggure.info/work/java-work/use-wicket-templating-system-to-generate-html.html
> > >
> > > I hope it will help you, I don't know if it works well with Wicket 6
> > > (written for 1.5).
> > >
> > > Regards,
> > >
> > >
> > > __
> > > Cedric Gatay
> > > http://www.bloggure.info | http://cedric.gatay.fr |
> > > @Cedric_Gatay
> > >
> > >
> > > On Thu, Jan 24, 2013 at 5:25 PM, Steve Lowery <
> > slow...@gatessolutions.com>wrote:
> > >
> > >> I found several threads on the user list about converting a Component
> > into
> > >> a String.  There are at least 2 very valid use cases where doing this
> > makes
> > >> sense:
> > >>
> > >> 1.  You are trying to create an html email to send out to your
> > customers.
> > >> Building that content out with wicket is a great way to do it.  We are
> > >> able to harness Wicket's awesome i18n capabilities to generate the
> > content.
> > >> Otherwise, we resort to ResourceBundles or having to introduce some
> > other
> > >> templating library.
> > >>
> > >> 2.  Many Javascript APIs/JQuery Plugins (i.e. growl notifications,
> > >> popovers, etc) want the html content passed in.  Again, ideally the
> > >> component is written in wicket.
> > >>
> > >> The threads I've seen have asked for potential ways to do this, but
> I'm
> > >> wondering if this is a utility that should be included within Wicket
> > >> itself.  What do you think?
> > >>
> > >> If you think this type of utility does not belong in the framework and
> > >> should be implemented by the users instead, can you provide a wicket 6
> > way
> > >> of accomplishing this?
> > >>
> > >> Thanks.
> > >>
> > >> --
> > >>
> > >>
> > >> IMPORTANT: This e-mail (including any attachments) is intended for the
> > use
> > >> of the individual or entity to which it is addressed and may contain
> > >> information that is classified, private, or confidential. If the
> reader
> > of
> > >> this message is not the intended recipient, or the employee or agent
> > >> responsible for delivering the message to the intended recipient, you
> > are
> > >> hereby notified that any dissemination, distribution, or copying of
> this
> > >> communication is prohibited. If you have received this communication
> in
> > >> error, please notify us immediately by replying to this e-mail. Thank
> > you.
> > >>
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>


Re: Component to String

2013-01-24 Thread Nick Pratt
The real issue here is that most Email clients render HTML really badly, or
dont render it at all (or their implementations of such rendering is just
wrong).

Even modern email clients, like the latest Outlook or GMail dont render
significant portions of HTML/CSS correctly, and you will likely have to
resort to  layout to get anything even remotely like what you're
after.

N

On Thu, Jan 24, 2013 at 1:04 PM, Francois Meillet <
francois.meil...@gmail.com> wrote:

> Hi Cedric,
>
> Great !
> It works on 6.5
>
> François
>
>
> Le 24 janv. 2013 à 17:39, Cedric Gatay  a écrit :
>
> > Hi,
> > I recently needed to do this, I come with a simple solution (quickly
> > deprecated by our main application architecture however). I blogged about
> > it here
> >
> http://www.bloggure.info/work/java-work/use-wicket-templating-system-to-generate-html.html
> >
> > I hope it will help you, I don't know if it works well with Wicket 6
> > (written for 1.5).
> >
> > Regards,
> >
> >
> > __
> > Cedric Gatay
> > http://www.bloggure.info | http://cedric.gatay.fr |
> > @Cedric_Gatay
> >
> >
> > On Thu, Jan 24, 2013 at 5:25 PM, Steve Lowery <
> slow...@gatessolutions.com>wrote:
> >
> >> I found several threads on the user list about converting a Component
> into
> >> a String.  There are at least 2 very valid use cases where doing this
> makes
> >> sense:
> >>
> >> 1.  You are trying to create an html email to send out to your
> customers.
> >> Building that content out with wicket is a great way to do it.  We are
> >> able to harness Wicket's awesome i18n capabilities to generate the
> content.
> >> Otherwise, we resort to ResourceBundles or having to introduce some
> other
> >> templating library.
> >>
> >> 2.  Many Javascript APIs/JQuery Plugins (i.e. growl notifications,
> >> popovers, etc) want the html content passed in.  Again, ideally the
> >> component is written in wicket.
> >>
> >> The threads I've seen have asked for potential ways to do this, but I'm
> >> wondering if this is a utility that should be included within Wicket
> >> itself.  What do you think?
> >>
> >> If you think this type of utility does not belong in the framework and
> >> should be implemented by the users instead, can you provide a wicket 6
> way
> >> of accomplishing this?
> >>
> >> Thanks.
> >>
> >> --
> >>
> >>
> >> IMPORTANT: This e-mail (including any attachments) is intended for the
> use
> >> of the individual or entity to which it is addressed and may contain
> >> information that is classified, private, or confidential. If the reader
> of
> >> this message is not the intended recipient, or the employee or agent
> >> responsible for delivering the message to the intended recipient, you
> are
> >> hereby notified that any dissemination, distribution, or copying of this
> >> communication is prohibited. If you have received this communication in
> >> error, please notify us immediately by replying to this e-mail. Thank
> you.
> >>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Component to String

2013-01-24 Thread Francois Meillet
Hi Cedric,

Great !
It works on 6.5

François


Le 24 janv. 2013 à 17:39, Cedric Gatay  a écrit :

> Hi,
> I recently needed to do this, I come with a simple solution (quickly
> deprecated by our main application architecture however). I blogged about
> it here
> http://www.bloggure.info/work/java-work/use-wicket-templating-system-to-generate-html.html
> 
> I hope it will help you, I don't know if it works well with Wicket 6
> (written for 1.5).
> 
> Regards,
> 
> 
> __
> Cedric Gatay
> http://www.bloggure.info | http://cedric.gatay.fr |
> @Cedric_Gatay
> 
> 
> On Thu, Jan 24, 2013 at 5:25 PM, Steve Lowery 
> wrote:
> 
>> I found several threads on the user list about converting a Component into
>> a String.  There are at least 2 very valid use cases where doing this makes
>> sense:
>> 
>> 1.  You are trying to create an html email to send out to your customers.
>> Building that content out with wicket is a great way to do it.  We are
>> able to harness Wicket's awesome i18n capabilities to generate the content.
>> Otherwise, we resort to ResourceBundles or having to introduce some other
>> templating library.
>> 
>> 2.  Many Javascript APIs/JQuery Plugins (i.e. growl notifications,
>> popovers, etc) want the html content passed in.  Again, ideally the
>> component is written in wicket.
>> 
>> The threads I've seen have asked for potential ways to do this, but I'm
>> wondering if this is a utility that should be included within Wicket
>> itself.  What do you think?
>> 
>> If you think this type of utility does not belong in the framework and
>> should be implemented by the users instead, can you provide a wicket 6 way
>> of accomplishing this?
>> 
>> Thanks.
>> 
>> --
>> 
>> 
>> IMPORTANT: This e-mail (including any attachments) is intended for the use
>> of the individual or entity to which it is addressed and may contain
>> information that is classified, private, or confidential. If the reader of
>> this message is not the intended recipient, or the employee or agent
>> responsible for delivering the message to the intended recipient, you are
>> hereby notified that any dissemination, distribution, or copying of this
>> communication is prohibited. If you have received this communication in
>> error, please notify us immediately by replying to this e-mail. Thank you.
>> 


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



Re: Component to String

2013-01-24 Thread Cedric Gatay
Hi,
I recently needed to do this, I come with a simple solution (quickly
deprecated by our main application architecture however). I blogged about
it here
http://www.bloggure.info/work/java-work/use-wicket-templating-system-to-generate-html.html

I hope it will help you, I don't know if it works well with Wicket 6
(written for 1.5).

Regards,


__
Cedric Gatay
http://www.bloggure.info | http://cedric.gatay.fr |
@Cedric_Gatay


On Thu, Jan 24, 2013 at 5:25 PM, Steve Lowery wrote:

> I found several threads on the user list about converting a Component into
> a String.  There are at least 2 very valid use cases where doing this makes
> sense:
>
> 1.  You are trying to create an html email to send out to your customers.
>  Building that content out with wicket is a great way to do it.  We are
> able to harness Wicket's awesome i18n capabilities to generate the content.
>  Otherwise, we resort to ResourceBundles or having to introduce some other
> templating library.
>
> 2.  Many Javascript APIs/JQuery Plugins (i.e. growl notifications,
> popovers, etc) want the html content passed in.  Again, ideally the
> component is written in wicket.
>
> The threads I've seen have asked for potential ways to do this, but I'm
> wondering if this is a utility that should be included within Wicket
> itself.  What do you think?
>
> If you think this type of utility does not belong in the framework and
> should be implemented by the users instead, can you provide a wicket 6 way
> of accomplishing this?
>
> Thanks.
>
> --
>
>
> IMPORTANT: This e-mail (including any attachments) is intended for the use
> of the individual or entity to which it is addressed and may contain
> information that is classified, private, or confidential. If the reader of
> this message is not the intended recipient, or the employee or agent
> responsible for delivering the message to the intended recipient, you are
> hereby notified that any dissemination, distribution, or copying of this
> communication is prohibited. If you have received this communication in
> error, please notify us immediately by replying to this e-mail. Thank you.
>


Component to String

2013-01-24 Thread Steve Lowery
I found several threads on the user list about converting a Component into
a String.  There are at least 2 very valid use cases where doing this makes
sense:

1.  You are trying to create an html email to send out to your customers.
 Building that content out with wicket is a great way to do it.  We are
able to harness Wicket's awesome i18n capabilities to generate the content.
 Otherwise, we resort to ResourceBundles or having to introduce some other
templating library.

2.  Many Javascript APIs/JQuery Plugins (i.e. growl notifications,
popovers, etc) want the html content passed in.  Again, ideally the
component is written in wicket.

The threads I've seen have asked for potential ways to do this, but I'm
wondering if this is a utility that should be included within Wicket
itself.  What do you think?

If you think this type of utility does not belong in the framework and
should be implemented by the users instead, can you provide a wicket 6 way
of accomplishing this?

Thanks.

-- 
 

IMPORTANT: This e-mail (including any attachments) is intended for the use 
of the individual or entity to which it is addressed and may contain 
information that is classified, private, or confidential. If the reader of 
this message is not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, or copying of this 
communication is prohibited. If you have received this communication in 
error, please notify us immediately by replying to this e-mail. Thank you.


Re: documentation

2013-01-24 Thread Andrea Del Bene
For what it's worth :) I'm about to finish a free reference document for 
Wicket 6. I've started to write it almost one and a half years ago and 
it should be ready by the end of February.
The example code used in the document are hosted here 
https://github.com/bitstorm/Wicket-tutorial-examples

This is great !
I am looking forward to reading the new documentation.

Best regards
Phlippe


2013/1/23 Rob Schroeder 


Hi all,

On Tue, 22 Jan 2013 18:25:41 +0100, Guillaume Smet wrote:


On Tue, Jan 22, 2013 at 5:53 PM, Philippe Demaison
 wrote:

Are you kidding ?

First thing first, while everyone agrees that a good documentation is
a good thing, you should consider that you don't pay anyone to write
it.

On Tue, 22 Jan 2013 19:08:35 +0100, Thies Edeling wrote:


Wicket is open source, if you feel that the documentation is lacking -

feel

free to contribute.

don't mean to offend anyone, but things like those are the least helpful
kind of answers possible. We all know Wicket is open source, we all know
what open source means, an we all know that we aren't paying anyone.
It's just that if someone had the resources to pay anyone or
significantly contribute to the documentation himself (*after* having
learned everything he'd need, and after doing so *without* a complete
reference), he'd probably not complain in the first place. More probable
is that he's already got a job to do himself and is just looking for the
best tool to do so.

Of course, shouting abuse (not that I'd think anyone here did) at maybe
even unsalaried developers who are doing what they can doesn't help,
either.

To add my experience to the subject, I bought the 'Wicket in Action'
book some time ago, and for my first steps with Wicket 6 I tried to
extract what I could from it and the Net.

The problem is, just as Philippe said, much has changed between
versions, and it's not only that things I find sometimes don't apply
anymore, but, what's possibly worse, I can't even know whether code
examples I find still work until I tried them myself, as the changes
aren't really exhaustively documented and because, well, there is no
such thing as a Wicket 6 reference.

As far as I am concerned, I'll keep trying to get into Wicket 6, though
- but that's something I'll be doing in my spare time, because I
probably won't ever see Wicket used at my main job, and so I can take my
time.

Cheers,
Robert




-
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: documentation

2013-01-24 Thread Philippe Demaison
This is great !
I am looking forward to reading the new documentation.

Best regards
Phlippe


2013/1/23 Rob Schroeder 

> Hi all,
>
> On Tue, 22 Jan 2013 18:25:41 +0100, Guillaume Smet wrote:
>
> > On Tue, Jan 22, 2013 at 5:53 PM, Philippe Demaison
> >  wrote:
> > > Are you kidding ?
> >
> > First thing first, while everyone agrees that a good documentation is
> > a good thing, you should consider that you don't pay anyone to write
> > it.
>
> On Tue, 22 Jan 2013 19:08:35 +0100, Thies Edeling wrote:
>
> > Wicket is open source, if you feel that the documentation is lacking -
> feel
> > free to contribute.
>
> don't mean to offend anyone, but things like those are the least helpful
> kind of answers possible. We all know Wicket is open source, we all know
> what open source means, an we all know that we aren't paying anyone.
> It's just that if someone had the resources to pay anyone or
> significantly contribute to the documentation himself (*after* having
> learned everything he'd need, and after doing so *without* a complete
> reference), he'd probably not complain in the first place. More probable
> is that he's already got a job to do himself and is just looking for the
> best tool to do so.
>
> Of course, shouting abuse (not that I'd think anyone here did) at maybe
> even unsalaried developers who are doing what they can doesn't help,
> either.
>
> To add my experience to the subject, I bought the 'Wicket in Action'
> book some time ago, and for my first steps with Wicket 6 I tried to
> extract what I could from it and the Net.
>
> The problem is, just as Philippe said, much has changed between
> versions, and it's not only that things I find sometimes don't apply
> anymore, but, what's possibly worse, I can't even know whether code
> examples I find still work until I tried them myself, as the changes
> aren't really exhaustively documented and because, well, there is no
> such thing as a Wicket 6 reference.
>
> As far as I am concerned, I'll keep trying to get into Wicket 6, though
> - but that's something I'll be doing in my spare time, because I
> probably won't ever see Wicket used at my main job, and so I can take my
> time.
>
> Cheers,
> Robert
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


How to reload form page on PageExpiredException

2013-01-24 Thread Bernard
Hi all,

How can I get Wicket 6 to respond with a refreshed stateful mounted
form page that expired on submit?

Just instead of showing an error page for the dreaded
PageExpiredException, show the form page again with the user's values
in it.

Many thanks,

Bernard


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



Re: AjaxFallbackDefaultDataTable with checkbox column

2013-01-24 Thread Ernesto Reinaldo Barreiro
Hi,

On Thu, Jan 24, 2013 at 12:17 PM, Marco Di Sabatino Di Diodoro <
marco.disabat...@tirasa.net> wrote:

> Hi all,
>
> I need to implement a AjaxFallbackDefaultDataTable that allow the user to
> select one or more rows by clicking on checkboxes located in a column. In
> addition I must implement select/deselect all in the header of the column.
> Is there an example for wicket 6.X or suggestions?
>
>
InMethod grid supports that out of the box...

https://github.com/wicketstuff/core/wiki/InMethodGrid



> Marco
> --
>
> Dott. Marco Di Sabatino Di Diodoro
> Tel. +39 3939065570
>
> Tirasa S.r.l.
> Viale D'Annunzio 267 - 65127 Pescara
> Tel +39 0859116307 / FAX +39 085973
> http://www.tirasa.net
>
> Apache Syncope PMC Member
> http://people.apache.org/~mdisabatino
>
>
>
>
>
>


-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ 


AjaxFallbackDefaultDataTable with checkbox column

2013-01-24 Thread Marco Di Sabatino Di Diodoro
Hi all,

I need to implement a AjaxFallbackDefaultDataTable that allow the user to 
select one or more rows by clicking on checkboxes located in a column. In 
addition I must implement select/deselect all in the header of the column.
Is there an example for wicket 6.X or suggestions? 

Marco
--

Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 085973
http://www.tirasa.net

Apache Syncope PMC Member
http://people.apache.org/~mdisabatino