Re: issue with file download out of form component

2012-10-24 Thread Maxim Solodovnik
Thanks for your help!
The issue seems to be resolved now.
We had lots of dependencies to the huge number of various servlet-api.jar
+ custom ServletRequestMapper

I perform cleanup and now everything works as expected

On Thu, Oct 25, 2012 at 8:51 AM, Maxim Solodovnik wrote:

> Hello Martin,
>
> Thanks for the tip.
> I'll double check the version of javax.servlet currently being used
>
>
> On Wed, Oct 24, 2012 at 7:24 PM, Martin Grigorov wrote:
>
>> Hi Maxim,
>>
>> What web container do you use ?
>> According to Servlet API
>> (
>> http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#getParameterMap()
>> )
>> the map should be >
>> On Wed, Oct 24, 2012 at 1:45 PM, Maxim Solodovnik 
>> wrote:
>> > Hello Martin,
>> >
>> > I just have tested Wicket 6.2
>> > Using AjaxDownload:
>> >
>> https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/util/AjaxDownload.java
>> >
>> >
>> https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/components/admin/backup/BackupPanel.java(line
>> :
>> > 123 currently commented out)
>> >
>> > I get URL like this on file download:
>> >
>> http://192.168.72.100:5080/openmeetings/html/?4-1.IBehaviorListener.0-contents-child-backupUpload&antiCache=1351074316336
>> >
>> > And then get ClassCastException from Wiket in:
>> > org.apache.wicket.protocol.http.servlet.ServletWebRequest line 305
>> >
>> > param.getValue() returns String and cannot be casted to String[] (for
>> the
>> > 'antiCache' parameter above)
>> >
>> > Is there anything I can do to fix it?
>> >
>> >
>> > Thanks a lot in advance :)
>> >
>> > On Wed, Oct 17, 2012 at 5:39 PM, Maxim Solodovnik > >wrote:
>> >
>> >> Thanks a lot!
>> >> Those NullPointer exceptions makes makes me mad :( (we use customized
>> >> Tomcat 6 in our project) And I get them all the time.
>> >> I get rid of all callback URL and all parameters passed via URL.
>> >>
>> >> Thanks!! :)
>> >>
>> >>
>> >> On Wed, Oct 17, 2012 at 5:11 PM, Martin Grigorov > >wrote:
>> >>
>> >>> There was a response from Maxim from OpenMeetings team, but
>> >>> users@wicket.apache.org was not in CC:
>> >>>
>> >>> 
>> >>> Hello Martin,
>> >>>
>> >>> I have modified the code and have removed AjaxDownloader (since it is
>> not
>> >>> really necessary).
>> >>> NullPointerException somehow happens while post parameters parsing
>> >>> (getCallbackURL) is not working anymore.
>> >>>
>> >>> I believe this is somehow connected with custom HomePageMapper
>> >>>
>> >>>
>> >>>
>> https://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/app/Application.java?revision=1384647&view=markup
>> >>>
>> >>> line 62 and below.
>> >>> Maybe you can help me with this?
>> >>>
>> >>> I have added HomePageMapper to implement "single page application" and
>> >>> remove all URL parameters automaticatilly being added by Wicket.
>> >>>
>> >>> Thanks in advance
>> >>>
>> >>> 
>> >>>
>> >>>
>> >>> Hi Maxim,
>> >>>
>> >>> The NullPointerException is while Wicket tries to read the POST
>> >>> parameters. The request mappers manipulate only the GET parameters, so
>> >>> I think it is not related.
>> >>> I've just checked Jetty 7.6.3 sources and they return String[0] so it
>> >>> should be OK in this particular version of Jetty. But I'll add the
>> >>> check anyway with https://issues.apache.org/jira/browse/WICKET-4818
>> >>>
>> >>> On Wed, Oct 17, 2012 at 9:16 AM, Martin Grigorov <
>> mgrigo...@apache.org>
>> >>> wrote:
>> >>> > Hi,
>> >>> >
>> >>> > On Tue, Oct 16, 2012 at 7:59 PM, seba.wag...@gmail.com
>> >>> >  wrote:
>> >>> >> Hi,
>> >>> >>
>> >>> >> I did follow this tutorial to create a download via Ajax in a form:
>> >>> >>
>> >>>
>> https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow
>> >>> >>
>> >>> >> The slightly modified code can be seen here:
>> >>> >>
>> >>>
>> https://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/components/admin/backup/BackupPanel.java?view=markup
>> >>> >> Line 127 "download.initialize(target);" is called.
>> >>> >
>> >>> > It seems you have modified BackupPanel. There is no code like
>> >>> > "download.initialize(target)"
>> >>> >
>> >>> >>
>> >>> >> The rest seems to me similar to the example, except for that I set
>> the
>> >>> File
>> >>> >> is set dynamically with every Ajax request.
>> >>> >>
>> >>> >> The File itself does exist and is created correctly.
>> >>> >>
>> >>> >> However Wicket throws this wired exception:
>> >>> >> http://pastebin.com/raw.php?i=Fijqjd5y
>> >>> >
>> >>> > NullPointerException is not something one should expect so it is a
>> bug.
>> >>> > According to
>> >>>
>> https://github.com/apache/wicket/blob/build/wicket-6.0.0/wicket-core/src/main/java/org/apache/wicket/protocol/http/servlet/ServletWebRequest.java#L321
>> >>> > its cause is that HttpServletRequest.getParametersMap() returns a
>> Map
>> 

Re: issue with file download out of form component

2012-10-24 Thread Maxim Solodovnik
Hello Martin,

Thanks for the tip.
I'll double check the version of javax.servlet currently being used

On Wed, Oct 24, 2012 at 7:24 PM, Martin Grigorov wrote:

> Hi Maxim,
>
> What web container do you use ?
> According to Servlet API
> (
> http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#getParameterMap()
> )
> the map should be 
> On Wed, Oct 24, 2012 at 1:45 PM, Maxim Solodovnik 
> wrote:
> > Hello Martin,
> >
> > I just have tested Wicket 6.2
> > Using AjaxDownload:
> >
> https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/util/AjaxDownload.java
> >
> >
> https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/components/admin/backup/BackupPanel.java(line
> :
> > 123 currently commented out)
> >
> > I get URL like this on file download:
> >
> http://192.168.72.100:5080/openmeetings/html/?4-1.IBehaviorListener.0-contents-child-backupUpload&antiCache=1351074316336
> >
> > And then get ClassCastException from Wiket in:
> > org.apache.wicket.protocol.http.servlet.ServletWebRequest line 305
> >
> > param.getValue() returns String and cannot be casted to String[] (for the
> > 'antiCache' parameter above)
> >
> > Is there anything I can do to fix it?
> >
> >
> > Thanks a lot in advance :)
> >
> > On Wed, Oct 17, 2012 at 5:39 PM, Maxim Solodovnik  >wrote:
> >
> >> Thanks a lot!
> >> Those NullPointer exceptions makes makes me mad :( (we use customized
> >> Tomcat 6 in our project) And I get them all the time.
> >> I get rid of all callback URL and all parameters passed via URL.
> >>
> >> Thanks!! :)
> >>
> >>
> >> On Wed, Oct 17, 2012 at 5:11 PM, Martin Grigorov  >wrote:
> >>
> >>> There was a response from Maxim from OpenMeetings team, but
> >>> users@wicket.apache.org was not in CC:
> >>>
> >>> 
> >>> Hello Martin,
> >>>
> >>> I have modified the code and have removed AjaxDownloader (since it is
> not
> >>> really necessary).
> >>> NullPointerException somehow happens while post parameters parsing
> >>> (getCallbackURL) is not working anymore.
> >>>
> >>> I believe this is somehow connected with custom HomePageMapper
> >>>
> >>>
> >>>
> https://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/app/Application.java?revision=1384647&view=markup
> >>>
> >>> line 62 and below.
> >>> Maybe you can help me with this?
> >>>
> >>> I have added HomePageMapper to implement "single page application" and
> >>> remove all URL parameters automaticatilly being added by Wicket.
> >>>
> >>> Thanks in advance
> >>>
> >>> 
> >>>
> >>>
> >>> Hi Maxim,
> >>>
> >>> The NullPointerException is while Wicket tries to read the POST
> >>> parameters. The request mappers manipulate only the GET parameters, so
> >>> I think it is not related.
> >>> I've just checked Jetty 7.6.3 sources and they return String[0] so it
> >>> should be OK in this particular version of Jetty. But I'll add the
> >>> check anyway with https://issues.apache.org/jira/browse/WICKET-4818
> >>>
> >>> On Wed, Oct 17, 2012 at 9:16 AM, Martin Grigorov  >
> >>> wrote:
> >>> > Hi,
> >>> >
> >>> > On Tue, Oct 16, 2012 at 7:59 PM, seba.wag...@gmail.com
> >>> >  wrote:
> >>> >> Hi,
> >>> >>
> >>> >> I did follow this tutorial to create a download via Ajax in a form:
> >>> >>
> >>>
> https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow
> >>> >>
> >>> >> The slightly modified code can be seen here:
> >>> >>
> >>>
> https://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/components/admin/backup/BackupPanel.java?view=markup
> >>> >> Line 127 "download.initialize(target);" is called.
> >>> >
> >>> > It seems you have modified BackupPanel. There is no code like
> >>> > "download.initialize(target)"
> >>> >
> >>> >>
> >>> >> The rest seems to me similar to the example, except for that I set
> the
> >>> File
> >>> >> is set dynamically with every Ajax request.
> >>> >>
> >>> >> The File itself does exist and is created correctly.
> >>> >>
> >>> >> However Wicket throws this wired exception:
> >>> >> http://pastebin.com/raw.php?i=Fijqjd5y
> >>> >
> >>> > NullPointerException is not something one should expect so it is a
> bug.
> >>> > According to
> >>>
> https://github.com/apache/wicket/blob/build/wicket-6.0.0/wicket-core/src/main/java/org/apache/wicket/protocol/http/servlet/ServletWebRequest.java#L321
> >>> > its cause is that HttpServletRequest.getParametersMap() returns a Map
> >>> > with an entry with value == null. I'm not sure in what cases this can
> >>> > happen but I'll add a check for null there.
> >>> >
> >>> >>
> >>> >> The trace seems to be an internal Wicket error. Is this a Bug inside
> >>> Wicket?
> >>> >>
> >>> >> Sebastian
> >>> >> --
> >>> >> Sebastian Wagner
> >>> >> https://twitter.com/#!/dead_lock
> >>> >> http://www.webbase-design.de
> >>> >> http://www.wagner-sebastian.com
> >>> >> seba.wag...@gmail

