Wicket and jQuery UI

2012-10-02 Thread Ronny.Voss
Hi Wicket

I have been looking at a) wiQuery and b) wicket-jquery-ui

What API to use when doing a bridge between Wicket and jQuery UI?

Recommendations and experience would be very much welcomed.

Thanks in advance!

Best regards/Med venlig hilsen
Ronny Voss

Nordea Bank Danmark A/S
Online  Securities Processing Solutions
Strandgade 3
DK-1401 København K
Mobile: +45 26711952
E-mail: ronny.v...@consult.nordea.commailto:ronny.v...@consult.nordea.com



Re: Avoid panel's extra div

2012-10-02 Thread Alexander Morozov
Also take a look at  tag
https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html .
Oscar Besga Arcauz wrote
 Hi wickersI am using a lot of panels in my wicket webapp, with the
 usual    add(new MyPanel(myPanel));    

 But I was thinking if there is a wicket tag that can avoid using the extra
 panel, like    

 I've tried with wicket:panel, wicket:container, wicket:enclosure with no
 luck... I'm wrong or there's a way.. ?Thanks !!   Oscar Besga
 Arcauz
 -To
 unsubscribe, e-mail: 

 users-unsubscribe@.apache

 For additional commands, e-mail: 

 users-help@.apache





-
--
http://www.linkedin.com/in/amorozov
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Avoid-panel-s-extra-div-tp4652274p4652591.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket+Spring Security the Wicket way

2012-10-02 Thread Alexander Morozov
Check out this open-source project
http://www.jfrog.com/home/v_artifactory_opensource_source and look at
security.xml file. It is good example how to integrate wicket and spring
security.



-
--
http://www.linkedin.com/in/amorozov
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-Security-the-Wicket-way-tp4652112p4652592.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: [Announce] wicket-dashboard

2012-10-02 Thread James Eliyezar
Managed to get the demo working. It's really elegant.
Echoing the same feelings as Paul.
It would be nice to split this up into relevant modules.

While I was playing around with the code, I thought of creating a custom
widget with just a data table.
So I created the following classes:

   - TableWidget
   - TableWidgetView
   - TableWidgetDescriptor

Now what should be in TableWidget and what should be in TableWidgetView?

Should I expose the data provider and columns separately from TableWidget?

On Mon, Oct 1, 2012 at 10:35 PM, Paul Szulc paul.sz...@gmail.com wrote:

 Hi,

 I will be adding your dashboard to one of my projects - this is a matter of
 weeks (customer is really, really excited ;)). I have some suggestions, I
 would divide the project into seperate modules:

 - wicket-dashboard-core: module with dashboard itself, simply juest the
 component and needed interfaces (jar as an output)
 - wicket-dashboard-widgets: module were some standard widgets would be
 implemented (jar as an output)
 - wicket-dashboard-demo: module with demo useage (war as an output)

 This way to use dashboard one must simply add wicket-dashboard-core as
 dependency. He can now develop his own widgets or use standard widgets. To
 use standard widgets, he must also add wicket-dashboard-widgets as
 dependency to his project.

 What do you think about it?

 Paul Szulc


 On Mon, Oct 1, 2012 at 10:29 AM, Decebal Suiu decebal.s...@asf.ro wrote:

  Hi
 
  Thanks Paul for the nice words. wicket-dashboard code is used in
 production
  in NextReports server (see
 
 
 http://apache-wicket.1842946.n4.nabble.com/How-to-create-a-dashboard-with-draggable-widgets-tp4652210p4652218.html
  )
  but with some additional features (multiple dashboards, detached widgets,
  ...).
 
  If you have any questions, ideas or suggestions, please do not hesitate
 to
  contact me.
 
  Best regards,
  Decebal
 
 
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-dashboard-tp4652308p4652565.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
 
 




-- 
Thanks  regards
James Selvakumar


Re: [Announce] wicket-dashboard

2012-10-02 Thread Decebal Suiu
Hi Paul

Thanks for the feedback. I will split the project in modules asap. In my
mind are some problems related to modularity that cannot be resolved so
easy: how can I inject some components (DashboardPersister, WidgetFactory,
WidgetRegistry) in wicket-dashboard? Now these components are singletons
defined in DashboardApplication (demo package). In a real application
(NextReports server for example), you may want to inject these components
using a DI framework (spring framework in our case) and probably you want to
save the dashboard layout in a database or jcr.
Other problem is to add custom actions to widget header panel as
contributors.

Sure, the first step will be to split the project in core, demo, standard
widgets and after this step to resolve the problems described above.

Best regards,
Decebal



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-dashboard-tp4652308p4652595.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: [Announce] wicket-dashboard

2012-10-02 Thread Decebal Suiu
Hi James

I will improve the wiki with a new page Creating a custom widget. To
create a custom widget is very simple.
You must declare three components:
- a TableWidgetDescriptor (implements WidgetDescriptor) that supplies
information (meta data) about widget (display name, provider, description,
widget class name); these information are displayed in AddWidgetPage when
the user wants to add a new widget instance to dashboard.
- a TableWidget (typical extends AbstractWidget) with a single method
createView(String viewId):WidgetView.
- a TableWidgetView (extends WidgetView) that it's the content widget panel.
In this component you must add a DataTable or other repeater. If you have
some settings for widget you can use these settings in widget view to create
a custom view (some filtering on sql data, ...). For example I want to
display two widgets with last five customers and last five orders. You can
have a table widget with a view that contains a datatable with different
dataprovider or two widgets types (it is your option) - LastCustomersWidget
and LastOrdersWidget.

After you create these three components, you must register the new widget
type in WidgetRegistry (see DashboardApplication constructor) with
widgetRegistry.registerWidget(new TableWidgetDescriptor());

It is more clear now?

Best regards,
Decebal




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-dashboard-tp4652308p4652597.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



TabbedPanel with huge number of tabs

2012-10-02 Thread Dirk Wenke
Hello,

I've searched the forum and the web for a solution, but I did not find
anything.
We are building a workbench-like application with wicket. The objects in our
application are displayed in tabs, so we used the TabbedPanel for that. But
if many tabs are opened, the tabs are displayed in multiple rows.
What we want to achieve is, that there is only one row displayed for the
tabs and that a button is displayed that opens a list of all available tabs
(like it is e.g. in the eclipse IDE).

As I am fairly new to wicket, I have currently no idea how to solve this. I
would be happy if anybody could help me with this issue.

Thanks,
Dirk



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TabbedPanel-with-huge-number-of-tabs-tp4652598.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket and jQuery UI

2012-10-02 Thread Martin Grigorov
Hi,

On Tue, Oct 2, 2012 at 9:28 AM,  ronny.v...@consult.nordea.com wrote:
 Hi Wicket

 I have been looking at a) wiQuery and b) wicket-jquery-ui

 What API to use when doing a bridge between Wicket and jQuery UI?

What exactly do you need ?

The bridge is AbstractDefaultAjaxBehavior - the base Ajax behavior.


 Recommendations and experience would be very much welcomed.

 Thanks in advance!

 Best regards/Med venlig hilsen
 Ronny Voss

 Nordea Bank Danmark A/S
 Online  Securities Processing Solutions
 Strandgade 3
 DK-1401 København K
 Mobile: +45 26711952
 E-mail: ronny.v...@consult.nordea.commailto:ronny.v...@consult.nordea.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: Wicket and jQuery UI

2012-10-02 Thread Ronny.Voss
Hi

I was not thinking about  the base, ie AbstractDefaultAjaxBehavior.

I was thinking about using one off the API - several components - could be 
accordion? could be some effects etc.

So I was thinking about who has tried out both API's - has some experiences and 
suggest this API because bla bla.

Hope I explain myself fully here.

- Ronny

-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org] 
Sent: 02 October 2012 08:52
To: users@wicket.apache.org
Subject: Re: Wicket and jQuery UI

Hi,

On Tue, Oct 2, 2012 at 9:28 AM,  ronny.v...@consult.nordea.com wrote:
 Hi Wicket

 I have been looking at a) wiQuery and b) wicket-jquery-ui

 What API to use when doing a bridge between Wicket and jQuery UI?

What exactly do you need ?

The bridge is AbstractDefaultAjaxBehavior - the base Ajax behavior.


 Recommendations and experience would be very much welcomed.

 Thanks in advance!

 Best regards/Med venlig hilsen
 Ronny Voss

 Nordea Bank Danmark A/S
 Online  Securities Processing Solutions Strandgade 3
 DK-1401 København K
 Mobile: +45 26711952
 E-mail: 
 ronny.v...@consult.nordea.commailto:ronny.v...@consult.nordea.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


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



Re: TabbedPanel with huge number of tabs

2012-10-02 Thread Sven Meier

Hi Dirk,

you can provide your own component to render the tabs, just override 
TabbedPanel#newTabsContainer().


This container can use a repeater for a row of tabs and some javascript 
popup/menu solution to make the other tabs accessible.


Hope this helps
Sven

On 10/02/2012 11:12 AM, Dirk Wenke wrote:

Hello,

I've searched the forum and the web for a solution, but I did not find
anything.
We are building a workbench-like application with wicket. The objects in our
application are displayed in tabs, so we used the TabbedPanel for that. But
if many tabs are opened, the tabs are displayed in multiple rows.
What we want to achieve is, that there is only one row displayed for the
tabs and that a button is displayed that opens a list of all available tabs
(like it is e.g. in the eclipse IDE).

As I am fairly new to wicket, I have currently no idea how to solve this. I
would be happy if anybody could help me with this issue.

Thanks,
Dirk



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TabbedPanel-with-huge-number-of-tabs-tp4652598.html
Sent from the Users forum mailing list archive at Nabble.com.

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




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



Re: Wicket and jQuery UI