Re: Custom CSS for Feedback message is broken in 1.5

2012-10-24 Thread Joachim Schrod
Paul Bors wrote:
> Yes, but how would that affect other projects that do expect the CSS to be
> applied to the LI or SPAN?
> Come to think about it, I could very simple replace the content of both with
> my own panels right?
> 
> I think this is a project specific requirement 

I just want to add my voice that it's not a project specific
requirement, but a sound design change that resolves a design bug.

That a CSS class applies both to LI and to below-SPAN element, is
clearly not appropriate for almost all situations. The proposed
change even keeps that, for backward-compatibility.

Of course, one can subclass FeedbackPanel and sustitute the HTML
code. We do it in all projects. But this is a workaround for a bug
in Wicket's HTML/CSS/interface design, and not a to-be-continued asset.

Just my 0.03€ (adjusted for inflation),
Joachim


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



RE: Using AutocompleteTextField with database entries (without a converter)

2012-10-24 Thread Paul Bors
As for your search by multiple columns in the db... do something silly like
using an OR in your SQL and filter by both columns :)

Another idea is to include a drop down to filter by what column you want to
search.

~ Thank you,
  Paul Bors

-Original Message-
From: Gaetan Zoritchak [mailto:g.zoritc...@moncoachfinance.com] 
Sent: Wednesday, October 24, 2012 5:46 PM
To: users@wicket.apache.org
Subject: Re: Using AutocompleteTextField with database entries (without a
converter)

Thanks for the input. I'm going to have a look.

Gaetan
2012/10/24 Paul Bors 

> Take a look at Select2 developed by Ivan Vaynberg one of Wicket's
> contributors:
> http://ivaynberg.github.com/select2/
>
> You should try out the "Loading Remote Data" and "Infinite Scroll with 
> Remote Data" examples.
>
> Thanks Ivan for a great job!
>
> ~ Thank you,
>   Paul Bors
>
> -Original Message-
> From: Gaetan Zoritchak [mailto:g.zoritc...@moncoachfinance.com]
> Sent: Wednesday, October 24, 2012 9:39 AM
> To: users@wicket.apache.org
> Subject: Using AutocompleteTextField with database entries (without a
> converter)
>
> Hello,
> I don't know what is the best way of impleting that in Wicket
>
> That's my use case:
> - the user has to select a customer in a field of a form,
> - he starts to type some characters,
> - the list shows some possibilities based on a database request using 
> the first and last names, the email, ...
> - then he selects one item in the list,
> - the field just shows few informations (Last Name for exemple).
>
> I don't want to use a converter because the data in the field could 
> eventually match more than one entry in the database. I can give more 
> context in the list to make the user be sure of his selection. When 
> the selection is made, I can put a title so that on a mouse over event 
> the user visualize the full information on the customer selection.
>
> The best solution would be to use the database id of the customer as a 
> key during the selection phase.
>
> I don't know what is the best way of implementing this behaviour.
>
> Thanks a lot for any ideas,
>
> Gaetan,
>
>
> -
> 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: Using AutocompleteTextField with database entries (without a converter)

2012-10-24 Thread Gaetan Zoritchak
Thanks for the input. I'm going to have a look.

Gaetan
2012/10/24 Paul Bors 

> Take a look at Select2 developed by Ivan Vaynberg one of Wicket's
> contributors:
> http://ivaynberg.github.com/select2/
>
> You should try out the "Loading Remote Data" and "Infinite Scroll with
> Remote Data" examples.
>
> Thanks Ivan for a great job!
>
> ~ Thank you,
>   Paul Bors
>
> -Original Message-
> From: Gaetan Zoritchak [mailto:g.zoritc...@moncoachfinance.com]
> Sent: Wednesday, October 24, 2012 9:39 AM
> To: users@wicket.apache.org
> Subject: Using AutocompleteTextField with database entries (without a
> converter)
>
> Hello,
> I don't know what is the best way of impleting that in Wicket
>
> That's my use case:
> - the user has to select a customer in a field of a form,
> - he starts to type some characters,
> - the list shows some possibilities based on a database request using the
> first and last names, the email, ...
> - then he selects one item in the list,
> - the field just shows few informations (Last Name for exemple).
>
> I don't want to use a converter because the data in the field could
> eventually match more than one entry in the database. I can give more
> context in the list to make the user be sure of his selection. When the
> selection is made, I can put a title so that on a mouse over event the user
> visualize the full information on the customer selection.
>
> The best solution would be to use the database id of the customer as a key
> during the selection phase.
>
> I don't know what is the best way of implementing this behaviour.
>
> Thanks a lot for any ideas,
>
> Gaetan,
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: AjaxErrorStrategy.INVOKE_FAILURE_HANDLER in wicket6

2012-10-24 Thread Martin Grigorov
Hi,



On Wed, Oct 24, 2012 at 6:45 PM, Steve Lowery
 wrote:
> I see I can override the AjaxErrorHandlingStrategy in wicket6 to
> be AjaxErrorStrategy.INVOKE_FAILURE_HANDLER so that we don't get a 302 to
> the appropriate error page (InternalError, NotAuthorized, etc).  My
> question is how do I do something useful with this?  With only that change,
> the 500 error comes back to the client and we get a javascript error.

This is not new. It is available since 1.5.0.
Check http://www.wicket-library.com/wicket-examples/ajax/links?0. The
link with 'onFailure' uses this strategy and it shows that the failure
handler is actually called.

>
> We are using ajax and breadcrumbs on our site and what I'd like to do is
> hook into the wicket framework so that if one of these errors was detected
> on an ajax request, I can simply swap out the "content" portion of the page
> with the appropriate error component.  That way, the state of the page,
> including visited breadcrumbs, navigation menus, etc remain intact, so the
> user can hopefully go "back" to some point they were working on by clicking
> on one of their breadcrumbs.
>
> --
>
>
> 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.



-- 
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: Mount Page

2012-10-24 Thread Decebal Suiu
In your panel: 

WebApplication application = getApplication();
application.mountPage(...); // for mount

and 

application.unmount(...); // for unmount



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Mount-Page-tp4653318p4653322.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: Mount Page

2012-10-24 Thread Bas Gooren
There is nothing stopping you from calling getApplication() on any 
component, and casting that to a WebApplication.


Using that webapp reference you can easily mount/unmount pages.

Met vriendelijke groet,
Kind regards,

Bas Gooren

Op 24-10-2012 17:31, schreef dpmihai:

Can a page be mounted to an url from outside WebApplication?

I am looking for a way to mount / unmount a page to / from an url when some
link from a Panel is clicked. Is this possible?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Mount-Page-tp4653318.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





AjaxErrorStrategy.INVOKE_FAILURE_HANDLER in wicket6

2012-10-24 Thread Steve Lowery
I see I can override the AjaxErrorHandlingStrategy in wicket6 to
be AjaxErrorStrategy.INVOKE_FAILURE_HANDLER so that we don't get a 302 to
the appropriate error page (InternalError, NotAuthorized, etc).  My
question is how do I do something useful with this?  With only that change,
the 500 error comes back to the client and we get a javascript error.

We are using ajax and breadcrumbs on our site and what I'd like to do is
hook into the wicket framework so that if one of these errors was detected
on an ajax request, I can simply swap out the "content" portion of the page
with the appropriate error component.  That way, the state of the page,
including visited breadcrumbs, navigation menus, etc remain intact, so the
user can hopefully go "back" to some point they were working on by clicking
on one of their breadcrumbs.

-- 
 

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: Custom CSS for Feedback message is broken in 1.5

2012-10-24 Thread Sebastien
Paul, the problem is that the css class name, returned by getCSSClass will
applies to both li and span.
Consider the style you want to apply (the css class name) is not your own
but coming from an external library ui, like jquery-ui or bootstrap. You
need to apply the css class only to the span *or* to the li. The class
names are added by the FeedbackPanel itelf, in any case, you cannot control
this just by providing you own html markup. I am pretty sure the html you
provided is not an exception and that you will get the class name twice...

WICKET-4831 is backward compatible. However, we can debate if getCSSClass
should be deprecated or not.
For me, it would be a bad practice to let it protected and should therefore
be marked as private; but it is my non binding opinion.

> If that's the case, then I should start flooding the wicket Jira queue
with all the specific needs for my own projects.
I understand perfectly. Thus, there is a workarround I provided ealier in
this thread; but - IMHO, again - I think it could be considered as an issue
as it prevent a (logical?) customization...

Sebastien.

On Wed, Oct 24, 2012 at 4:48 PM, Paul Bors  wrote:

> Yes, but how would that affect other projects that do expect the CSS to be
> applied to the LI or SPAN?
> Come to think about it, I could very simple replace the content of both
> with
> my own panels right?
>
> I think this is a project specific requirement and as such should be
> handled
> by extending from Wicket's code and adjusting the behavior as per the
> specific project requirements thus I don't see a real need for WICKET-4831
> "Split custom CSS for Feedback message (list and label)".
>
> If that's the case, then I should start flooding the wicket Jira queue with
> all the specific needs for my own projects.
>
> I only gave an example of how one can have full control with little code :)
>
>  ~ Thank you,
> Paul Bors
>
> -Original Message-
> From: Sven Meier [mailto:s...@meiers.net]
> Sent: Wednesday, October 24, 2012 3:04 AM
> To: users@wicket.apache.org
> Subject: Re: Custom CSS for Feedback message is broken in 1.5
>
> The point is that he does *not* want getCSSClass() to be applied to the
> .
>
> Sven
>
> On 10/24/2012 12:24 AM, Paul Bors wrote:
> > There is nothing stopping you from extending from the FeedBackPanel
> > and override the HTML the Wicket component is using.
> >
> > This is how we did it.
> >
> > The HTML:
> > http://wicket.apache.org";>
> >  
> >  
> >  
> >  [Feedback message(s)]
> >  
> >  
> >  
> > 
> >
> > And the Java:
> > import org.apache.wicket.feedback.IFeedbackMessageFilter;
> > import org.apache.wicket.markup.html.panel.FeedbackPanel;
> >
> > public class MyFeedbackPanel extends FeedbackPanel {
> >  private static final long serialVersionUID = 1L;
> >
> >  public MyFeedbackPanel (String id) {
> >  this(id, null);
> >  }
> >
> >  public MyFeedbackPanel (String id, IFeedbackMessageFilter filter) {
> >  super(id, filter);
> >  setOutputMarkupId(true);
> >  }
> > }
> >
> > Our application wide CSS:
> >
> > /* FEEDBACK MESSAGES */
> >
> > .feedbackMessages {
> >  padding-left: 0;
> >  padding-top: 0;
> >  text-align: left;
> >  margin-left: 0;
> >  margin-top: 0;
> >  padding-bottom: 1em;
> > }
> >
> > .feedbackMessages div {
> >  padding: 0.5em;
> >  font-size: xx-small;
> >  border: none;
> > }
> >
> > .feedbackMessages div.feedbackPanelERROR {
> >  background-color: lightsalmon;
> >  border: 1px solid darkred;
> > }
> >
> > .feedbackMessages div.feedbackPanelWARNING {
> >  background-color: #FFB90F;
> >  border: 1px solid darkgoldenrod;
> > }
> >
> > .feedbackMessages div.feedbackPanelINFO {
> >  background-color: lightgreen;
> >  border: 1px solid darkgreen;
> > }
> >
> > This code was written for Wicket 1.3.x and migrated to 1.5.x w/o any
> > changes (we're not yet up to 6.x).
> >
> > ~ Thank you,
> >Paul Bors
> >
> > -Original Message-
> > From: Alec Swan [mailto:alecs...@gmail.com]
> > Sent: Tuesday, October 23, 2012 6:08 PM
> > To: users@wicket.apache.org
> > Subject: Re: Custom CSS for Feedback message is broken in 1.5
> >
> > Sebastien, List, ListItem and Label make sense to me and match the
> > terms used in FeedbackPanel class. However, I try not to get too hung
> > up on naming for the sake of making progress :)
> >
> > On Tue, Oct 23, 2012 at 3:39 PM, Sebastien  wrote:
> >> Alec, you are right, I did thought about that.
> >>
> >> My reflection was that getListCSS applies to list *element* (li) and
> >> it is quite easy to understand that getLabelCSS (which applies to the
> >> label) stands for the message itself (which is a span element).
> >>
> >> But in another hand we can imagine that these naming are related to
> >> wicket
> >> *component* instead; so, it is true that it would technically best to
> >> have getListItemCSS 

RE: Using AutocompleteTextField with database entries (without a converter)

2012-10-24 Thread Paul Bors
Take a look at Select2 developed by Ivan Vaynberg one of Wicket's
contributors:
http://ivaynberg.github.com/select2/

You should try out the "Loading Remote Data" and "Infinite Scroll with
Remote Data" examples.

Thanks Ivan for a great job!

~ Thank you,
  Paul Bors

-Original Message-
From: Gaetan Zoritchak [mailto:g.zoritc...@moncoachfinance.com] 
Sent: Wednesday, October 24, 2012 9:39 AM
To: users@wicket.apache.org
Subject: Using AutocompleteTextField with database entries (without a
converter)

Hello,
I don't know what is the best way of impleting that in Wicket

That's my use case:
- the user has to select a customer in a field of a form,
- he starts to type some characters,
- the list shows some possibilities based on a database request using the
first and last names, the email, ...
- then he selects one item in the list,
- the field just shows few informations (Last Name for exemple).

I don't want to use a converter because the data in the field could
eventually match more than one entry in the database. I can give more
context in the list to make the user be sure of his selection. When the
selection is made, I can put a title so that on a mouse over event the user
visualize the full information on the customer selection.

The best solution would be to use the database id of the customer as a key
during the selection phase.

I don't know what is the best way of implementing this behaviour.

Thanks a lot for any ideas,

Gaetan,


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



RE: Custom CSS for Feedback message is broken in 1.5

2012-10-24 Thread Paul Bors
Yes, but how would that affect other projects that do expect the CSS to be
applied to the LI or SPAN?
Come to think about it, I could very simple replace the content of both with
my own panels right?

I think this is a project specific requirement and as such should be handled
by extending from Wicket's code and adjusting the behavior as per the
specific project requirements thus I don't see a real need for WICKET-4831
"Split custom CSS for Feedback message (list and label)".

If that's the case, then I should start flooding the wicket Jira queue with
all the specific needs for my own projects.

I only gave an example of how one can have full control with little code :)

 ~ Thank you,
Paul Bors

-Original Message-
From: Sven Meier [mailto:s...@meiers.net] 
Sent: Wednesday, October 24, 2012 3:04 AM
To: users@wicket.apache.org
Subject: Re: Custom CSS for Feedback message is broken in 1.5

The point is that he does *not* want getCSSClass() to be applied to the
.

Sven

On 10/24/2012 12:24 AM, Paul Bors wrote:
> There is nothing stopping you from extending from the FeedBackPanel 
> and override the HTML the Wicket component is using.
>
> This is how we did it.
>
> The HTML:
> http://wicket.apache.org";>
>  
>  
>  
>  [Feedback message(s)]
>  
>  
>  
> 
>
> And the Java:
> import org.apache.wicket.feedback.IFeedbackMessageFilter;
> import org.apache.wicket.markup.html.panel.FeedbackPanel;
>
> public class MyFeedbackPanel extends FeedbackPanel {
>  private static final long serialVersionUID = 1L;
>  
>  public MyFeedbackPanel (String id) {
>  this(id, null);
>  }
>  
>  public MyFeedbackPanel (String id, IFeedbackMessageFilter filter) {
>  super(id, filter);
>  setOutputMarkupId(true);
>  }
> }
>
> Our application wide CSS:
>
> /* FEEDBACK MESSAGES */
>
> .feedbackMessages {
>  padding-left: 0;
>  padding-top: 0;
>  text-align: left;
>  margin-left: 0;
>  margin-top: 0;
>  padding-bottom: 1em;
> }
>
> .feedbackMessages div {
>  padding: 0.5em;
>  font-size: xx-small;
>  border: none;
> }
>
> .feedbackMessages div.feedbackPanelERROR {
>  background-color: lightsalmon;
>  border: 1px solid darkred;
> }
>
> .feedbackMessages div.feedbackPanelWARNING {
>  background-color: #FFB90F;
>  border: 1px solid darkgoldenrod;
> }
>
> .feedbackMessages div.feedbackPanelINFO {
>  background-color: lightgreen;
>  border: 1px solid darkgreen;
> }
>
> This code was written for Wicket 1.3.x and migrated to 1.5.x w/o any 
> changes (we're not yet up to 6.x).
>
> ~ Thank you,
>Paul Bors
>
> -Original Message-
> From: Alec Swan [mailto:alecs...@gmail.com]
> Sent: Tuesday, October 23, 2012 6:08 PM
> To: users@wicket.apache.org
> Subject: Re: Custom CSS for Feedback message is broken in 1.5
>
> Sebastien, List, ListItem and Label make sense to me and match the 
> terms used in FeedbackPanel class. However, I try not to get too hung 
> up on naming for the sake of making progress :)
>
> On Tue, Oct 23, 2012 at 3:39 PM, Sebastien  wrote:
>> Alec, you are right, I did thought about that.
>>
>> My reflection was that getListCSS applies to list *element* (li) and 
>> it is quite easy to understand that getLabelCSS (which applies to the
>> label) stands for the message itself (which is a span element).
>>
>> But in another hand we can imagine that these naming are related to 
>> wicket
>> *component* instead; so, it is true that it would technically best to 
>> have getListItemCSS (applies to ListItem) and getLabelCSS (applies to
> Label).
>> But what if the user overrides #newMessageDisplayComponent and return 
>> something other than a Label? A Panel for instance? Maybe getLabelCSS 
>> appears to not be logical anymore in this context: we have a 
>> getListItemCSS which still applies to a ListItem and a getLabelCSS 
>> which applies to... a Panel.
>>
>> In another hand (again), we can also imagine that the HTML markup is 
>> getting "overridden" (while extending FeedbackPanel), li and span 
>> elements may have been replaced by other elements (2 divs for 
>> instance)... So getListCSS may also not be logical in this context, 
>> and would have better been getContainerCSS or something like that...
>>
>> Not easy to find right naming; its a kind of Ouroboros* ** discussion 
>> in this case...
>> But at the end, will the user better understand getListCSS or 
>> getListItemCSS? Also, is getLabelCSS the best? What about getMessageCSS?
>>
>> That's all open questions... I wish you a good night with that! ;) 
>> Sebastien
>>
>> * http://en.wikipedia.org/wiki/Ouroboros
>> ** I am pretty sure this term has previously been used in this 
>> mailing list but I don't remember who... So there is a credit for 
>> someone somewhere :)
>>
>>
>> On Tue, Oct 23, 2012 at 9:15 PM, Alec Swan  wrote:
>>
>>> Technically it should be getListItemCSS, not getListCSS. 