2012-10-02 Thread Pointbreak
It's a very long time ago that I looked at the API's, so it's likely
things have changed since that time. But the problem I had with both
products is that they are mostly component based API's (meaning they
offer an Accordion component, Autocomplete component, etc.). Imho, a
much more flexible approach for JQuery integration is to offer all
jquery-ui functionality as behaviors. That way existing components (both
from core, other libraries, or your own code) can more easily be
augmented with jqeury-ui functionality. And since it's easy enough to do
it yourself with a few lines of code, I opted to don't use these
libraries at all.
There are a few things that require more thought (e.g. jQuery Tab-UI
combined integrated with Wicket-Ajax functionality, but at least back
then these frameworks didn't offer that in a flexible way either).

So I would say, check the libraries for how you are supposed to add the
jquery functionality (behavior vs component hierarchy), and don't be
afraid to just roll your own if necessary. It's not that much extra
functionality that the library offers over just using raw Wicket and
jQuery.

My 2cnts.

On Tue, Oct 2, 2012, at 13:02, ronny.v...@consult.nordea.com wrote:
 Hi
 
 I was not thinking about  the base, ie AbstractDefaultAjaxBehavior.
 
 I was thinking about using one off the API - several components - could
 be accordion? could be some effects etc.
 
 So I was thinking about who has tried out both API's - has some
 experiences and suggest this API because bla bla.
 
 Hope I explain myself fully here.
 
 - Ronny
 
 -Original Message-
 From: Martin Grigorov [mailto:mgrigo...@apache.org] 
 Sent: 02 October 2012 08:52
 To: users@wicket.apache.org
 Subject: Re: Wicket and jQuery UI
 
 Hi,
 
 On Tue, Oct 2, 2012 at 9:28 AM,  ronny.v...@consult.nordea.com wrote:
  Hi Wicket
 
  I have been looking at a) wiQuery and b) wicket-jquery-ui
 
  What API to use when doing a bridge between Wicket and jQuery UI?
 
 What exactly do you need ?
 
 The bridge is AbstractDefaultAjaxBehavior - the base Ajax behavior.
 
 
  Recommendations and experience would be very much welcomed.
 
  Thanks in advance!
 
  Best regards/Med venlig hilsen
  Ronny Voss
 
  Nordea Bank Danmark A/S
  Online  Securities Processing Solutions Strandgade 3
  DK-1401 København K
  Mobile: +45 26711952
  E-mail: 
  ronny.v...@consult.nordea.commailto:ronny.v...@consult.nordea.com

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



HTML validation

2012-10-02 Thread Lucio Crusca
Hello *,

I'm new to wicket. I use NetBeans 7.2/Linux.

I'm trying to follow some examples, but NB doesn't validate wicket HTML files. 
Now I could live without validating them. However the NetBeans editor 
highlights syntax errors and that's a desirable feature, but it becomes an 
annoyance if any wicket string is seen as an error.

For example, this file I copied from wicket examples:

html xmlns:wicket=http://wicket.apache.org;
head
titleWicket Examples - Authentication/title
link rel=stylesheet type=text/css href=style.css/
/head
body
span wicket:id=mainNavigation/
wicket:child /
/body
/html

scores 3 errors in Netbeans plus some warnings.

By the way, the w3c validator [1], fed with the same HTML files, reports the 
same errors of the Netbeans editor and then some. Both autodetect wicket HTML 
files as HTML 5.

If I force them as XHTML 1.0 Transitional, by adding

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

at the top and

xmlns=http://www.w3.org/1999/xhtml;

in the html tag, w3c validator finds only two errors and NetBeans takes it 
showing only a couple of warnings. This could be an acceptable workaround for 
me, but I wonder if I'm doing something basically wrong.

Is there a way to write valid HTML in wicket?

[1]. http://validator.w3.org/check

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



Re: get new value of drop down inside vieworedit on onchange

2012-10-02 Thread vineet semwal
no you can't but if your use case is just to retain old value,you can
retain it in
a field ,you can even set the old value back or just write your own
behavior that does that

On Tue, Oct 2, 2012 at 2:08 PM, cosmindumy cosmind...@yahoo.com wrote:
 Another question, hope the last at this topic.
 May I get the value before the update in AjaxFormComponentUpdatingBehavior?
 Now on update the new model is already setted.
 Thanks.



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/get-new-value-of-drop-down-inside-vieworedit-on-onchange-tp4652479p4652596.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




-- 
regards,

Vineet Semwal

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



Migration 1.5 - 6 CancelEventIfNoAjaxDecorator

2012-10-02 Thread Marco Di Sabatino Di Diodoro
Hi all,

how can I convert  for Wicket 6.0:

@Override
protected IAjaxCallDecorator getAjaxCallDecorator () {
return new 
CancelEventIfNoAjaxDecorator(AjaxDecoratedCheckbox.this.getAjaxCallDecorator());
}

Regards
M

--

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: Migration 1.5 - 6 CancelEventIfNoAjaxDecorator

2012-10-02 Thread Martin Grigorov
Hi Marco,

Just remove this. It is the default in Wicket 6.

To switch on/off:
 #updateAjaxAttributes(AjaxRequestAttributes attrs){
   attrs.setAllowDefault(true|false);
}

On Tue, Oct 2, 2012 at 3:51 PM, Marco Di Sabatino Di Diodoro
marco.disabat...@tirasa.net wrote:
 Hi all,

 how can I convert  for Wicket 6.0:

 @Override
 protected IAjaxCallDecorator getAjaxCallDecorator () {
 return new 
 CancelEventIfNoAjaxDecorator(AjaxDecoratedCheckbox.this.getAjaxCallDecorator());
 }

 Regards
 M

 --

 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







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

2012-10-02 Thread Martin Grigorov
org.apache.wicket.pageStore.memory.HttpSessionDataStore

On Tue, Oct 2, 2012 at 3:49 PM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
 Hi

 Are there a memory only session store? I am seeing a lot of writes from
 tomcat, and wanted to see if using a different session store would help..
 we are using LDM's extensively.

 --
 Best regards / Med venlig hilsen
 Nino Martinez



-- 
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: HTML validation

2012-10-02 Thread Martin Grigorov
Hi,

I use Intellij IDEA and here is what I did to suppress those errors:
File - Settings - DTDs and Schemas - External DTDs and Schemas -
Add button (+) - URI = http://wicket.apache.org , Location:
/path/to/wicket-core.jar#META-INF/wicket-1.5.xsd

Now you should find how to do this in Netbeans.
Good luck!

On Tue, Oct 2, 2012 at 3:45 PM, Lucio Crusca lu...@sulweb.org wrote:
 Hello *,

 I'm new to wicket. I use NetBeans 7.2/Linux.

 I'm trying to follow some examples, but NB doesn't validate wicket HTML files.
 Now I could live without validating them. However the NetBeans editor
 highlights syntax errors and that's a desirable feature, but it becomes an
 annoyance if any wicket string is seen as an error.

 For example, this file I copied from wicket examples:

 html xmlns:wicket=http://wicket.apache.org;
 head
 titleWicket Examples - Authentication/title
 link rel=stylesheet type=text/css href=style.css/
 /head
 body
 span wicket:id=mainNavigation/
 wicket:child /
 /body
 /html

 scores 3 errors in Netbeans plus some warnings.

 By the way, the w3c validator [1], fed with the same HTML files, reports the
 same errors of the Netbeans editor and then some. Both autodetect wicket HTML
 files as HTML 5.

 If I force them as XHTML 1.0 Transitional, by adding

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

 at the top and

 xmlns=http://www.w3.org/1999/xhtml;

 in the html tag, w3c validator finds only two errors and NetBeans takes it
 showing only a couple of warnings. This could be an acceptable workaround for
 me, but I wonder if I'm doing something basically wrong.

 Is there a way to write valid HTML in wicket?

 [1]. http://validator.w3.org/check

 -
 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



HighlightForm without consuming FeedbackMessages

2012-10-02 Thread Wolfgang

Hi everybody!

I have made a subclass of org.apache.wicket.markup.html.form.Form
with name HighlightForm

The purpose of this class is to give all Fields a css class fieldError 
if validation failed for all FormComponents.
But in a way that it's generic - so I can use this class as DropIn 
Replacement for normal Wicket-Form class.


I have uploaded a quickstart example here:
http://www.woifal.at/testHighlightForm.zip

So I visit all Children/FormComponents of the Form via an IVisitor and 
add an AttributeModifier where I have overwritten the
isEnabled(Component) Method so to only enable the modifier when current 
component is not valid.


So the invalid fields get the css class fieldError which makes there 
background coloured in red. I don't show the feedbackMessages anywhere.


This worked with wicket 1.5.
Now with Wicket 6 the handling of FeedbackMessage have changed - so they 
get marked to be cleared after they are rendered.

FeedbackMessage.markRendered()

As I don't render the messages they survive even when I input valid 
values into the form and submit it again - validation continues to fail.

therefore in the
isEnabled(Component component)
method of the AttributeModifier I go through all FeedbackMessages and 
call markRendered()

is this the right way? Is there a better place to do this?

start with
mvn jetty:run


Thank you very much
Wolfgang

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



Re: HighlightForm without consuming FeedbackMessages

2012-10-02 Thread Martin Grigorov
Hi,

Try with latest 6.x.
There were two related improvements:
https://issues.apache.org/jira/browse/WICKET-4773
https://issues.apache.org/jira/browse/WICKET-4757

On Tue, Oct 2, 2012 at 4:07 PM, Wolfgang wicket-us...@woifal.at wrote:
 Hi everybody!

 I have made a subclass of org.apache.wicket.markup.html.form.Form
 with name HighlightForm

 The purpose of this class is to give all Fields a css class fieldError if
 validation failed for all FormComponents.
 But in a way that it's generic - so I can use this class as DropIn
 Replacement for normal Wicket-Form class.

 I have uploaded a quickstart example here:
 http://www.woifal.at/testHighlightForm.zip

 So I visit all Children/FormComponents of the Form via an IVisitor and add
 an AttributeModifier where I have overwritten the
 isEnabled(Component) Method so to only enable the modifier when current
 component is not valid.

 So the invalid fields get the css class fieldError which makes there
 background coloured in red. I don't show the feedbackMessages anywhere.

 This worked with wicket 1.5.
 Now with Wicket 6 the handling of FeedbackMessage have changed - so they get
 marked to be cleared after they are rendered.
 FeedbackMessage.markRendered()

 As I don't render the messages they survive even when I input valid values
 into the form and submit it again - validation continues to fail.
 therefore in the
 isEnabled(Component component)
 method of the AttributeModifier I go through all FeedbackMessages and call
 markRendered()
 is this the right way? Is there a better place to do this?

 start with
 mvn jetty:run


 Thank you very much
 Wolfgang

 -
 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: Wicket and jQuery UI