Re: ajax channels

2012-10-24 Thread Ernesto Reinaldo Barreiro
it might be better to poll the server for the state of the long running
task and once it is ready display some user feed back.

On Wed, Oct 24, 2012 at 3:32 PM, danisevsky  wrote:

> Hi,
>
> I have long-running ajax behavior. And when this behavior is running
> no other ajax component on page can work because ajax requests are
> serial. My question is if it is possible to use another ajax channel
> for long-runnig behavior?
>
> I tried:
>
> @Override
> protected void updateAjaxAttributes(AjaxRequestAttributes
> attributes) {
> attributes.setChannel(new AjaxChannel("another"));
> }
>
> but this didn't work (ajax requests are still serial). I am using wicket 6.
>
> Thanks in advance!
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


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


Re: ajax channels

2012-10-24 Thread Martin Grigorov
Hi,

This will remove the serialization at the client side (JavaScript) but
there is also synchronization at the server side - only one request
can work with the same page instance.
I guess this is where they wait each other.

On Wed, Oct 24, 2012 at 4:32 PM, danisevsky  wrote:
> Hi,
>
> I have long-running ajax behavior. And when this behavior is running
> no other ajax component on page can work because ajax requests are
> serial. My question is if it is possible to use another ajax channel
> for long-runnig behavior?
>
> I tried:
>
> @Override
> protected void updateAjaxAttributes(AjaxRequestAttributes attributes) 
> {
> attributes.setChannel(new AjaxChannel("another"));
> }
>
> but this didn't work (ajax requests are still serial). I am using wicket 6.
>
> Thanks in advance!
>
> -
> 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



Using AutocompleteTextField with database entries (without a converter)

2012-10-24 Thread Gaetan Zoritchak
Hello,
I don't know what is the best way of impleting that in Wicket

That's my use case:
- the user has to select a customer in a field of a form,
- he starts to type some characters,
- the list shows some possibilities based on a database request using the
first and last names, the email, ...
- then he selects one item in the list,
- the field just shows few informations (Last Name for exemple).

I don't want to use a converter because the data in the field could
eventually match more than one entry in the database. I can give more
context in the list to make the user be sure of his selection. When the
selection is made, I can put a title so that on a mouse over event the user
visualize the full information on the customer selection.

The best solution would be to use the database id of the customer as a key
during the selection phase.

I don't know what is the best way of implementing this behaviour.

Thanks a lot for any ideas,

Gaetan,


ajax channels

2012-10-24 Thread danisevsky
Hi,

I have long-running ajax behavior. And when this behavior is running
no other ajax component on page can work because ajax requests are
serial. My question is if it is possible to use another ajax channel
for long-runnig behavior?

I tried:

@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
attributes.setChannel(new AjaxChannel("another"));
}

but this didn't work (ajax requests are still serial). I am using wicket 6.

Thanks in advance!

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



Re: issue with file download out of form component

2012-10-24 Thread Martin Grigorov
Hi Maxim,

What web container do you use ?
According to Servlet API
(http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#getParameterMap())
the map should be  wrote:
> Hello Martin,
>
> I just have tested Wicket 6.2
> Using AjaxDownload:
> https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/util/AjaxDownload.java
>
> https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/components/admin/backup/BackupPanel.java(line:
> 123 currently commented out)
>
> I get URL like this on file download:
> http://192.168.72.100:5080/openmeetings/html/?4-1.IBehaviorListener.0-contents-child-backupUpload&antiCache=1351074316336
>
> And then get ClassCastException from Wiket in:
> org.apache.wicket.protocol.http.servlet.ServletWebRequest line 305
>
> param.getValue() returns String and cannot be casted to String[] (for the
> 'antiCache' parameter above)
>
> Is there anything I can do to fix it?
>
>
> Thanks a lot in advance :)
>
> On Wed, Oct 17, 2012 at 5:39 PM, Maxim Solodovnik wrote:
>
>> Thanks a lot!
>> Those NullPointer exceptions makes makes me mad :( (we use customized
>> Tomcat 6 in our project) And I get them all the time.
>> I get rid of all callback URL and all parameters passed via URL.
>>
>> Thanks!! :)
>>
>>
>> On Wed, Oct 17, 2012 at 5:11 PM, Martin Grigorov wrote:
>>
>>> There was a response from Maxim from OpenMeetings team, but
>>> users@wicket.apache.org was not in CC:
>>>
>>> 
>>> Hello Martin,
>>>
>>> I have modified the code and have removed AjaxDownloader (since it is not
>>> really necessary).
>>> NullPointerException somehow happens while post parameters parsing
>>> (getCallbackURL) is not working anymore.
>>>
>>> I believe this is somehow connected with custom HomePageMapper
>>>
>>>
>>> https://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/app/Application.java?revision=1384647&view=markup
>>>
>>> line 62 and below.
>>> Maybe you can help me with this?
>>>
>>> I have added HomePageMapper to implement "single page application" and
>>> remove all URL parameters automaticatilly being added by Wicket.
>>>
>>> Thanks in advance
>>>
>>> 
>>>
>>>
>>> Hi Maxim,
>>>
>>> The NullPointerException is while Wicket tries to read the POST
>>> parameters. The request mappers manipulate only the GET parameters, so
>>> I think it is not related.
>>> I've just checked Jetty 7.6.3 sources and they return String[0] so it
>>> should be OK in this particular version of Jetty. But I'll add the
>>> check anyway with https://issues.apache.org/jira/browse/WICKET-4818
>>>
>>> On Wed, Oct 17, 2012 at 9:16 AM, Martin Grigorov 
>>> wrote:
>>> > Hi,
>>> >
>>> > On Tue, Oct 16, 2012 at 7:59 PM, seba.wag...@gmail.com
>>> >  wrote:
>>> >> Hi,
>>> >>
>>> >> I did follow this tutorial to create a download via Ajax in a form:
>>> >>
>>> https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow
>>> >>
>>> >> The slightly modified code can be seen here:
>>> >>
>>> https://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/components/admin/backup/BackupPanel.java?view=markup
>>> >> Line 127 "download.initialize(target);" is called.
>>> >
>>> > It seems you have modified BackupPanel. There is no code like
>>> > "download.initialize(target)"
>>> >
>>> >>
>>> >> The rest seems to me similar to the example, except for that I set the
>>> File
>>> >> is set dynamically with every Ajax request.
>>> >>
>>> >> The File itself does exist and is created correctly.
>>> >>
>>> >> However Wicket throws this wired exception:
>>> >> http://pastebin.com/raw.php?i=Fijqjd5y
>>> >
>>> > NullPointerException is not something one should expect so it is a bug.
>>> > According to
>>> https://github.com/apache/wicket/blob/build/wicket-6.0.0/wicket-core/src/main/java/org/apache/wicket/protocol/http/servlet/ServletWebRequest.java#L321
>>> > its cause is that HttpServletRequest.getParametersMap() returns a Map
>>> > with an entry with value == null. I'm not sure in what cases this can
>>> > happen but I'll add a check for null there.
>>> >
>>> >>
>>> >> The trace seems to be an internal Wicket error. Is this a Bug inside
>>> Wicket?
>>> >>
>>> >> Sebastian
>>> >> --
>>> >> Sebastian Wagner
>>> >> https://twitter.com/#!/dead_lock
>>> >> http://www.webbase-design.de
>>> >> http://www.wagner-sebastian.com
>>> >> seba.wag...@gmail.com
>>> >
>>> >
>>> >
>>> > --
>>> > Martin Grigorov
>>> > jWeekend
>>> > Training, Consulting, Development
>>> > http://jWeekend.com
>>>
>>>
>>>
>>> --
>>> Martin Grigorov
>>> jWeekend
>>> Training, Consulting, Development
>>> http://jWeekend.com
>>>
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>
>
> --
> WBR
> Maxim aka solomax



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

-
To unsu

Re: issue with file download out of form component

2012-10-24 Thread Maxim Solodovnik
Hello Martin,

I just have tested Wicket 6.2
Using AjaxDownload:
https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/util/AjaxDownload.java

https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/components/admin/backup/BackupPanel.java(line:
123 currently commented out)

I get URL like this on file download:
http://192.168.72.100:5080/openmeetings/html/?4-1.IBehaviorListener.0-contents-child-backupUpload&antiCache=1351074316336

And then get ClassCastException from Wiket in:
org.apache.wicket.protocol.http.servlet.ServletWebRequest line 305

param.getValue() returns String and cannot be casted to String[] (for the
'antiCache' parameter above)

Is there anything I can do to fix it?


Thanks a lot in advance :)

On Wed, Oct 17, 2012 at 5:39 PM, Maxim Solodovnik wrote:

> Thanks a lot!
> Those NullPointer exceptions makes makes me mad :( (we use customized
> Tomcat 6 in our project) And I get them all the time.
> I get rid of all callback URL and all parameters passed via URL.
>
> Thanks!! :)
>
>
> On Wed, Oct 17, 2012 at 5:11 PM, Martin Grigorov wrote:
>
>> There was a response from Maxim from OpenMeetings team, but
>> users@wicket.apache.org was not in CC:
>>
>> 
>> Hello Martin,
>>
>> I have modified the code and have removed AjaxDownloader (since it is not
>> really necessary).
>> NullPointerException somehow happens while post parameters parsing
>> (getCallbackURL) is not working anymore.
>>
>> I believe this is somehow connected with custom HomePageMapper
>>
>>
>> https://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/app/Application.java?revision=1384647&view=markup
>>
>> line 62 and below.
>> Maybe you can help me with this?
>>
>> I have added HomePageMapper to implement "single page application" and
>> remove all URL parameters automaticatilly being added by Wicket.
>>
>> Thanks in advance
>>
>> 
>>
>>
>> Hi Maxim,
>>
>> The NullPointerException is while Wicket tries to read the POST
>> parameters. The request mappers manipulate only the GET parameters, so
>> I think it is not related.
>> I've just checked Jetty 7.6.3 sources and they return String[0] so it
>> should be OK in this particular version of Jetty. But I'll add the
>> check anyway with https://issues.apache.org/jira/browse/WICKET-4818
>>
>> On Wed, Oct 17, 2012 at 9:16 AM, Martin Grigorov 
>> wrote:
>> > Hi,
>> >
>> > On Tue, Oct 16, 2012 at 7:59 PM, seba.wag...@gmail.com
>> >  wrote:
>> >> Hi,
>> >>
>> >> I did follow this tutorial to create a download via Ajax in a form:
>> >>
>> https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow
>> >>
>> >> The slightly modified code can be seen here:
>> >>
>> https://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/components/admin/backup/BackupPanel.java?view=markup
>> >> Line 127 "download.initialize(target);" is called.
>> >
>> > It seems you have modified BackupPanel. There is no code like
>> > "download.initialize(target)"
>> >
>> >>
>> >> The rest seems to me similar to the example, except for that I set the
>> File
>> >> is set dynamically with every Ajax request.
>> >>
>> >> The File itself does exist and is created correctly.
>> >>
>> >> However Wicket throws this wired exception:
>> >> http://pastebin.com/raw.php?i=Fijqjd5y
>> >
>> > NullPointerException is not something one should expect so it is a bug.
>> > According to
>> https://github.com/apache/wicket/blob/build/wicket-6.0.0/wicket-core/src/main/java/org/apache/wicket/protocol/http/servlet/ServletWebRequest.java#L321
>> > its cause is that HttpServletRequest.getParametersMap() returns a Map
>> > with an entry with value == null. I'm not sure in what cases this can
>> > happen but I'll add a check for null there.
>> >
>> >>
>> >> The trace seems to be an internal Wicket error. Is this a Bug inside
>> Wicket?
>> >>
>> >> Sebastian
>> >> --
>> >> Sebastian Wagner
>> >> https://twitter.com/#!/dead_lock
>> >> http://www.webbase-design.de
>> >> http://www.wagner-sebastian.com
>> >> seba.wag...@gmail.com
>> >
>> >
>> >
>> > --
>> > Martin Grigorov
>> > jWeekend
>> > Training, Consulting, Development
>> > http://jWeekend.com
>>
>>
>>
>> --
>> Martin Grigorov
>> jWeekend
>> Training, Consulting, Development
>> http://jWeekend.com
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax



-- 
WBR
Maxim aka solomax


Re: Wicket and file upload with blueimp jquery file upload

2012-10-24 Thread heapifyman
Thanks. That helped a lot.


2012/10/16 Bas Gooren 

> Behavior (wicket 1.5): http://pastebin.com/WUHsiRL2
> instance.js (to initialize uploadify): http://pastebin.com/jGSwzHMN
>
> Mount it in Application.init() with:
>
> // Allow uploads through uploadify
> mount( new UploadifyBehavior.Uploader( "/uploadify" ) );
>
> Use it like this:
>
> component.add( new UploadifyBehavior()
> {
>
> @Override
> protected void onUpload( UploadInfo info,
> AjaxRequestTarget target )
> {
> // Handle upload any way you like, and replace stuff
> in this ajax request
> }
>
> } );
>
>
> Met vriendelijke groet,
> Kind regards,
>
> Bas Gooren
>
> Op 16-10-2012 19:09, schreef heapifyman:
>
>> Thanks.
>> Would you mind sharing the mounted resource's code? I'm not completely
>> sure
>> how to implement that.
>>
>>
>> 2012/10/16 Bas Gooren 
>>
>>  Hi!
>>>
>>> We use a different uploader (uploadify), but the basics are the same.
>>>
>>> What we've built for this is a behavior which renders the UI for the
>>> uploader, and handles ajax callbacks.
>>>
>>> The uploader uploads to a mounted resource (e.g. at /uploadify), which
>>> has
>>> an internal cache (UUID => FileInfo).
>>> After a successful upload, the upload resource returns the UUID;
>>> The javascript onComplete handler then calls the ajax behavior with the
>>> UUID parameter, which allows other components in the page to respond to
>>> the
>>> upload.
>>>
>>> To prevent overflow in the uploader cache we use a map with a maximum
>>> size
>>> which evicts old entries on overflow.
>>>
>>> Met vriendelijke groet,
>>> Kind regards,
>>>
>>> Bas Gooren
>>>
>>> Op 16-10-2012 12:59, schreef heapifyman:
>>>
>>>   Not sure if I understand.
>>>
 As far as I got it, the upload plugin requires some "web service" that
 accepts POST and DELETE requests to add/remove uploaded files.
 Doing that is no problem, I guess.
 But how to I link this with the current user's wicket session so that I
 know which files the users uploaded when finally the form is submitted?
 I'm not sure if I'm using the right wording here. Hope you get the
 idea...


 2012/10/16 Martin Grigorov 

   Hi,

> Is it an option to upload to a IResource and store the uploaded data
> the same way as if you'd do in the page ?
>
> On Tue, Oct 16, 2012 at 12:49 PM, heapifyman 
> wrote:
>
>  Hello,
>>
>> has anyone tried yet to integrate blueimp's jQuery File Upload
>> http://blueimp.github.com/jQuery-File-Upload/
>> >with
>> Wicket FileUpload?
>>
>> Especially in combination with additional input fields > type=text">
>> I'm kind of stuck because I'm not really sure where to point the
>> jquery
>> file upload's url param to and how to store the uploaded files in the
>> wicket page for saving them when the complete form is submitted.
>>
>> Any help would be appreciated.
>> Thanks
>>
>>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> --**--**
> -
> To unsubscribe, e-mail: 
> users-unsubscribe@wicket.**apa**che.org
> 
> >
>
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
>
>
>


Re: issue with file download out of form component

2012-10-24 Thread Maxim Solodovnik
Hello Martin,

I just have tested Wicket 6.2
Using AjaxDownload:
https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/util/AjaxDownload.java

https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/components/admin/backup/BackupPanel.java(line:
123 currently commented out)

I get URL like this on file download:
http://192.168.72.100:5080/openmeetings/html/?4-1.IBehaviorListener.0-contents-child-backupUpload&antiCache=1351074316336

And then get ClassCastException from Wiket in:
org.apache.wicket.protocol.http.servlet.ServletWebRequest line 305

param.getValue() returns String and cannot be casted to String[] (for the
'antiCache' parameter above)

Is there anything I can do to fix it?


Thanks a lot in advance :)

On Wed, Oct 17, 2012 at 5:39 PM, Maxim Solodovnik wrote:

> Thanks a lot!
> Those NullPointer exceptions makes makes me mad :( (we use customized
> Tomcat 6 in our project) And I get them all the time.
> I get rid of all callback URL and all parameters passed via URL.
>
> Thanks!! :)
>
>
> On Wed, Oct 17, 2012 at 5:11 PM, Martin Grigorov wrote:
>
>> There was a response from Maxim from OpenMeetings team, but
>> users@wicket.apache.org was not in CC:
>>
>> 
>> Hello Martin,
>>
>> I have modified the code and have removed AjaxDownloader (since it is not
>> really necessary).
>> NullPointerException somehow happens while post parameters parsing
>> (getCallbackURL) is not working anymore.
>>
>> I believe this is somehow connected with custom HomePageMapper
>>
>>
>> https://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/app/Application.java?revision=1384647&view=markup
>>
>> line 62 and below.
>> Maybe you can help me with this?
>>
>> I have added HomePageMapper to implement "single page application" and
>> remove all URL parameters automaticatilly being added by Wicket.
>>
>> Thanks in advance
>>
>> 
>>
>>
>> Hi Maxim,
>>
>> The NullPointerException is while Wicket tries to read the POST
>> parameters. The request mappers manipulate only the GET parameters, so
>> I think it is not related.
>> I've just checked Jetty 7.6.3 sources and they return String[0] so it
>> should be OK in this particular version of Jetty. But I'll add the
>> check anyway with https://issues.apache.org/jira/browse/WICKET-4818
>>
>> On Wed, Oct 17, 2012 at 9:16 AM, Martin Grigorov 
>> wrote:
>> > Hi,
>> >
>> > On Tue, Oct 16, 2012 at 7:59 PM, seba.wag...@gmail.com
>> >  wrote:
>> >> Hi,
>> >>
>> >> I did follow this tutorial to create a download via Ajax in a form:
>> >>
>> https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow
>> >>
>> >> The slightly modified code can be seen here:
>> >>
>> https://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/components/admin/backup/BackupPanel.java?view=markup
>> >> Line 127 "download.initialize(target);" is called.
>> >
>> > It seems you have modified BackupPanel. There is no code like
>> > "download.initialize(target)"
>> >
>> >>
>> >> The rest seems to me similar to the example, except for that I set the
>> File
>> >> is set dynamically with every Ajax request.
>> >>
>> >> The File itself does exist and is created correctly.
>> >>
>> >> However Wicket throws this wired exception:
>> >> http://pastebin.com/raw.php?i=Fijqjd5y
>> >
>> > NullPointerException is not something one should expect so it is a bug.
>> > According to
>> https://github.com/apache/wicket/blob/build/wicket-6.0.0/wicket-core/src/main/java/org/apache/wicket/protocol/http/servlet/ServletWebRequest.java#L321
>> > its cause is that HttpServletRequest.getParametersMap() returns a Map
>> > with an entry with value == null. I'm not sure in what cases this can
>> > happen but I'll add a check for null there.
>> >
>> >>
>> >> The trace seems to be an internal Wicket error. Is this a Bug inside
>> Wicket?
>> >>
>> >> Sebastian
>> >> --
>> >> Sebastian Wagner
>> >> https://twitter.com/#!/dead_lock
>> >> http://www.webbase-design.de
>> >> http://www.wagner-sebastian.com
>> >> seba.wag...@gmail.com
>> >
>> >
>> >
>> > --
>> > Martin Grigorov
>> > jWeekend
>> > Training, Consulting, Development
>> > http://jWeekend.com
>>
>>
>>
>> --
>> Martin Grigorov
>> jWeekend
>> Training, Consulting, Development
>> http://jWeekend.com
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: Selected item into Palette