2012-10-02 Thread Sébastien Gautrin

Hi Pointbreak,

At least for wicket-jquery-ui, it offers also pure behaviours 
integration for jquery extensions that are pure behaviours (such as 
Droppable). I think wiQuery does as well. For ease of defining such 
things for you own component, it is the main goal of wicket-jquery-ui; 
take a look at the three tutorials Sebastien made (sebfz1) for 
wicket-jquery-ui: 
http://code.google.com/p/wicket-jquery-ui/w/list?q=label:How-To (note: 
Sebastien is the author of wicket-jquery-ui).


More on the topic, I as well would welcome experience returns from 
people who used both (though personally I'm inclined to use 
wicket-jquery-ui at the moment, but that's also because I'm biaised 
after having been really impressed at how fast Sebastien integrated run 
fox software Datepicker component to wicket-jquery-ui while doing his 
tutorial#3).


Pointbreak wrote:

It's a very long time ago that I looked at the API's, so it's likely
things have changed since that time. But the problem I had with both
products is that they are mostly component based API's (meaning they
offer an Accordion component, Autocomplete component, etc.). Imho, a
much more flexible approach for JQuery integration is to offer all
jquery-ui functionality as behaviors. That way existing components (both
from core, other libraries, or your own code) can more easily be
augmented with jqeury-ui functionality. And since it's easy enough to do
it yourself with a few lines of code, I opted to don't use these
libraries at all.
There are a few things that require more thought (e.g. jQuery Tab-UI
combined integrated with Wicket-Ajax functionality, but at least back
then these frameworks didn't offer that in a flexible way either).

So I would say, check the libraries for how you are supposed to add the
jquery functionality (behavior vs component hierarchy), and don't be
afraid to just roll your own if necessary. It's not that much extra
functionality that the library offers over just using raw Wicket and
jQuery.

My 2cnts.

On Tue, Oct 2, 2012, at 13:02, ronny.v...@consult.nordea.com wrote:

Hi

I was not thinking about  the base, ie AbstractDefaultAjaxBehavior.

I was thinking about using one off the API - several components - could
be accordion? could be some effects etc.

So I was thinking about who has tried out both API's - has some
experiences and suggest this API because bla bla.

Hope I explain myself fully here.

- Ronny

-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org]
Sent: 02 October 2012 08:52
To: users@wicket.apache.org
Subject: Re: Wicket and jQuery UI

Hi,

On Tue, Oct 2, 2012 at 9:28 AM,  ronny.v...@consult.nordea.com wrote:

Hi Wicket

I have been looking at a) wiQuery and b) wicket-jquery-ui

What API to use when doing a bridge between Wicket and jQuery UI?

What exactly do you need ?

The bridge is AbstractDefaultAjaxBehavior - the base Ajax behavior.


Recommendations and experience would be very much welcomed.

Thanks in advance!

Best regards/Med venlig hilsen
Ronny Voss

Nordea Bank Danmark A/S
Online  Securities Processing Solutions Strandgade 3
DK-1401 København K
Mobile: +45 26711952
E-mail:
ronny.v...@consult.nordea.commailto:ronny.v...@consult.nordea.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: get new value of drop down inside vieworedit on onchange

2012-10-02 Thread Sven Meier
overwrite AjaxFormComponentUpdatingBehavior#getUpdateModel() to return 
false, then update the model for yourself in #onUpdate().


Sven

On 10/02/2012 02:47 PM, vineet semwal wrote:

no you can't but if your use case is just to retain old value,you can
retain it in
a field ,you can even set the old value back or just write your own
behavior that does that

On Tue, Oct 2, 2012 at 2:08 PM, cosmindumy cosmind...@yahoo.com wrote:

Another question, hope the last at this topic.
May I get the value before the update in AjaxFormComponentUpdatingBehavior?
Now on update the new model is already setted.
Thanks.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/get-new-value-of-drop-down-inside-vieworedit-on-onchange-tp4652479p4652596.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: Appending to CSS url to prevent caching.

2012-10-02 Thread dickster
i tried using...
getResourceSettings().setCachingStrategy(new
FilenameWithVersionResourceCachingStrategy(new
MessageDigestResourceVersion()));

...but not all of my urls are rewritten.  the wiquery ones are but the one's
i've added via...
 renderHead(response) { 
   response.renderCssReference(blah); 
}
...don't get appended with version MD5. 
do i have to use different technique for adding them?  (is my current way of
adding them not the preferred way?)








--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Appending-to-CSS-url-to-prevent-caching-tp4652508p4652618.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: HTML validation

2012-10-02 Thread Lucio Crusca
In data martedì 2 ottobre 2012 15:01:28, Martin Grigorov ha scritto:
 Hi,
 
 I use Intellij IDEA and here is what I did to suppress those errors:
 File - Settings - DTDs and Schemas - External DTDs and Schemas -
 Add button (+) - URI = http://wicket.apache.org , Location:
 /path/to/wicket-core.jar#META-INF/wicket-1.5.xsd

Thanks, it was actually a farly logic solution... however in Netbeans the 
dialog window that appears after clicking DTDs and Schemas/Add Local DTD or 
Schema looks like this:

http://www.virtual-bit.com/download/sparsi/adddtdschema.png

What PUBLIC ID or SYSTEM ID should I enter?

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



Re: Wicket and jQuery UI

2012-10-02 Thread Pointbreak
But why not for tabs, accordion, slider, and other jquery components?
That gives you much more flexibility in separating what a component
logically does (e.g. render various sections of data, widgets, etc.),
from how it is shown and interacted with in the browser (view as tabs,
steps in a widget, accordion, just plain sections, ...). In jquery-ui
itself you also add it as a behavior to a DOM element. So why not offer
that flexibility in the Wicket integration? Idem ditto for things like
draggable, droppable, etc. Why not offer the possibility to make any
existing wicket panel/component a draggable by having a
DraggableBehavior? In wicket-jquery-ui you need to subclass a Draggable
panel, which is obviously not possible with already existing
components/panels.

Just to clarify: this is my very personal opinion on how a jquery
integration should be designed (and actually how I've done it for many
projects so far). That's obviously very subjective. It looks like an
impressive library nonetheless!

On Tue, Oct 2, 2012, at 15:30, Sébastien Gautrin wrote:
 Hi Pointbreak,
 
 At least for wicket-jquery-ui, it offers also pure behaviours 
 integration for jquery extensions that are pure behaviours (such as 
 Droppable). I think wiQuery does as well. For ease of defining such 
 things for you own component, it is the main goal of wicket-jquery-ui; 
 take a look at the three tutorials Sebastien made (sebfz1) for 
 wicket-jquery-ui: 
 http://code.google.com/p/wicket-jquery-ui/w/list?q=label:How-To (note: 
 Sebastien is the author of wicket-jquery-ui).
 
 More on the topic, I as well would welcome experience returns from 
 people who used both (though personally I'm inclined to use 
 wicket-jquery-ui at the moment, but that's also because I'm biaised 
 after having been really impressed at how fast Sebastien integrated run 
 fox software Datepicker component to wicket-jquery-ui while doing his 
 tutorial#3).
 
 Pointbreak wrote:
  It's a very long time ago that I looked at the API's, so it's likely
  things have changed since that time. But the problem I had with both
  products is that they are mostly component based API's (meaning they
  offer an Accordion component, Autocomplete component, etc.). Imho, a
  much more flexible approach for JQuery integration is to offer all
  jquery-ui functionality as behaviors. That way existing components (both
  from core, other libraries, or your own code) can more easily be
  augmented with jqeury-ui functionality. And since it's easy enough to do
  it yourself with a few lines of code, I opted to don't use these
  libraries at all.
  There are a few things that require more thought (e.g. jQuery Tab-UI
  combined integrated with Wicket-Ajax functionality, but at least back
  then these frameworks didn't offer that in a flexible way either).
 
  So I would say, check the libraries for how you are supposed to add the
  jquery functionality (behavior vs component hierarchy), and don't be
  afraid to just roll your own if necessary. It's not that much extra
  functionality that the library offers over just using raw Wicket and
  jQuery.
 
  My 2cnts.
 
  On Tue, Oct 2, 2012, at 13:02, ronny.v...@consult.nordea.com wrote:
  Hi
 
  I was not thinking about  the base, ie AbstractDefaultAjaxBehavior.
 
  I was thinking about using one off the API - several components - could
  be accordion? could be some effects etc.
 
  So I was thinking about who has tried out both API's - has some
  experiences and suggest this API because bla bla.
 
  Hope I explain myself fully here.
 
  - Ronny
 
  -Original Message-
  From: Martin Grigorov [mailto:mgrigo...@apache.org]
  Sent: 02 October 2012 08:52
  To: users@wicket.apache.org
  Subject: Re: Wicket and jQuery UI
 
  Hi,
 
  On Tue, Oct 2, 2012 at 9:28 AM,  ronny.v...@consult.nordea.com wrote:
  Hi Wicket
 
  I have been looking at a) wiQuery and b) wicket-jquery-ui
 
  What API to use when doing a bridge between Wicket and jQuery UI?
  What exactly do you need ?
 
  The bridge is AbstractDefaultAjaxBehavior - the base Ajax behavior.
 
  Recommendations and experience would be very much welcomed.
 
  Thanks in advance!
 
  Best regards/Med venlig hilsen
  Ronny Voss
 
  Nordea Bank Danmark A/S
  Online  Securities Processing Solutions Strandgade 3
  DK-1401 København K
  Mobile: +45 26711952
  E-mail:
  ronny.v...@consult.nordea.commailto:ronny.v...@consult.nordea.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
 

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

Re: Wicket and jQuery UI

2012-10-02 Thread Sebastien
Hi,

I will provide an answer for wicket-jquery-ui and let people/users from
wiQuery answer about this last.