2012-10-24 Thread Marco Di Sabatino Di Diodoro
Hi,

On Oct 23, 2012, at 6:41 PM, Sven Meier wrote:

> I'm not sure how you're using AjaxFormComponentUpdatingBehavior together with 
> the palette component.
> 
> Please create a quickstart and attach it to a Jira issue.
I create a quickstart and attach it to Jira issue 
(https://issues.apache.org/jira/browse/WICKET-4834)

Regards
Marco

> 
> Sven
> 
> 
> On 10/23/2012 05:42 PM, Marco Di Sabatino Di Diodoro wrote:
>> Thanks,
>> 
>> but i like have the current selected item in the palette. With Apache Wicket 
>> 1.5.8 I use AjaxFormComponentUpdatingBehavior to see which item was selected.
>> Now, when I click on an item into palette the onUpdate method is never 
>> invoked.
>> 
>> Marco
>> 
>> 
>> On Oct 23, 2012, at 5:31 PM, Sven Meier wrote:
>> 
>>> selectedItems = (List)palette.getDefaultModelObject()
>>> 
>>> or
>>> 
>>> palette = new Palette("palette", model, choices, ...);
>>> selectedItems = model.getObject();
>>> 
>>> Sven
>>> 
>>> On 10/23/2012 05:01 PM, Marco Di Sabatino Di Diodoro wrote:
 Hi all,
 
 With Apache Wicket 6.1.
 How can I get hold of a palette's selected item?
 
 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 PPMC Member
 http://people.apache.org/~mdisabatino
 
 
 
 
 
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>> 
>> --
>> 
>> 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 PPMC Member
>> http://people.apache.org/~mdisabatino
>> 
>> 
>> 
>> 
>> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

--

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 PPMC Member
http://people.apache.org/~mdisabatino






Re: merge all properties file into one file

2012-10-24 Thread Carl-Eric Menzel
> Is there any way that i can merge all my properties file into one big
> properties file ?

If you application class is MyApplication then you can put everything
into MyApplication.properties if you want.

Carl-Eric

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



Re: When Ajax precondition fails no post event handler is called

2012-10-24 Thread Martin Grigorov
Hi,

On Wed, Oct 24, 2012 at 11:25 AM, Thijs  wrote:
> Hi,
>
> We have an overlay that is triggered by a ajax global event listener. like:
>
> Wicket.Event.subscribe('/ajax/call/before', function(jqEvent, attributes,
> jqXHR, errorThrown, textStatus) {
> showBusysignAjax();
> });
>
> Put when the precondition of the ajax call fails none of the
> '/ajax/call/after|complete|failure|success is called causing the overlay to
> keep being displayed.
>
> When a precondition fails, doesn't the '/ajax/call/failure|complete'  need
> to be called?

No, since there is no Ajax call made there is no callback.
Use 'beforeSend' instead.

>
> Thijs



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



When Ajax precondition fails no post event handler is called

2012-10-24 Thread Thijs

Hi,

We have an overlay that is triggered by a ajax global event listener. like:

Wicket.Event.subscribe('/ajax/call/before', function(jqEvent, 
attributes, jqXHR, errorThrown, textStatus) {

showBusysignAjax();
});

Put when the precondition of the ajax call fails none of the 
'/ajax/call/after|complete|failure|success is called causing the overlay 
to keep being displayed.


When a precondition fails, doesn't the '/ajax/call/failure|complete'  
need to be called?


Thijs


Re: wicket-6 User friendly form validation with Wicket (stuq)

2012-10-24 Thread Martin Grigorov
Hi,

The URL below doesn't load and I cannot see what is his implementation.

On Sat, Oct 20, 2012 at 10:34 PM, Rafał Krupiński  wrote:
> Hi all!
> There is old article on putting validation messages near the input fields at
> http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket
>
> Is there a wicket-native method of doing this in wicket 6 or should I follow
> the article?
>
> Rafał
>
> -
> 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: Ajax file manager 'CKFinder' and Wicket >= 1.5.8

2012-10-24 Thread Martin Grigorov
Hi,

Looking at the changelog I don't see anything suspicious.

Did you check for JavaScript errors in Firebug/Dev tools ?
Can you share your code with us so we can see how you do the
integration and what could be the problem ?

On Tue, Oct 23, 2012 at 6:40 PM, Steamus  wrote:
> Hello, Everybody
>
> In my project I use JavaScript editor ‘CKEditor’ with Ajax file manager
> ‘CKFinder’. It worked fine a lot of months. But,
> just I migrated to version Wicket 1.5.8, the ‘CKFinder’ doesn’t work
> properly any more. There are no visible crashes or bugs, but It can’t upload
> file to server now. Looks like there were some little changes in the Wicket
> Ajax mechanic. If I switch to Wicket 1.5.7 it work fine as before. I was
> trying to migrate to Wicket 1.6.1. Project works fine, but ‘CKFinder’
> doesn’t work (the same as for 1.5.8).
>
> May be anybody has some idea what was changing in the 1.5.8 concerning Ajax
> or server response or…?
>
> I tested under Tomcat  6.0.35
>
> Thanx in advance.
>
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Ajax-file-manager-CKFinder-and-Wicket-1-5-8-tp4653275.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



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

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



Re: Problems injecting Groovy dependencies

2012-10-24 Thread Martin Grigorov
Hi,

Wicket wraps the beans in serializable proxy, so there is no need to
make your services (beans) Serializable.
When the bean is type is an interface  then Wicket uses JDK Proxy.
When it is a class then CGLib is used to create the proxy.

Google for "groovy cglib" problems and you may find the solution.

On Wed, Oct 24, 2012 at 1:10 AM, Wujek Srujek  wrote:
> Hi. I have a webapplication using wicket 6.1.0 (will upgrade when I have
> some more time) and I use google guice as dependency injector. The
> dependencies are sometimes Java and sometimes Groovy (compiled with 2.0.5)
> classes. Injecting Java dependencies with @Inject in pages work fine, the
> problem is with Groovy instances. Here is the exception I'm seeing:
>
> java.lang.IllegalArgumentException: Protected method:
> $getStaticMetaClass()Lgroovy/lang/MetaClass;
>  at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:209)
>  at
> org.apache.wicket.proxy.LazyInitProxyFactory$CGLibInterceptor.intercept(LazyInitProxyFactory.java:333)
>  at
> WICKET_de.mino.importer.gdsl.GDSLImporter$$EnhancerByCGLIB$$1df0e014.$getStaticMetaClass()
>  at de.mino.importer.gdsl.GDSLImporter.(GDSLImporter.groovy)
>  at
> WICKET_de.mino.importer.gdsl.GDSLImporter$$EnhancerByCGLIB$$1df0e014.()
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
>  at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:228)
>  at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:220)
>  at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:216)
>  at net.sf.cglib.proxy.Enhancer.createUsingReflection(Enhancer.java:643)
>  at net.sf.cglib.proxy.Enhancer.firstInstance(Enhancer.java:538)
>  at
> net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:225)
>  at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
>  at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:285)
>  at
> org.apache.wicket.proxy.LazyInitProxyFactory.createProxy(LazyInitProxyFactory.java:190)
>  at
> org.apache.wicket.guice.GuiceFieldValueFactory.getFieldValue(GuiceFieldValueFactory.java:69)
>  at org.apache.wicket.injection.Injector.inject(Injector.java:111)
>  at
> org.apache.wicket.guice.GuiceComponentInjector.inject(GuiceComponentInjector.java:122)
>  at
> org.apache.wicket.guice.GuiceComponentInjector.onInstantiation(GuiceComponentInjector.java:128)
>  at
> org.apache.wicket.application.ComponentInstantiationListenerCollection$1.notify(ComponentInstantiationListenerCollection.java:38)
>  at
> org.apache.wicket.application.ComponentInstantiationListenerCollection$1.notify(ComponentInstantiationListenerCollection.java:34)
>  at
> org.apache.wicket.util.listener.ListenerCollection.notify(ListenerCollection.java:80)
>  at
> org.apache.wicket.application.ComponentInstantiationListenerCollection.onInstantiation(ComponentInstantiationListenerCollection.java:33)
>  at org.apache.wicket.Component.(Component.java:683)
>  at org.apache.wicket.MarkupContainer.(MarkupContainer.java:120)
>  at org.apache.wicket.Page.(Page.java:172)
>  at org.apache.wicket.Page.(Page.java:136)
>  at org.apache.wicket.markup.html.WebPage.(WebPage.java:76)
>  at de.mino.web.wicket.DummyPage.(DummyPage.java:47)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
>  at
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:174)
>  at
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:66)
>  at
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:133)
>  at
> org.apache.wicket.core.request.handler.PageProvider.resolvePageInstance(PageProvider.java:278)
>  at
> org.apache.wicket.core.request.handler.PageProvider.getPageInstance(PageProvider.java:166)
>  at
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
>  at
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:94)
>  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:814)
>  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.doFilter(WicketFilter.java:245)
>  at
> org