wicket-jquery-ui has several goals: the first one is to provide the jQuery
UI widget library as Wicket components, for both wicket 1.5.x and wicket
6.x. The work has mainly been focused to provide Wicket jQuery UI
components having (I hope) the same philosophy/logic as Wicket's built-in
ones, so the user deals with these components the same manner he usually
deals with the Wicket ones. This is the most important point IMO. In
addition, it provides - as Sebastien said - pure Behavior to allow users to
use it either directly or embed it in other components. The advantage of
using a Component versus a Behavior is that the Component can offers some
events handling (ajax, naturally). To answer Pointbreak, a Draggable - for
instance - is a Component for this specific reason, to be able to broadcast
events (using latest Wicket event mechanism) either to itself (most common
case for components) or to a Droppable object. It would have been really
much difficult to understand the event logic if only a Behavior would have
been supplied. For the Accordion, I did not provide the associated Behavior
because it straightforward to add it (as many others, but it is probably
not clear enough): add(new JQueryBehavior(#myId, accordion)); I am
currently working on the accordion this week to provides its specific
Behavior and event handling...

The second goal is that the 'core' is also designed to integrate other
plugins, from simple Behaviors to complex Components. For instance, the
project provides an integration of the Calendar (from FullCalendar jQuery
plugin) and an integration of several components of the Kendo-UI widget
library. In the future, I think it will also provide an integration of a
really good charting library (but it's a secret! ;). I began to write the
tutorial series on how-to implement plugins but it is unfortunately not yet
finished.

wicket-jquery-ui is fairly new - the first version has been released about
6 months ago and has already been downloaded several hundred of time (I do
not have latest maven stats), the demo site recorded more than 2 000 visits
these last 30 days (11 700 page views). No just to give you some numbers,
just to say that it seems to be really in use; I use it myself - and my
colleges - at work on some big projects. And the number of opened issues
(very low) tends me to say that the API seems to be stable/reliable. (or
nobody use it in fact ;))

I do not have a lot a feedback about who - and how - the API is used.
However, I hope these few lines will help you to answer a part of your
question.

Best regards,
Sebastien.

On Tue, Oct 2, 2012 at 6:44 PM, Pointbreak
pointbreak+wicketst...@ml1.netwrote:

 But why not for tabs, accordion, slider, and other jquery components?
 That gives you much more flexibility in separating what a component
 logically does (e.g. render various sections of data, widgets, etc.),
 from how it is shown and interacted with in the browser (view as tabs,
 steps in a widget, accordion, just plain sections, ...). In jquery-ui
 itself you also add it as a behavior to a DOM element. So why not offer
 that flexibility in the Wicket integration? Idem ditto for things like
 draggable, droppable, etc. Why not offer the possibility to make any
 existing wicket panel/component a draggable by having a
 DraggableBehavior? In wicket-jquery-ui you need to subclass a Draggable
 panel, which is obviously not possible with already existing
 components/panels.

 Just to clarify: this is my very personal opinion on how a jquery
 integration should be designed (and actually how I've done it for many
 projects so far). That's obviously very subjective. It looks like an
 impressive library nonetheless!

 On Tue, Oct 2, 2012, at 15:30, Sébastien Gautrin wrote:
  Hi Pointbreak,
 
  At least for wicket-jquery-ui, it offers also pure behaviours
  integration for jquery extensions that are pure behaviours (such as
  Droppable). I think wiQuery does as well. For ease of defining such
  things for you own component, it is the main goal of wicket-jquery-ui;
  take a look at the three tutorials Sebastien made (sebfz1) for
  wicket-jquery-ui:
  http://code.google.com/p/wicket-jquery-ui/w/list?q=label:How-To (note:
  Sebastien is the author of wicket-jquery-ui).
 
  More on the topic, I as well would welcome experience returns from
  people who used both (though personally I'm inclined to use
  wicket-jquery-ui at the moment, but that's also because I'm biaised
  after having been really impressed at how fast Sebastien integrated run
  fox software Datepicker component to wicket-jquery-ui while doing his
  tutorial#3).
 
  Pointbreak wrote:
   It's a very long time ago that I looked at the API's, so it's likely
   things have changed since that time. But the problem I had with both
   products is that they are mostly component based API's (meaning they
   offer an Accordion 

Re: SessionStore

2012-10-02 Thread nino martinez wael
Great wasnt sure if it were memory only..

2012/10/2 Martin Grigorov mgrigo...@apache.org

 org.apache.wicket.pageStore.memory.HttpSessionDataStore

 On Tue, Oct 2, 2012 at 3:49 PM, nino martinez wael
 nino.martinez.w...@gmail.com wrote:
  Hi
 
  Are there a memory only session store? I am seeing a lot of writes from
  tomcat, and wanted to see if using a different session store would help..
  we are using LDM's extensively.
 
  --
  Best regards / Med venlig hilsen
  Nino Martinez



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




-- 
Best regards / Med venlig hilsen
Nino Martinez


Re: [Announce] wicket-dashboard

2012-10-02 Thread Paul Szulc
If we dont want to add any specific DI implementation, and Dashboard
depends on DashboardPersister, WidgetFactory,
WidgetRegistry then I guess there are two ways we can do here:

1. constructor

Dashboard constructor will take DashboardPersister,
WidgetFactory, WidgetRegistry as parameters. Or we can create
DashboardDependeciesBuilder that takes DashboardPersister, WidgetFactory,
WidgetRegistry as parameter, with one method build(String wicketId) that
creates Dashboard - this way we could add DashboardDepdenciesBuilder to our
CI and use it later on to create Dashboard. Something like this:

@SpringBean
private DashboarDepenciesBuilder ddb;
//...
add(ddb.build(dashboard));


2. interface implemtation on WicketApplication object

This will suck becasue it will make tests almost imposible,but we could
define interface that clients project's WicketApplication would have to
implement (lets call it for example DashboardDepenciesProvider). Then in
your code you could do something like this:

checkState(WicketApplication.get() instantce of DashboardDepenciesProvider,
WicketApplication must implements DashboardDepenciesProvider);
DashboardDepenciesProvider ddp =
(DashboardDepenciesProvider)WicketApplication.get();
ddp.getDashboardPersister() // and so on


Paul Szulc

On Tue, Oct 2, 2012 at 10:37 AM, Decebal Suiu decebal.s...@asf.ro wrote:

 Hi Paul

 Thanks for the feedback. I will split the project in modules asap. In my
 mind are some problems related to modularity that cannot be resolved so
 easy: how can I inject some components (DashboardPersister, WidgetFactory,
 WidgetRegistry) in wicket-dashboard? Now these components are singletons
 defined in DashboardApplication (demo package). In a real application
 (NextReports server for example), you may want to inject these components
 using a DI framework (spring framework in our case) and probably you want
 to
 save the dashboard layout in a database or jcr.
 Other problem is to add custom actions to widget header panel as
 contributors.

 Sure, the first step will be to split the project in core, demo, standard
 widgets and after this step to resolve the problems described above.

 Best regards,
 Decebal



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-dashboard-tp4652308p4652595.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: [Announce] wicket-dashboard

2012-10-02 Thread Martin Grigorov
Have you considered Wicket's IInitializer ?

This notifies you when the app is about to start and gives you the
Application instance.
From here you just need to decide how to store and lookup the registry
for the widgets in the app.

On Tue, Oct 2, 2012 at 11:06 PM, Paul Szulc paul.sz...@gmail.com wrote:
 If we dont want to add any specific DI implementation, and Dashboard
 depends on DashboardPersister, WidgetFactory,
 WidgetRegistry then I guess there are two ways we can do here:

 1. constructor

 Dashboard constructor will take DashboardPersister,
 WidgetFactory, WidgetRegistry as parameters. Or we can create
 DashboardDependeciesBuilder that takes DashboardPersister, WidgetFactory,
 WidgetRegistry as parameter, with one method build(String wicketId) that
 creates Dashboard - this way we could add DashboardDepdenciesBuilder to our
 CI and use it later on to create Dashboard. Something like this:

 @SpringBean
 private DashboarDepenciesBuilder ddb;
 //...
 add(ddb.build(dashboard));


 2. interface implemtation on WicketApplication object

 This will suck becasue it will make tests almost imposible,but we could
 define interface that clients project's WicketApplication would have to
 implement (lets call it for example DashboardDepenciesProvider). Then in
 your code you could do something like this:

 checkState(WicketApplication.get() instantce of DashboardDepenciesProvider,
 WicketApplication must implements DashboardDepenciesProvider);
 DashboardDepenciesProvider ddp =
 (DashboardDepenciesProvider)WicketApplication.get();
 ddp.getDashboardPersister() // and so on


 Paul Szulc

 On Tue, Oct 2, 2012 at 10:37 AM, Decebal Suiu decebal.s...@asf.ro wrote:

 Hi Paul

 Thanks for the feedback. I will split the project in modules asap. In my
 mind are some problems related to modularity that cannot be resolved so
 easy: how can I inject some components (DashboardPersister, WidgetFactory,
 WidgetRegistry) in wicket-dashboard? Now these components are singletons
 defined in DashboardApplication (demo package). In a real application
 (NextReports server for example), you may want to inject these components
 using a DI framework (spring framework in our case) and probably you want
 to
 save the dashboard layout in a database or jcr.
 Other problem is to add custom actions to widget header panel as
 contributors.

 Sure, the first step will be to split the project in core, demo, standard
 widgets and after this step to resolve the problems described above.

 Best regards,
 Decebal



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-dashboard-tp4652308p4652595.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: Appending to CSS url to prevent caching.

2012-10-02 Thread Martin Grigorov
On Tue, Oct 2, 2012 at 6:46 PM, dickster derek.i...@gmail.com wrote:
 i tried using...
 getResourceSettings().setCachingStrategy(new
 FilenameWithVersionResourceCachingStrategy(new
 MessageDigestResourceVersion()));

 ...but not all of my urls are rewritten.  the wiquery ones are but the one's
 i've added via...
  renderHead(response) {
response.renderCssReference(blah);

What kind of CSS this produces ?
I think this generates:
style
blah
/style
directly in the page markup. If I'm correct then there is no need to
add anti-caching here because next render of the page will deliver
whatever is needed.
Only external file resources can be cached.

 }
 ...don't get appended with version MD5.
 do i have to use different technique for adding them?  (is my current way of
 adding them not the preferred way?)








 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Appending-to-CSS-url-to-prevent-caching-tp4652508p4652618.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