Re: HybridPageParamter encoder

2012-10-24 Thread Martin Grigorov
Hi,

Write your own IPageParametersEncoder which does what you need.
Use the implementations provided by default in Wicket for inspiration.

On Tue, Oct 23, 2012 at 10:13 PM, vinitty  wrote:
> Hi
> I am using wicket 1.5.7 and i want my url to be formed as
>
> /mf/landing
>
> and if i am hitting /mf/landing/?=&=  then
> it should also work and url in the browser should remain same.
>
> Which is not happening when i am using HybridPageParamterEncoder , it is
> redirecting again by changing the format
>
> Please help me
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/HybridPageParamter-encoder-tp4653279.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



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

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



Re: Why is it forbidden to overwrite "getString" method in the Component class ?

2012-10-24 Thread Martin Grigorov
Hi,

On Tue, Oct 23, 2012 at 8:31 PM, seba.wag...@gmail.com
 wrote:
> Thanks Martin,
>
> using IStringResourceLoader solved my issue.
>


> However I did not understand what you meant with "#getMyString()"
> I did not find any method #getMyString() that I could overwrite, also
> Google gave me no pointers where this function is hidden.
> Did you meant to overwrite the getString method in the Localizer?

No :-)
I meant that you can add your own method and use it.

>
> Thanks!
> Sebastian
>
> 2012/10/23 Martin Grigorov 
>
>> Hi,
>>
>> You can always use #getMyString() for custom loading.
>>
>> Or you may just need to add an additional/custom IStringResourceLoader
>> instead of overriding #getString().
>>
>> On Tue, Oct 23, 2012 at 3:56 PM, seba.wag...@gmail.com
>>  wrote:
>> > Hi,
>> >
>> > I am wondering why it is forbidden to overwrite
>> >
>> > public final String getString(final String key)
>> >
>> > in org.apache.wicket.Component ?
>> >
>> > What is the reason of forbidding anybody to use his custom resource
>> loading
>> > mechanism ?
>> >
>> > Thanks!
>> > Sebastian
>> > --
>> > Sebastian Wagner
>> > https://twitter.com/#!/dead_lock
>> > http://www.webbase-design.de
>> > http://www.wagner-sebastian.com
>> > seba.wag...@gmail.com
>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wag...@gmail.com



-- 
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: Apache Wicket 6.2.0 released!

2012-10-24 Thread vineet semwal
hmm i see it now...
thank you core devs for the great work !

On Wed, Oct 24, 2012 at 2:18 AM, vineet semwal  wrote:
> how come i don't see any tag related to 6.2.0 ?
>
> On Wed, Oct 24, 2012 at 1:24 AM, Martijn Dashorst
>  wrote:
>> The Apache Wicket PMC is proud to announce Apache Wicket 6.2.0!
>>
>> This release marks the second minor release of Wicket 6. Starting
>> with Wicket 6 we use semantic versioning for the future development of
>> Wicket, and as such no API breaks are present in this release compared
>> to 6.0.0.
>>
>> New and noteworthy
>> --
>>
>> SerializableChecker has been made easier to extend. It is now much easier
>> to add your own checks at serialization time. For example, check whether your
>> LoadableDetachableModels are detached, or no Hibernate entities are 
>> referenced
>> directly from your component tree, etc.
>>
>> For the full changelog see the release notes attached to the end of
>> this announcement.
>>
>> Using this release
>> --
>>
>> With Apache Maven update your dependency to (and don't forget to
>> update any other dependencies on Wicket projects to the same version):
>>
>> 
>> org.apache.wicket
>> wicket-core
>> 6.2.0
>> 
>>
>> Or download and build the distribution yourself, or use our
>> convenience binary package
>>
>>  * http://www.apache.org/dyn/closer.cgi/wicket/6.2.0
>>  * http://www.apache.org/dyn/closer.cgi/wicket/6.2.0/binaries
>>
>> Upgrading from earlier versions
>> ---
>>
>> If you upgrade from 6.0.0, this release is a drop in replacement. If
>> you come from a version prior to 6.0.0, please read our Wicket 6
>> migration guide found at http://s.apache.org/wicket-6.0-migration
>>
>> Have fun!
>>
>> — The Wicket team
>>
>> Release Notes - Wicket - Version 6.2.0
>>
>> ** Sub-task
>> * [WICKET-4752] - Revert Wicket-4715 -Read multipart request
>> params in WebApplication
>>
>> ** Bug
>> * [WICKET-4587] - URLRenderer renderFullUrl
>> * [WICKET-4589] - Closing  tag is incorrectly
>> setup as autocomponent
>> * [WICKET-4756] - AtmosphereWebRequest should return true on calls
>> to #isAjax()
>> * [WICKET-4759] - FilterForm/FilterToolbar don't work when there's
>> more than one IColumn to be filtered
>> * [WICKET-4769] - Clicking on Label of Radio doesn't update
>> component with Ajax update
>> * [WICKET-4771] - Submitting value filled in DropDownChoice fails
>> when tinymce textarea is on the page
>> * [WICKET-4776] - Problems with switching between HTTP/HTTPS
>> * [WICKET-4777] - JavaScriptReference escapes given URL
>> * [WICKET-4786] - AjaxTabbedPanel doesn't include constructor with model
>> * [WICKET-4787] - Registering resource bundles with duplicate
>> resource references gives an NPE
>> * [WICKET-4788] - FilteringHeaderResponse does not unwrap
>> PriorityHeaderItems for filtering
>> * [WICKET-4789] - URL rendering regression
>> * [WICKET-4791] - UploadProgressBar hides immediately after being shown.
>> * [WICKET-4792] - wickettester#startcomponent(component) doesn't
>> call oninitialize
>> * [WICKET-4794] - RfcCompliantEmailAddressValidator error message
>> not defined
>> * [WICKET-4796] - DatePickerTest fails because of java
>> inconsistensy on localizing March german shortname Mrz vs Mär
>> * [WICKET-4797] - CheckBoxMultipleChoice loses state
>> * [WICKET-4801] - BaseWicketTester.executeAjaxEvent only fires one
>> of multiple behaviors bound to a given event
>> * [WICKET-4806] - AjaxEditableChoiceLabel won't close select onblur
>> * [WICKET-4810] - CLONE - BaseWicketTester.clickLink() does not
>> work with a ResourceLink with ResourceReference
>> * [WICKET-4816] - Handling of semicolons in form action URLs
>> * [WICKET-4818] - NullPointerException while reading the POST parameters
>> * [WICKET-4820] - Race condition in ResourceSettings:
>> getResourceWatcher() is not thread safe
>> * [WICKET-4822] - Wicket.Event.add requires Wicket.$, but
>> wicket-ajax-jquery is not listed as a dependency
>> * [WICKET-4824] - Redirect to HTTPS is using wrong port 80 if
>> HttpsConfig with default ports 80/443 is used
>>
>> ** Improvement
>> * [WICKET-4160] - Make AbstractAutoCompleteRenderer.renderHeader()
>> and .renderFooter() non-final
>> * [WICKET-4772] - DataTable API and handling of AbstractToolbar
>> * [WICKET-4778] - Add factory methods to JavaScriptHeaderItem to
>> create a deferred JavaScript header item.
>> * [WICKET-4798] - Make IteratorFilter.onFilter protected
>> * [WICKET-4804] - Add #setStatus(int) in 
>> AbstractResource.ResourceResponse
>> * [WICKET-4808] - WebClientInfo.getRemoteAddr() handling
>> "Forwarded-For" value tokens not being ip addresses
>> * [WICKET-4812] - Make SerializationChecker easier for extending
>> so custom checks can be added to it
>>
>> ** New Feature
>> * [WICKET-4793] - Support Jetty 9.x websocket implementation
>> 

My WebApplication constructor is never called

2012-10-24 Thread Mats
No runtime errors when deploing on Glassfish in NetBeans, atmosphere seems to
start, but nothing more happens... my debug println in the WebApplication
constructor is not called.

(If I skip setting up the AtmosphereServlet mapping in my web.xml then my
constructor is called and my debug println is called...)

I have followed the examples and I can't figure out whats missing in my xml
files.

web.xml   
atmosphere.xml
  

Here is the run output;

INFO: Running GlassFish Version: GlassFish Server Open Source Edition 3.1.2
(build 23)
INFO: Grizzly Framework 1.9.46 started in: 45ms - bound to [0.0.0.0:8181]
INFO: Grizzly Framework 1.9.46 started in: 88ms - bound to [0.0.0.0:8080]
INFO: Grizzly Framework 1.9.46 started in: 32ms - bound to [0.0.0.0:4848]
INFO: Grizzly Framework 1.9.46 started in: 38ms - bound to [0.0.0.0:7676]
INFO: Grizzly Framework 1.9.46 started in: 54ms - bound to [0.0.0.0:3700]
INFO: The Admin Console is already installed, but not yet loaded.
INFO: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy
for persistence-type = replicated in BackingStoreFactoryRegistry
INFO: SEC1002: Security Manager is OFF.
INFO: SEC1010: Entering Security Startup Service
INFO: SEC1143: Loading policy provider
com.sun.enterprise.security.provider.PolicyWrapper.
INFO: SEC1115: Realm [admin-realm] of classtype
[com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
created.
INFO: SEC1115: Realm [file] of classtype
[com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
created.
INFO: SEC1115: Realm [certificate] of classtype
[com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
successfully created.
INFO: SEC1011: Security Service(s) Started Successfully
INFO: WEB0169: Created HTTP listener [http-listener-1] on host/port
[0.0.0.0:8080]
INFO: WEB0169: Created HTTP listener [http-listener-2] on host/port
[0.0.0.0:8181]
INFO: WEB0169: Created HTTP listener [admin-listener] on host/port
[0.0.0.0:4848]
INFO: WEB0171: Created virtual server [server]
INFO: WEB0171: Created virtual server [__asadmin]
INFO: WEB0172: Virtual server [server] loaded default web module []
INFO: WEB0671: Loading application
[com.mycompany_myproject_war_1.0-SNAPSHOT] at
[/papegaaij-wicket-atmosphere-quickstart-f561560]
INFO: CORE10010: Loading application
com.mycompany_myproject_war_1.0-SNAPSHOT done in 8 423 ms
INFO: WEB0671: Loading application [WebUI] at [/WebUI]
INFO: CORE10010: Loading application WebUI done in 5 955 ms
INFO: GlassFish Server Open Source Edition 3.1.2 (23) startup time : Felix
(8 631ms), startup services(16 040ms), total(24 671ms)
INFO: JMX005: JMXStartupService had Started JMXConnector on JMXService URL
service:jmx:rmi://SETUPC2571.delaval.local:8686/jndi/rmi://SETUPC2571.delaval.local:8686/jmxrmi
INFO: Hibernate Validator 4.2.0.Final
INFO: Created EjbThreadPoolExecutor with thread-core-pool-size 16
thread-max-pool-size 32 thread-keep-alive-seconds 60 thread-queue-capacity
2147483647 allow-core-thread-timeout false 
INFO: WEB0169: Created HTTP listener [http-listener-1] on host/port
[0.0.0.0:8080]
INFO: Grizzly Framework 1.9.46 started in: 3ms - bound to [0.0.0.0:8080]
INFO: Initiating Jersey application, version 'Jersey: 1.11 12/09/2011 10:27
AM'
INFO: REST1: Listening to REST requests at context: /management/domain
INFO: The Admin Console is already installed, but not yet loaded.
INFO: The Admin Console is starting. Please wait.
INFO: Initializing Mojarra 2.1.6 (SNAPSHOT 20111206) for context ''
INFO: WEB0671: Loading application [WebUI] at [/WebUI]
INFO: WebUI was successfully deployed in 10 199 milliseconds.
INFO: WEB0169: Created HTTP listener [http-listener-2] on host/port
[0.0.0.0:8181]
INFO: Grizzly Framework 1.9.46 started in: 7ms - bound to [0.0.0.0:8181]
INFO: WEB0671: Loading application [__admingui] at [/]
INFO: CORE10010: Loading application __admingui done in 7 947 ms
INFO: The Admin Console application is loaded.
INFO: Auto detecting atmosphere handlers /WEB-INF/classes/
INFO: Auto detecting WebSocketHandler in /WEB-INF/classes/
INFO: Atmosphere is using async support:
org.atmosphere.container.JettyAsyncSupportWithWebSocket running under
container: GlassFish Server Open Source Edition 3.1.2 with WebSocket
enabled.
INFO: Installed WebSocketProtocol
org.atmosphere.websocket.protocol.EchoProtocol 
INFO: Installed AtmosphereHandler org.atmosphere.cpr.AtmosphereFramework$2
mapped to context-path: /*
INFO: Installed Default AtmosphereInterceptor [Android Interceptor Support,
SSE Interceptor Support, JSONP Interceptor Support]. Set
org.atmosphere.cpr.AtmosphereInterceptor.disableDefaults in your xml to
disable them.
WARNING: No BroadcasterCache configured. Broadcasted message between client
reconnection will be LOST. It is recommended to configure the
HeaderBroadcasterCache.
INFO: HttpSession supported: false
INF

Re: Custom CSS for Feedback message is broken in 1.5

2012-10-24 Thread Sven Meier
The point is that he does *not* want getCSSClass() to be applied to the 
.


Sven

On 10/24/2012 12:24 AM, Paul Bors wrote:

There is nothing stopping you from extending from the FeedBackPanel and
override the HTML the Wicket component is using.

This is how we did it.

The HTML:
http://wicket.apache.org";>
 
 
 
 [Feedback message(s)]
 
 
 


And the Java:
import org.apache.wicket.feedback.IFeedbackMessageFilter;
import org.apache.wicket.markup.html.panel.FeedbackPanel;

public class MyFeedbackPanel extends FeedbackPanel {
 private static final long serialVersionUID = 1L;
 
 public MyFeedbackPanel (String id) {

 this(id, null);
 }
 
 public MyFeedbackPanel (String id, IFeedbackMessageFilter filter) {

 super(id, filter);
 setOutputMarkupId(true);
 }
}

Our application wide CSS:

/* FEEDBACK MESSAGES */

.feedbackMessages {
 padding-left: 0;
 padding-top: 0;
 text-align: left;
 margin-left: 0;
 margin-top: 0;
 padding-bottom: 1em;
}

.feedbackMessages div {
 padding: 0.5em;
 font-size: xx-small;
 border: none;
}

.feedbackMessages div.feedbackPanelERROR {
 background-color: lightsalmon;
 border: 1px solid darkred;
}

.feedbackMessages div.feedbackPanelWARNING {
 background-color: #FFB90F;
 border: 1px solid darkgoldenrod;
}

.feedbackMessages div.feedbackPanelINFO {
 background-color: lightgreen;
 border: 1px solid darkgreen;
}

This code was written for Wicket 1.3.x and migrated to 1.5.x w/o any changes
(we're not yet up to 6.x).

~ Thank you,
   Paul Bors

-Original Message-
From: Alec Swan [mailto:alecs...@gmail.com]
Sent: Tuesday, October 23, 2012 6:08 PM
To: users@wicket.apache.org
Subject: Re: Custom CSS for Feedback message is broken in 1.5

Sebastien, List, ListItem and Label make sense to me and match the terms
used in FeedbackPanel class. However, I try not to get too hung up on naming
for the sake of making progress :)

On Tue, Oct 23, 2012 at 3:39 PM, Sebastien  wrote:

Alec, you are right, I did thought about that.

My reflection was that getListCSS applies to list *element* (li) and
it is quite easy to understand that getLabelCSS (which applies to the
label) stands for the message itself (which is a span element).

But in another hand we can imagine that these naming are related to
wicket
*component* instead; so, it is true that it would technically best to
have getListItemCSS (applies to ListItem) and getLabelCSS (applies to

Label).

But what if the user overrides #newMessageDisplayComponent and return
something other than a Label? A Panel for instance? Maybe getLabelCSS
appears to not be logical anymore in this context: we have a
getListItemCSS which still applies to a ListItem and a getLabelCSS
which applies to... a Panel.

In another hand (again), we can also imagine that the HTML markup is
getting "overridden" (while extending FeedbackPanel), li and span
elements may have been replaced by other elements (2 divs for
instance)... So getListCSS may also not be logical in this context,
and would have better been getContainerCSS or something like that...

Not easy to find right naming; its a kind of Ouroboros* ** discussion
in this case...
But at the end, will the user better understand getListCSS or
getListItemCSS? Also, is getLabelCSS the best? What about getMessageCSS?

That's all open questions... I wish you a good night with that! ;)
Sebastien

* http://en.wikipedia.org/wiki/Ouroboros
** I am pretty sure this term has previously been used in this mailing
list but I don't remember who... So there is a credit for someone
somewhere :)


On Tue, Oct 23, 2012 at 9:15 PM, Alec Swan  wrote:


Technically it should be getListItemCSS, not getListCSS. Or maybe
have all three getListCSS, getListItemCSS and getLabelCSS

On Mon, Oct 22, 2012 at 12:46 PM, Sebastien  wrote:

Done, https://issues.apache.org/jira/browse/WICKET-4831
Please let me know if your encounter any issue (wrong base code for
instance) or if you have any questions...

Thanks,
Sebastien.

On Mon, Oct 22, 2012 at 8:06 PM, Sven Meier  wrote:


Please open a Jira issue and provide a patch as you suggested.

Thanks
Sven



On 10/21/2012 01:06 AM, Sebastien wrote:


Sven,

If you agree to have two methods: getListCSSClass and
getLabelCSSClass (which apply respectively on li and span), and
mark getCSSClass as deprecated (until marked as private), then
the path is ready for branch wicket-1.5.x. I am waiting for your
go-ahead to send the patch

somewhere

or
submit the pull request on github.

If you do not agree, please tell me what I can do.

Thanks & best regards,
Sebastien.





--**--**-


To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<

users-unsubscr...@wicket.apache.org>

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



-