Re: [announce] Wicket Security 1.4 released!

2010-06-01 Thread david_

I have been using wicket-security for months now, and I'm very happy about
it!
Finally the 1.4 release I've been waiting for :)

I've gathered my information mostly from 
http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security

It is not up to date, but has everything to start with.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/announce-Wicket-Security-1-4-released-tp2237419p2238023.html
Sent from the Wicket - User 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 Security 1.4 released!

2010-06-01 Thread Paul Szulc
true, some  kind of quick start could be useful

On Mon, May 31, 2010 at 8:00 PM, Joe Fawzy joewic...@gmail.com wrote:

 Hi
 i heard a lot about this project but have no opportunity to play with it
 i think a (detailed) tutorial or a getting start guide is required(for
 someone like me) to begin using this

 any pointers?

 thanks
 Joe

 On Mon, May 31, 2010 at 5:07 PM, Martijn Dashorst 
 martijn.dasho...@gmail.com wrote:

  We are proud to release Wicket Security 1.4 final.
 
  Wicket Security is an attempt to create an out of the box reusable
  authenticating and authorization framework for Apache Wicket. It
  contains several projects which can be used standalone or in
  conjunction with each other.
 
  After testing the codebase for a while we did not find any issues.
 
  Differences between the 1.4-rc1 release:
   - upgraded dependencies to newest working versions (JUnit 4.x does
  not work with Spring)
   - versioned maven plugins to appease the Maven 3 gods.
 
  Many thanks go to Olger Warnier for the initial port of Wicket
  Security to Wicket 1.4.
 
  The release is available from the usual Wicket Stuff maven repository:
 
 
 
 http://wicketstuff.org/maven/repository/org/apache/wicket/wicket-security
 
  If you already depend on Wicket Security, all you need to do is modify
  the version of your dependencies in your Maven poms:
 
 repository
 idwicketstuff/id
 urlhttp://wicketstuff.org/maven/repository/url
 snapshots
 enabledtrue/enabled
 /snapshots
 releases
 enabledtrue/enabled
 /releases
 /repository
 
 dependency
 groupIdorg.apache.wicket.wicket-security/groupId
 artifactIdswarm/artifactId
 version1.4/version
 scopecompile/scope
 /dependency
 
  Note that with future releases we will move to a new groupId and
  package name (since org.apache.wicket is reserved for Apache Wicket,
  and not 3rd party projects).
 
  The future of the Wicket Security project is to remain a standalone
  project (it will not be adopted by Apache Wicket), and will continue
  to be maintained by Topicus. If you wish to join please let us know!
 
  Emond  Martijn
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 




-- 
Best regards,
Paul Szulc

http://paulszulc.wordpress.com


Re: Re: RE: Rich Text Editors and Wicket

2010-06-01 Thread ralf . eichinger

have a look at the powerful xinha editor (http://www.xinha.org/).

A Wicket integration can be found here:
http://svn.hippocms.org/repos/hippo/hippo-ecm/trunk/addon/



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



Re: [announce] Wicket Security 1.4 released!

2010-06-01 Thread Martijn Dashorst
http://wicketstuff.org/confluence/display/STUFFWIKI/Getting+started+with+Swarm
http://wicketstuff.org/wicketsecurity/
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security-examples


On Tue, Jun 1, 2010 at 8:24 AM, Paul Szulc paul.sz...@gmail.com wrote:
 true, some  kind of quick start could be useful

 On Mon, May 31, 2010 at 8:00 PM, Joe Fawzy joewic...@gmail.com wrote:

 Hi
 i heard a lot about this project but have no opportunity to play with it
 i think a (detailed) tutorial or a getting start guide is required(for
 someone like me) to begin using this

 any pointers?

 thanks
 Joe

 On Mon, May 31, 2010 at 5:07 PM, Martijn Dashorst 
 martijn.dasho...@gmail.com wrote:

  We are proud to release Wicket Security 1.4 final.
 
  Wicket Security is an attempt to create an out of the box reusable
  authenticating and authorization framework for Apache Wicket. It
  contains several projects which can be used standalone or in
  conjunction with each other.
 
  After testing the codebase for a while we did not find any issues.
 
  Differences between the 1.4-rc1 release:
   - upgraded dependencies to newest working versions (JUnit 4.x does
  not work with Spring)
   - versioned maven plugins to appease the Maven 3 gods.
 
  Many thanks go to Olger Warnier for the initial port of Wicket
  Security to Wicket 1.4.
 
  The release is available from the usual Wicket Stuff maven repository:
 
 
 
 http://wicketstuff.org/maven/repository/org/apache/wicket/wicket-security
 
  If you already depend on Wicket Security, all you need to do is modify
  the version of your dependencies in your Maven poms:
 
         repository
                 idwicketstuff/id
                 urlhttp://wicketstuff.org/maven/repository/url
                 snapshots
                         enabledtrue/enabled
                 /snapshots
                 releases
                         enabledtrue/enabled
                 /releases
         /repository
 
         dependency
                 groupIdorg.apache.wicket.wicket-security/groupId
                 artifactIdswarm/artifactId
                 version1.4/version
                 scopecompile/scope
         /dependency
 
  Note that with future releases we will move to a new groupId and
  package name (since org.apache.wicket is reserved for Apache Wicket,
  and not 3rd party projects).
 
  The future of the Wicket Security project is to remain a standalone
  project (it will not be adopted by Apache Wicket), and will continue
  to be maintained by Topicus. If you wish to join please let us know!
 
  Emond  Martijn
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 




 --
 Best regards,
 Paul Szulc

 http://paulszulc.wordpress.com




-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8

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



How to get PageClass form mounted bookmarkable page

2010-06-01 Thread Stefan Lindner
I have some pages mounted  with

 

moutBookmarkablePage(/somePath, MyPage.class)

 

in Application.init. Now I have the path /somePath from webRequest.
How can I retriev the matching MyPage.class for the path /somePath?

 

Stefan



Re: Selection of disabled DropDownChoice lost

2010-06-01 Thread Baschir Jaghoori

Does anyone have an idea? Is this

1. Not a bug but a feature
2. Wrong usage of the API
3. A bug?

thanks!
Baschir

Am 27.05.2010 12:05, schrieb Baschir Jaghoori:

Hi all,

I have a problem with a Wizard like structure with a form and two
panels, displayed one after another (using addOrReplace).

The first panel contains a DropDownChoice. The second also contains a
DDC in disabled mode with the same model.

When I select a value on the first panel and submit it, the right (i.e.
the same) value is selected in the second panel - as expected. But if I
go back to the first panel and again forward to the second, the
selection is lost. The value in the model is correct, but no value is
selected!

I found out that overriding the isInputNullable method helps, but I
don't understand why. Seems like a bug to me.

I've attached a Test Project that demonstrates the behavior...

Now is this a bug or a feature :-)

Thanks
Baschir





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



--
Mit freundlichen Grüßen / Best regards

Baschir Jaghoori

mgm technology partners GmbH
Frankfurter Ring 105a
80807 München

Tel. +49 (89) 35 86 80-255
Fax +49 (89) 35 86 80-288

E-Mail baschir.jagho...@mgm-tp.com

Innovation Implemented.

Sitz der Gesellschaft: München
Geschäftsführer: Hamarz Mehmanesh
Handelsregister: AG München HRB 105068

_
ACHTUNG: Die Information in dieser E-Mail ist vertraulich und unterliegt 
zusätzlich gesetzlichen Schutzrechten. Sie ist nur für die genannten 
Empfänger bestimmt. Wenn Sie diese Nachricht irrtümlich erhalten haben, 
benachrichtigen Sie uns bitte unverzüglich durch Antwort auf diese 
E-Mail oder durch Anruf unter der obigen Nummer und löschen Sie die 
E-Mail samt aller Anlagen. Beachten Sie bitte, dass jede nicht 
genehmigte Kenntnisnahme, Kopie, Weiterverbreitung oder anderweitige 
Verwendung der Information verboten ist. Vielen Dank.
NOTICE: The information contained in this e-mail is confidential or may 
otherwise be legally privileged. It is intended for the named recipient 
only. If you have received it in error, please notify us immediately by 
reply or by calling the telephone number above and delete this message 
and all its attachments. Please note that any unauthorized review, 
copying, disclosing or otherwise making use of the information is 
strictly prohibited. Thank you.


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



Can't use form inside fragment

2010-06-01 Thread Todd Nine
Hi all,
  I'm new to Wicket, so if I've done something obviously wrong, please point
it out.  I have 2 ways the user could log in to our site.  One if via the
full page login form, the other is via  quick login in the header.  Since
I'll need to gather the same form data in multiple places, I've created a
reusable form object below.

http://pastie.org/private/7v1vnmyb4kefamu8q1tnfw

Now, I'm working on my SessionPanel.  This is the panel at the top right
of my header.  If the user is logged in, it shows a logout link.  If they're
an anonymous user, it shows the login form.  I have this for my panel code.

http://www.pastie.org/private/bw5vvzddtrcruemnobjg

And here is my html

http://www.pastie.org/private/o9gzhxeqfcbu8vpohr1uvw

Whenever I try to render the page, I always receive this error.


Root cause:

org.apache.wicket.markup.MarkupException: Expected close tag for
wicket:fragment wicket:id=login
[markup =
file:/Users/toddnine/development/aviator-services/logbook/target/classes/com/spidertracks/aviator/logbook/panel/SessionPanel.html
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
   http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

html xmlns=http://www.w3.org/1999/xhtml;
xmlns:wicket=http://wicket.sourceforge.net/; xml:lang=en lang=en
body
wicket:panel
wicket:fragment wicket:id=login
form wicket:id=loginForm
pkeep me logged in:
input type=checkbox wicket:id=rememberMe/
/p
p email: input type=text wicket:id=email/
password: input type=password wicket:id=password/
input type=submit value=Login /
/p
/form
/wicket:fragment


wicket:fragment wicket:id=logout
pa href=# wicket:id=logoutlogout/a/p
/wicket:fragment
/wicket:panel
/body
/html, index = 5, current = 'form wicket:id=loginForm' (line 9, column
3)]
at
org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:474)
at
org.apache.wicket.Component.renderClosingComponentTag(Component.java:4318)
at org.apache.wicket.Component.renderComponent(Component.java:2627)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
at org.apache.wicket.Component.render(Component.java:2450)
at
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
at
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
at
org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:675)
at
org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114)
at org.apache.wicket.Component.renderComponent(Component.java:2619)

My XHtml seems well formed, what am I doing wrong?

Thanks,
Todd


Process background

2010-06-01 Thread Ivan Arcos
I have the following problem. I want you when you click on a link I
load a modal window with an image of loading. Meanwhile I want to run
a background process. I've tried OnAfterRender but my process is
running before, I tried to thread but I must be doing something wrong
that always gives me an error There is no style application attached
to current thread.

What could I do?

Thank you very much

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



Re: Right-Click on LinkTree

2010-06-01 Thread AleXeL

I finally figured it out by overriding newNodeComponent and redefinying the
structure of each link.
Each link is now a BookmarkablePageLink and has the correct URL...

This could be helpful:
http://apache-wicket.1842946.n4.nabble.com/LinkTree-with-BookmarkablePageLinks-td1878004.html#a1878004
LinkTree-with-BookmarkablePageLinks 

Best Regards, 
AleXeL
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Right-Click-on-LinkTree-tp2237440p2238234.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



wicket clustering wicket-security

2010-06-01 Thread David Meulemans
I want to have multiple wicket applications to be clustered. Because I'm
using ehcache it is necessary to merge the applications into one .war file
because ehcache needs to be initiated in the same scope as the other
applications.Now the session is shared among all applications.
Is there a way to avoid this?


Why does SerializableChecker throw WicketNotSerializableException on guice injected non Serializable class ?

2010-06-01 Thread Joseph Pachod

hi

In a form, I'm injecting a factory through guice. The factory's 
interface doesn't extend Serializable, as well as the implementation.


Then the SerializableChecker throws
org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: 
Unable to serialize class: 
com.softculture.core.dataseries.morphia.wicket.DefaultDecoratorFactory


I was assuming that such a class wouldn't need to be Serializable, since 
it was never serialized done thanks to guice injection... Am I wrong ?


thanks in advance

best regards
--

Joseph Pachod
IT
THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 410
F  + 49 761 3 85 59 550
E  lar...@thomas-daily.de
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947


Registrieren Sie sich unter https://www.thomas-daily.de/user/sign-in für die TD 
Morning News, eine kostenlose Auswahl aktueller Themen aus TD Premium, morgens 
ab 9:15 in Ihrer Mailbox.

Aktuelle Presseinformationen für die TD Morning News und TD Premium nimmt 
unsere Redaktion unter redakt...@thomas-daily.de entgegen.
Redaktionsschluss für die TD Morning News ist täglich um 8:45.

Register free of charge at https://www.thomas-daily.de/user/sign-in to have the 
TD Morning News, a selection of the latest topics from TD Premium, delivered to 
your mailbox from 9:15 every morning.

Our editorial department receives the latest press releases for the TD Morning News and TD Premium at redakt...@thomas-daily.de. The editorial deadline for the TD Morning News is 8.45am daily. 



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



Re: Why does SerializableChecker throw WicketNotSerializableException on guice injected non Serializable class ?

2010-06-01 Thread nino martinez wael
did you mark it transient?

2010/6/1 Joseph Pachod j...@thomas-daily.de:
 hi

 In a form, I'm injecting a factory through guice. The factory's interface
 doesn't extend Serializable, as well as the implementation.

 Then the SerializableChecker throws
 org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
 Unable to serialize class:
 com.softculture.core.dataseries.morphia.wicket.DefaultDecoratorFactory

 I was assuming that such a class wouldn't need to be Serializable, since it
 was never serialized done thanks to guice injection... Am I wrong ?

 thanks in advance

 best regards
 --

 Joseph Pachod
 IT
 THOMAS DAILY GmbH
 Adlerstraße 19
 79098 Freiburg
 Deutschland
 T  + 49 761 3 85 59 410
 F  + 49 761 3 85 59 550
 E  lar...@thomas-daily.de
 www.thomas-daily.de

 Geschäftsführer/Managing Directors:
 Wendy Thomas, Susanne Larbig
 Handelsregister Freiburg i.Br., HRB 3947


 Registrieren Sie sich unter https://www.thomas-daily.de/user/sign-in für die
 TD Morning News, eine kostenlose Auswahl aktueller Themen aus TD Premium,
 morgens ab 9:15 in Ihrer Mailbox.

 Aktuelle Presseinformationen für die TD Morning News und TD Premium nimmt
 unsere Redaktion unter redakt...@thomas-daily.de entgegen.
 Redaktionsschluss für die TD Morning News ist täglich um 8:45.

 Register free of charge at https://www.thomas-daily.de/user/sign-in to have
 the TD Morning News, a selection of the latest topics from TD Premium,
 delivered to your mailbox from 9:15 every morning.

 Our editorial department receives the latest press releases for the TD
 Morning News and TD Premium at redakt...@thomas-daily.de. The editorial
 deadline for the TD Morning News is 8.45am daily.

 -
 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



how to get the selected tabbedpanel

2010-06-01 Thread Antonio Mauriello
Hi All,

I have the following issue:

A wicket page where I'm working on has a Form plus an AjaxTabbedPannel.

The form has only buttons that change the status of some values in the page.

In each onSubmit() I set the response page to reload the same page but it
goes the default tab and not to the one selected when I click the button.

(All the buttons are outside the tabbedPanels, the panels just show
different details..)


Is there a way to get from an onSubmit() button method the selectedTab?

I cannot find a way to call from onSubmit the getSelectedTab() and pass it
as pageparameter to the wicketPage (to use then the setSelectedTab)


Regards,

Antonio


Re: Why does SerializableChecker throw WicketNotSerializableException on guice injected non Serializable class ?

2010-06-01 Thread Martijn Dashorst
You need to use the Wicket injector for guice. That will create a
serializable proxy for the service. Guice itself doesn't know about
Wicket, so you can't expect it to magically work.

Martijn

On Tue, Jun 1, 2010 at 12:05 PM, Joseph Pachod j...@thomas-daily.de wrote:
 hi

 In a form, I'm injecting a factory through guice. The factory's interface
 doesn't extend Serializable, as well as the implementation.

 Then the SerializableChecker throws
 org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
 Unable to serialize class:
 com.softculture.core.dataseries.morphia.wicket.DefaultDecoratorFactory

 I was assuming that such a class wouldn't need to be Serializable, since it
 was never serialized done thanks to guice injection... Am I wrong ?

 thanks in advance

 best regards
 --

 Joseph Pachod
 IT
 THOMAS DAILY GmbH
 Adlerstraße 19
 79098 Freiburg
 Deutschland
 T  + 49 761 3 85 59 410
 F  + 49 761 3 85 59 550
 E  lar...@thomas-daily.de
 www.thomas-daily.de

 Geschäftsführer/Managing Directors:
 Wendy Thomas, Susanne Larbig
 Handelsregister Freiburg i.Br., HRB 3947


 Registrieren Sie sich unter https://www.thomas-daily.de/user/sign-in für die
 TD Morning News, eine kostenlose Auswahl aktueller Themen aus TD Premium,
 morgens ab 9:15 in Ihrer Mailbox.

 Aktuelle Presseinformationen für die TD Morning News und TD Premium nimmt
 unsere Redaktion unter redakt...@thomas-daily.de entgegen.
 Redaktionsschluss für die TD Morning News ist täglich um 8:45.

 Register free of charge at https://www.thomas-daily.de/user/sign-in to have
 the TD Morning News, a selection of the latest topics from TD Premium,
 delivered to your mailbox from 9:15 every morning.

 Our editorial department receives the latest press releases for the TD
 Morning News and TD Premium at redakt...@thomas-daily.de. The editorial
 deadline for the TD Morning News is 8.45am daily.

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





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8

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



Show/hide form components best practice

2010-06-01 Thread Iain Reddick
Say I have a form with a check box that, when checked, shows some other 
field (i.e. it controls the visibility of other form components).


What is the best approach to handling this?

From what I understand, you have 3 options:

1. Add ajax behaviour to the check box (re-render relevant components).
2. Add javascript from the Java code (e.g. add some kind of show/hide 
behaviour).

3. Add javascript directly to the HTML.

What are peoples experiences of the 3 methods, and which is best?

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



Re: Why does SerializableChecker throw WicketNotSerializableException on guice injected non Serializable class ?

2010-06-01 Thread Joseph Pachod

nino martinez wael wrote:

did you mark it transient?
  
I didn't expect it to be necessary since the wicket guice proxy is still 
serializable (in the way that it handles serialization of its own)


but could be done yes

best
joseph

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



Re: Why does SerializableChecker throw WicketNotSerializableException on guice injected non Serializable class ?

2010-06-01 Thread Joseph Pachod

Martijn Dashorst wrote:

You need to use the Wicket injector for guice. That will create a
serializable proxy for the service. Guice itself doesn't know about
Wicket, so you can't expect it to magically work.

Martijn
sorry, I didn't provide enough context: I'm using wicket-guice (on 
1.4.9). So injection is dealed with by wicket.


best regards
joseph

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



Re: Show/hide form components best practice

2010-06-01 Thread Pedro Santos
2 or 3 since there is no relevant state on the server side you want to
consider to implement the component visibility rule.

On Tue, Jun 1, 2010 at 7:37 AM, Iain Reddick
iain.redd...@beatsystems.comwrote:

 Say I have a form with a check box that, when checked, shows some other
 field (i.e. it controls the visibility of other form components).

 What is the best approach to handling this?

 From what I understand, you have 3 options:

 1. Add ajax behaviour to the check box (re-render relevant components).
 2. Add javascript from the Java code (e.g. add some kind of show/hide
 behaviour).
 3. Add javascript directly to the HTML.

 What are peoples experiences of the 3 methods, and which is best?

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




-- 
Pedro Henrique Oliveira dos Santos


populateItem() not invoked on my custom list

2010-06-01 Thread Romain Pelisse
Hi,

I got a rather dumb issue. As I've been using Wicket only for 2 weeks,
I'm pretty sure that my issue is just a misuse more than a bug.
I implemented a Custom list by inheriting PropertyViewList. This
custom list is then placed into a Panel, which it is itself added to
the Page.

       // The panel constructor
       public MapResultsPanel(String id, MapString,
ListServiceTreeValue results) {
               super(id);
        // Construct the list of Entry
        ListMyEntry myEntries = new ArrayListMyEntry();
        for (EntryString, ListServiceTreeValue servicesEntry :
results.entrySet()) {
         myEntries.add(new
MyEntry(servicesEntry.getKey(),servicesEntry.getValue()));

        }
        // Here comes my custom list
        Entries e = new Entries(entryList, myEntries);
        // Adding entries to the panel
        add(e);
    }


class Entries extends PropertyListViewMyEntry {
        private static final long serialVersionUID = 1L;
        private final ListMyEntry entries;
        public Entries(String id, ListMyEntry entries) {
            super(id);
            this.entries = entries;
        }
       // This is not invoked at run time ...
       �...@override
        protected void populateItem(ListItemMyEntry item) {
            for (MyEntry entry : entries) {
                item.add(new Label(key, entry.id));
                // ...
            }
        }
    }


However, at run time, nothing is displayed on my page and if I debug
the populateItem() method on my custom list implementation is not
called. Somebody on IRC suspected that my model might be empty but how
comes ?

I posted this code on paste bin also : http://pastebin.com/vEVrmDM4
(in case you want to tweak it)

Thanks for any help you can gave me, because I have exhausted most of
my options here...

--
Romain PELISSE,
The trouble with having an open mind, of course, is that people will
insist on coming along and trying to put things in it -- Terry
Pratchett
http://belaran.eu/

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



Re: Can't use form inside fragment

2010-06-01 Thread Jeremy Thomerson
what version of wicket?

On Tue, Jun 1, 2010 at 3:37 AM, Todd Nine t...@spidertracks.co.nz wrote:

 Hi all,
  I'm new to Wicket, so if I've done something obviously wrong, please point
 it out.  I have 2 ways the user could log in to our site.  One if via the
 full page login form, the other is via  quick login in the header.  Since
 I'll need to gather the same form data in multiple places, I've created a
 reusable form object below.

 http://pastie.org/private/7v1vnmyb4kefamu8q1tnfw

 Now, I'm working on my SessionPanel.  This is the panel at the top right
 of my header.  If the user is logged in, it shows a logout link.  If
 they're
 an anonymous user, it shows the login form.  I have this for my panel code.

 http://www.pastie.org/private/bw5vvzddtrcruemnobjg

 And here is my html

 http://www.pastie.org/private/o9gzhxeqfcbu8vpohr1uvw

 Whenever I try to render the page, I always receive this error.


 Root cause:

 org.apache.wicket.markup.MarkupException: Expected close tag for
 wicket:fragment wicket:id=login
 [markup =

 file:/Users/toddnine/development/aviator-services/logbook/target/classes/com/spidertracks/aviator/logbook/panel/SessionPanel.html
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
   http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

 html xmlns=http://www.w3.org/1999/xhtml;
 xmlns:wicket=http://wicket.sourceforge.net/; xml:lang=en lang=en
 body
 wicket:panel
 wicket:fragment wicket:id=login
 form wicket:id=loginForm
 pkeep me logged in:
 input type=checkbox wicket:id=rememberMe/
 /p
 p email: input type=text wicket:id=email/
 password: input type=password wicket:id=password/
 input type=submit value=Login /
 /p
 /form
 /wicket:fragment


 wicket:fragment wicket:id=logout
 pa href=# wicket:id=logoutlogout/a/p
 /wicket:fragment
 /wicket:panel
 /body
 /html, index = 5, current = 'form wicket:id=loginForm' (line 9,
 column
 3)]
at

 org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:474)
at
 org.apache.wicket.Component.renderClosingComponentTag(Component.java:4318)
at org.apache.wicket.Component.renderComponent(Component.java:2627)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
at org.apache.wicket.Component.render(Component.java:2450)
at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
at

 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
at

 org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:675)
at

 org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114)
at org.apache.wicket.Component.renderComponent(Component.java:2619)

 My XHtml seems well formed, what am I doing wrong?

 Thanks,
 Todd




-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Show/hide form components best practice

2010-06-01 Thread Iain Reddick

With (2) and (3), what is the best way of handling validation?

With (1), the server-side state for the form is correct, and the hidden 
component won't be validated on form submit.


With (2) and (3), the visible state of the toggled component is purely 
client side. This means that on form submit, the hidden component will 
still be validated.


Pedro Santos wrote:

2 or 3 since there is no relevant state on the server side you want to
consider to implement the component visibility rule.

On Tue, Jun 1, 2010 at 7:37 AM, Iain Reddick
iain.redd...@beatsystems.comwrote:

  

Say I have a form with a check box that, when checked, shows some other
field (i.e. it controls the visibility of other form components).

What is the best approach to handling this?

From what I understand, you have 3 options:

1. Add ajax behaviour to the check box (re-render relevant components).
2. Add javascript from the Java code (e.g. add some kind of show/hide
behaviour).
3. Add javascript directly to the HTML.

What are peoples experiences of the 3 methods, and which is best?

-
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: Show/hide form components best practice

2010-06-01 Thread Xavier López
I'd say what's reccomended to do in that case is to use a FormValidator in
order to check the conditions that make the toggling component validatable
or not. Check those conditions on the other component's input (getInput(),
getConvertedInput()), because model objects won't be updated until
validation phase ends.

I've been struggling recently on this matter with components inside
refreshingviews, and I have to say I'm feeling like not doing things the way
they should be, i'll append a sample of the formvalidator. I have the
refreshingview as a class attribute, altough it could have been found by
calling a visitor on the Form parameter of validate(), and using a 'tagging'
subclass for the refreshingview. I'd appreciate any comments on this code,
and if it can be improved in any way, I'd love to follow your suggestions
(also, hope that helps, Iain :) )

It's a validator that need counting how many inputs have been filled by the
user to make some business validation. I've been making 'tagging' subclasses
(no code by themselves, only super constructors) of the components inside
the view just to write a simpler visitor:

new IFormValidator(){
private static final long serialVersionUID = 1L;
public FormComponent[] getDependentFormComponents() { return
null; }

public void validate(Form form) {
ListIModel beansList =
(ListIModel)refreshingView.getModelObject();

   // Check count for some inputs on the view
countInputsA= 0;
countInputsB = 0;

// Obtenir els components de desplegables per consultar
inputs en cas que toqui
final ListFormComponent typeAComponents = new
ArrayListFormComponent();
final ListFormComponent typeBComponents= new
ArrayListFormComponent();
refreshingView.visitChildren(TypeAComponent.class, new
IVisitor(){
public Object component(Component component) {
typeAComponents.add((FormComponent)component);
return CONTINUE_TRAVERSAL;
}
});

refreshingView.visitChildren(DdcEntrevistaM45DropDownChoice.class, new
IVisitor(){
public Object component(Component component) {
typeBComponents.add((FormComponent)component);
return CONTINUE_TRAVERSAL;
}
});

for (FormComponent component : typeAComponents ) {
if (component.getConvertedInput() != null){
countInputsA++;
}
}
for (FormComponent component : typeBComponents ) {
if (component.getConvertedInput() != null){
countInputsB++;
}
}

// perform some validations on countInputsA and countInputsB
if (countInputsA  countInputsB) {
error(whatever);
}
}

2010/6/1 Iain Reddick iain.redd...@beatsystems.com

 With (2) and (3), what is the best way of handling validation?

 With (1), the server-side state for the form is correct, and the hidden
 component won't be validated on form submit.

 With (2) and (3), the visible state of the toggled component is purely
 client side. This means that on form submit, the hidden component will still
 be validated.


 Pedro Santos wrote:

 2 or 3 since there is no relevant state on the server side you want to
 consider to implement the component visibility rule.

 On Tue, Jun 1, 2010 at 7:37 AM, Iain Reddick
 iain.redd...@beatsystems.comwrote:



 Say I have a form with a check box that, when checked, shows some other
 field (i.e. it controls the visibility of other form components).

 What is the best approach to handling this?

 From what I understand, you have 3 options:

 1. Add ajax behaviour to the check box (re-render relevant components).
 2. Add javascript from the Java code (e.g. add some kind of show/hide
 behaviour).
 3. Add javascript directly to the HTML.

 What are peoples experiences of the 3 methods, and which is best?

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










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




Re: How to get PageClass form mounted bookmarkable page

2010-06-01 Thread Igor Vaynberg
same way wicket does, run it through webrequestcodingstrategy and you
will get back an bookmarkablepagerequesttarget, use methods on that to
get the page class.

-igor

On Tue, Jun 1, 2010 at 12:45 AM, Stefan Lindner lind...@visionet.de wrote:
 I have some pages mounted  with



                moutBookmarkablePage(/somePath, MyPage.class)



 in Application.init. Now I have the path /somePath from webRequest.
 How can I retriev the matching MyPage.class for the path /somePath?



 Stefan



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



Re: populateItem() not invoked on my custom list

2010-06-01 Thread Sven Meier
You're not passing the entries to the super implementation - how should 
the PropertListView know what objects to iterate over?


public Entries(String id, ListMyEntry entries) {

   super(id, entries);
}

protected  void  populateItem(ListItemMyEntry  item)  {
  MyEntry entry =  item.getModelObject();

  item.add(new  Label(key, entry.id));
  item.add(new  ServiceTreeValuesList(serviceTreeList, entry.services));
}

Sven



On 06/01/2010 03:41 PM, Romain Pelisse wrote:

Hi,

I got a rather dumb issue. As I've been using Wicket only for 2 weeks,
I'm pretty sure that my issue is just a misuse more than a bug.
I implemented a Custom list by inheriting PropertyViewList. This
custom list is then placed into a Panel, which it is itself added to
the Page.

// The panel constructor
public MapResultsPanel(String id, MapString,
ListServiceTreeValue  results) {
super(id);
 // Construct the list of Entry
 ListMyEntry  myEntries = new ArrayListMyEntry();
 for (EntryString, ListServiceTreeValue  servicesEntry :
results.entrySet()) {
  myEntries.add(new
MyEntry(servicesEntry.getKey(),servicesEntry.getValue()));

 }
 // Here comes my custom list
 Entries e = new Entries(entryList, myEntries);
 // Adding entries to the panel
 add(e);
 }


class Entries extends PropertyListViewMyEntry  {
 private static final long serialVersionUID = 1L;
 private final ListMyEntry  entries;
 public Entries(String id, ListMyEntry  entries) {
 super(id);
 this.entries = entries;
 }
// This is not invoked at run time ...
 @Override
 protected void populateItem(ListItemMyEntry  item) {
 for (MyEntry entry : entries) {
 item.add(new Label(key, entry.id));
 // ...
 }
 }
 }


However, at run time, nothing is displayed on my page and if I debug
the populateItem() method on my custom list implementation is not
called. Somebody on IRC suspected that my model might be empty but how
comes ?

I posted this code on paste bin also : http://pastebin.com/vEVrmDM4
(in case you want to tweak it)

Thanks for any help you can gave me, because I have exhausted most of
my options here...

--
Romain PELISSE,
The trouble with having an open mind, of course, is that people will
insist on coming along and trying to put things in it -- Terry
Pratchett
http://belaran.eu/

-
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: Process background

2010-06-01 Thread Igor Vaynberg
why does your background code need access to application?

-igor

On Tue, Jun 1, 2010 at 1:59 AM, Ivan Arcos hib...@gmail.com wrote:
 I have the following problem. I want you when you click on a link I
 load a modal window with an image of loading. Meanwhile I want to run
 a background process. I've tried OnAfterRender but my process is
 running before, I tried to thread but I must be doing something wrong
 that always gives me an error There is no style application attached
 to current thread.

 What could I do?

 Thank you very much

 -
 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 clustering wicket-security

2010-06-01 Thread Igor Vaynberg
each webapp has a single http session, however wicket's Session
objects will not be shared.

-igor

On Tue, Jun 1, 2010 at 2:38 AM, David Meulemans
meulemans.da...@gmail.com wrote:
 I want to have multiple wicket applications to be clustered. Because I'm
 using ehcache it is necessary to merge the applications into one .war file
 because ehcache needs to be initiated in the same scope as the other
 applications.Now the session is shared among all applications.
 Is there a way to avoid this?


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



Re: how to get the selected tabbedpanel

2010-06-01 Thread Igor Vaynberg
TabbedPanel#getSelectedTab()

-igor

On Tue, Jun 1, 2010 at 3:11 AM, Antonio Mauriello
antonioecli...@gmail.com wrote:
 Hi All,

 I have the following issue:

 A wicket page where I'm working on has a Form plus an AjaxTabbedPannel.

 The form has only buttons that change the status of some values in the page.

 In each onSubmit() I set the response page to reload the same page but it
 goes the default tab and not to the one selected when I click the button.

 (All the buttons are outside the tabbedPanels, the panels just show
 different details..)


 Is there a way to get from an onSubmit() button method the selectedTab?

 I cannot find a way to call from onSubmit the getSelectedTab() and pass it
 as pageparameter to the wicketPage (to use then the setSelectedTab)


 Regards,

 Antonio


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



Re: Can't use form inside fragment

2010-06-01 Thread Todd Nine
Sorry, forgot that. 1.4.9

On 2 June 2010 03:03, Jeremy Thomerson jer...@wickettraining.com wrote:

 what version of wicket?

 On Tue, Jun 1, 2010 at 3:37 AM, Todd Nine t...@spidertracks.co.nz wrote:

  Hi all,
   I'm new to Wicket, so if I've done something obviously wrong, please
 point
  it out.  I have 2 ways the user could log in to our site.  One if via the
  full page login form, the other is via  quick login in the header.  Since
  I'll need to gather the same form data in multiple places, I've created a
  reusable form object below.
 
  http://pastie.org/private/7v1vnmyb4kefamu8q1tnfw
 
  Now, I'm working on my SessionPanel.  This is the panel at the top
 right
  of my header.  If the user is logged in, it shows a logout link.  If
  they're
  an anonymous user, it shows the login form.  I have this for my panel
 code.
 
  http://www.pastie.org/private/bw5vvzddtrcruemnobjg
 
  And here is my html
 
  http://www.pastie.org/private/o9gzhxeqfcbu8vpohr1uvw
 
  Whenever I try to render the page, I always receive this error.
 
 
  Root cause:
 
  org.apache.wicket.markup.MarkupException: Expected close tag for
  wicket:fragment wicket:id=login
  [markup =
 
 
 file:/Users/toddnine/development/aviator-services/logbook/target/classes/com/spidertracks/aviator/logbook/panel/SessionPanel.html
  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 
  html xmlns=http://www.w3.org/1999/xhtml;
  xmlns:wicket=http://wicket.sourceforge.net/; xml:lang=en lang=en
  body
  wicket:panel
  wicket:fragment wicket:id=login
  form wicket:id=loginForm
  pkeep me logged in:
  input type=checkbox wicket:id=rememberMe/
  /p
  p email: input type=text wicket:id=email/
  password: input type=password wicket:id=password/
  input type=submit value=Login /
  /p
  /form
  /wicket:fragment
 
 
  wicket:fragment wicket:id=logout
  pa href=# wicket:id=logoutlogout/a/p
  /wicket:fragment
  /wicket:panel
  /body
  /html, index = 5, current = 'form wicket:id=loginForm' (line 9,
  column
  3)]
 at
 
 
 org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:474)
 at
 
 org.apache.wicket.Component.renderClosingComponentTag(Component.java:4318)
 at org.apache.wicket.Component.renderComponent(Component.java:2627)
 at
 org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2450)
 at
  org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
 at
 
 
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at
 
 
 org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:675)
 at
 
 
 org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114)
 at org.apache.wicket.Component.renderComponent(Component.java:2619)
 
  My XHtml seems well formed, what am I doing wrong?
 
  Thanks,
  Todd
 



 --
 Jeremy Thomerson
 http://www.wickettraining.com



How to make visible all child of WebMarkupContainer

2010-06-01 Thread Gurpreet.Singh
Hi All,


I  am getting strange problem. Setting WebMarkupContainer.setVisible(true) is 
not making all its child visible via Ajax Link.

My Html code looks like this

div wickit:id=wrapper1imga wicked:id=ajaxlink1Show All/a/div
div wickit:id=wrapper2imga wicked:id=ajaxlink2Show Recent/a/div

I need to show one of those links at a time. But somehow setting 
setVisible(true) is not working , but setVisible(false) works

Thanks in Advance for replying

Preet




Re: How to make visible all child of WebMarkupContainer

2010-06-01 Thread Jeremy Thomerson
On Tue, Jun 1, 2010 at 12:25 PM, gurpreet.si...@wellsfargo.com wrote:

 Hi All,


 I  am getting strange problem. Setting WebMarkupContainer.setVisible(true)
 is not making all its child visible via Ajax Link.

 My Html code looks like this

 div wickit:id=wrapper1imga wicked:id=ajaxlink1Show All/a/div
 div wickit:id=wrapper2imga wicked:id=ajaxlink2Show
 Recent/a/div

 I need to show one of those links at a time. But somehow setting
 setVisible(true) is not working , but setVisible(false) works


Is that really your code?  There are multiple typos that would stop stuff
from working.  Please paste real code.

Anyway, if you have setVisible(false) on any children, then calling
setVisible(true) on the parent will not make the children also visible.
However, if the parent (webmarkupcontainer) were not visible, then obviously
the children would not be visible, even though their individual isVisible()
methods would return true.


-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Show/hide form components best practice

2010-06-01 Thread Jeremy Thomerson
return true from wantOnSelectionChangedNotifications and put your visibility
changing code in onSelectionChanged

http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/CheckGroup.html#wantOnSelectionChangedNotifications()
http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/CheckGroup.html#wantOnSelectionChangedNotifications()

On Tue, Jun 1, 2010 at 5:37 AM, Iain Reddick
iain.redd...@beatsystems.comwrote:

 Say I have a form with a check box that, when checked, shows some other
 field (i.e. it controls the visibility of other form components).

 What is the best approach to handling this?

 From what I understand, you have 3 options:

 1. Add ajax behaviour to the check box (re-render relevant components).
 2. Add javascript from the Java code (e.g. add some kind of show/hide
 behaviour).
 3. Add javascript directly to the HTML.

 What are peoples experiences of the 3 methods, and which is best?

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




-- 
Jeremy Thomerson
http://www.wickettraining.com


RE: How to make visible all child of WebMarkupContainer

2010-06-01 Thread Gurpreet.Singh
Thanks for replying and sorry about typos. Here is the real code

div wicket:id=seeAllWrappera href=# wicket:id=seeAll img 
src=images/al_faqarrow1_gen.gif style=vertical-align:middle border=0/See 
All /a/div
div wicket:id=seeRecentWrappera href=# wicket:id=seeRecentimg 
src=images/al_faqarrow1_gen.gif style=vertical-align:middle border=0/ 
View Most Recent /a/div

seeAll and seeRecent links visibility is set to default , which I assume is 
true.

Initialy seeRecentWrapper visibility is set to false and seeAllWrapper 
visibility is set to true.

On click on seeAll Ajax link I am setting seeRecentWrapper.setVisible(true) and 
seeAllWrapper.setVisble(false)

On click on seeRecent Ajax link I am setting seeRecentWrapper.setVisible(false) 
and seeAllWrapper.setVisble(true)

If setting parent component visibility does not affect its child visibility So 
not sure why links doesn't show up. Any idea?

-Original Message-
From: Jeremy Thomerson [mailto:jer...@wickettraining.com] 
Sent: Tuesday, June 01, 2010 10:36 AM
To: users@wicket.apache.org
Subject: Re: How to make visible all child of WebMarkupContainer

On Tue, Jun 1, 2010 at 12:25 PM, gurpreet.si...@wellsfargo.com wrote:

 Hi All,


 I  am getting strange problem. Setting WebMarkupContainer.setVisible(true)
 is not making all its child visible via Ajax Link.

 My Html code looks like this

 div wickit:id=wrapper1imga wicked:id=ajaxlink1Show All/a/div
 div wickit:id=wrapper2imga wicked:id=ajaxlink2Show
 Recent/a/div

 I need to show one of those links at a time. But somehow setting
 setVisible(true) is not working , but setVisible(false) works


Is that really your code?  There are multiple typos that would stop stuff
from working.  Please paste real code.

Anyway, if you have setVisible(false) on any children, then calling
setVisible(true) on the parent will not make the children also visible.
However, if the parent (webmarkupcontainer) were not visible, then obviously
the children would not be visible, even though their individual isVisible()
methods would return true.


-- 
Jeremy Thomerson
http://www.wickettraining.com

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



Guicey Wicket and JUnit4

2010-06-01 Thread yaniv kessler
Wicket, Guice, Junit4 - putting it all together:

http://headtoscreencollision.blogspot.com/2010/06/writing-unit-tests-for-guicey-wicket.html?x=wicket

Enjoy :-)

Yaniv Kessler


Re: Panel not refreshed from ModalWindow via Ajax Button

2010-06-01 Thread jammyjohn

 Could any one help me in solving this issue

Jamuna.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Panel-not-refreshed-from-ModalWindow-via-Ajax-Button-tp2235354p2238945.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: How to make visible all child of WebMarkupContainer

2010-06-01 Thread Jeremy Thomerson
On Tue, Jun 1, 2010 at 12:45 PM, gurpreet.si...@wellsfargo.com wrote:

 Thanks for replying and sorry about typos. Here is the real code

 div wicket:id=seeAllWrappera href=# wicket:id=seeAll img
 src=images/al_faqarrow1_gen.gif style=vertical-align:middle
 border=0/See All /a/div
div wicket:id=seeRecentWrappera href=# wicket:id=seeRecentimg
 src=images/al_faqarrow1_gen.gif style=vertical-align:middle border=0/
 View Most Recent /a/div

 seeAll and seeRecent links visibility is set to default , which I assume is
 true.

 Initialy seeRecentWrapper visibility is set to false and seeAllWrapper
 visibility is set to true.

 On click on seeAll Ajax link I am setting seeRecentWrapper.setVisible(true)
 and seeAllWrapper.setVisble(false)

 On click on seeRecent Ajax link I am setting
 seeRecentWrapper.setVisible(false) and seeAllWrapper.setVisble(true)

 If setting parent component visibility does not affect its child visibility
 So not sure why links doesn't show up. Any idea?


In both links you will need to add both wrappers to the ajax response.  Are
you doing this?

-- 
Jeremy Thomerson
http://www.wickettraining.com


RE: How to make visible all child of WebMarkupContainer

2010-06-01 Thread Gurpreet.Singh
Yeap I am adding both wrappers to AjaxRequesttarget  like this

  target.addComponent(seeRecentWrapper..setVisible(true));
  target.addComponent(seeAllWrapper..setVisible(false));

From: Jeremy Thomerson [mailto:jer...@wickettraining.com]
Sent: Tuesday, June 01, 2010 10:59 AM
To: Singh, Gurpreet
Cc: users@wicket.apache.org
Subject: Re: How to make visible all child of WebMarkupContainer


On Tue, Jun 1, 2010 at 12:45 PM, 
gurpreet.si...@wellsfargo.commailto:gurpreet.si...@wellsfargo.com wrote:
Thanks for replying and sorry about typos. Here is the real code

div wicket:id=seeAllWrappera href=# wicket:id=seeAll img 
src=images/al_faqarrow1_gen.gif style=vertical-align:middle border=0/See 
All /a/div
   div wicket:id=seeRecentWrappera href=# wicket:id=seeRecentimg 
src=images/al_faqarrow1_gen.gif style=vertical-align:middle border=0/ 
View Most Recent /a/div

seeAll and seeRecent links visibility is set to default , which I assume is 
true.

Initialy seeRecentWrapper visibility is set to false and seeAllWrapper 
visibility is set to true.

On click on seeAll Ajax link I am setting seeRecentWrapper.setVisible(true) and 
seeAllWrapper.setVisble(false)

On click on seeRecent Ajax link I am setting seeRecentWrapper.setVisible(false) 
and seeAllWrapper.setVisble(true)

If setting parent component visibility does not affect its child visibility So 
not sure why links doesn't show up. Any idea?

In both links you will need to add both wrappers to the ajax response.  Are you 
doing this?

--
Jeremy Thomerson
http://www.wickettraining.com


Re: Panel not refreshed from ModalWindow via Ajax Button

2010-06-01 Thread Jeremy Thomerson
instead of all that replacing the entire contact panel, just trying changing
the model object that the panel is pulling the data from.  remove all the
replace stuff.  i think your bug might be somewhere in there, although i
haven't looked in enough detail to find it yet.

On Tue, Jun 1, 2010 at 12:56 PM, jammyjohn jchinnas...@yahoo.com wrote:


  Could any one help me in solving this issue

 Jamuna.
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Panel-not-refreshed-from-ModalWindow-via-Ajax-Button-tp2235354p2238945.html
 Sent from the Wicket - User 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




-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Why does SerializableChecker throw WicketNotSerializableException on guice injected non Serializable class ?

2010-06-01 Thread yaniv kessler
Joseph,

I believe what Martijn meant was that you need to use
GuiceComponentInjectorhttp://wicket.apache.org/docs/1.4/org/apache/wicket/guice/GuiceComponentInjector.html.
This class will handle the serialization stuff in components for you. You
can find more details in these place (and in org.apache.wicket.guice
javadochttp://wicket.apache.org/docs/1.4/org/apache/wicket/guice/package-summary.html
):

Alastair Maw’s blog - Wicket gets
guicyhttp://herebebeasties.com/2007-06-20/wicket-gets-guicy/
Wicket examples - Guicehttp://www.wicket-library.com/wicket-examples/guice/
Atomic Gamer dev blog - Wicket, Guice and
Warp-Persisthttp://www.atomicgamer.com/dev/2009/10/wicket-guice-2-0-warp-persist-2-0/
My 
bloghttp://headtoscreencollision.blogspot.com/2010/06/writing-unit-tests-for-guicey-wicket.html


Yaniv kessler

On Tue, Jun 1, 2010 at 1:47 PM, Joseph Pachod j...@thomas-daily.de wrote:

 Martijn Dashorst wrote:

 You need to use the Wicket injector for guice. That will create a
 serializable proxy for the service. Guice itself doesn't know about
 Wicket, so you can't expect it to magically work.

 Martijn

 sorry, I didn't provide enough context: I'm using wicket-guice (on 1.4.9).
 So injection is dealed with by wicket.

 best regards
 joseph


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




-- 
Tel: +972-77-4100977
Fax: +972-77-4100976
Mobile: +972-54-7755427

http://www.codeark.com
http://blogs.microsoft.co.il/blogs/yanush/
http://headtoscreencollision.blogspot.com


Re: How to make visible all child of WebMarkupContainer

2010-06-01 Thread Jeremy Thomerson
On Tue, Jun 1, 2010 at 1:02 PM, gurpreet.si...@wellsfargo.com wrote:

  Yeap I am adding both wrappers to AjaxRequesttarget  like this



   target.addComponent(seeRecentWrapper..setVisible(true));

   target.addComponent(seeAllWrapper..setVisible(false));


I'm not sure why you have the wrappers at all - they don't seem to add
anything.  Why not just toggle the visibility on the links themselves?  Have
you looked at the ajax debug window to see what's being sent?  Post that
response if you can't figure it out.

-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Can't use form inside fragment

2010-06-01 Thread Todd Nine
Ok, I solved the initial problem.  I didn't specify a container for the
fragment, I missed that in the examples.  I changes my template to contain
this extra div.


div wicket:id=session/div

Then I specify my panels with

if(session.isSignedIn()){
add(new LogoutFragment(session, logout, this));
}else{
add(new LoginFragment(session, login, this));
}

Everything is rendering, but if I try to submit my form, I receive this
error

WicketMessage: Method onFormSubmitted of interface
org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component
[MarkupContainer [Component id = loginForm]] threw an exception

Root cause:

java.lang.IllegalStateException: Attempt to set model object on null model
of component: headerPanel:session:session:loginForm:email
 at
org.apache.wicket.Component.setDefaultModelObject(Component.java:3033)
 at
org.apache.wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:1168)
 at
org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:227)
 at
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:514)
 at
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:493)
 at
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:465)
 at
org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:2081)
 at
org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:2049)
 at org.apache.wicket.markup.html.form.Form.process(Form.java:1004)
 at org.apache.wicket.markup.html.form.Form.process(Form.java:931)
 at
org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:896)

If I have my form in it's own panel it seems to work.  I've changed it's
paret class to to be the following

public class LoginForm extends FormLoginForm

Any ideas?

Thanks,
Todd



On 2 June 2010 05:15, Todd Nine t...@spidertracks.co.nz wrote:

 Sorry, forgot that. 1.4.9


 On 2 June 2010 03:03, Jeremy Thomerson jer...@wickettraining.com wrote:

 what version of wicket?

 On Tue, Jun 1, 2010 at 3:37 AM, Todd Nine t...@spidertracks.co.nz
 wrote:

  Hi all,
   I'm new to Wicket, so if I've done something obviously wrong, please
 point
  it out.  I have 2 ways the user could log in to our site.  One if via
 the
  full page login form, the other is via  quick login in the header.
  Since
  I'll need to gather the same form data in multiple places, I've created
 a
  reusable form object below.
 
  http://pastie.org/private/7v1vnmyb4kefamu8q1tnfw
 
  Now, I'm working on my SessionPanel.  This is the panel at the top
 right
  of my header.  If the user is logged in, it shows a logout link.  If
  they're
  an anonymous user, it shows the login form.  I have this for my panel
 code.
 
  http://www.pastie.org/private/bw5vvzddtrcruemnobjg
 
  And here is my html
 
  http://www.pastie.org/private/o9gzhxeqfcbu8vpohr1uvw
 
  Whenever I try to render the page, I always receive this error.
 
 
  Root cause:
 
  org.apache.wicket.markup.MarkupException: Expected close tag for
  wicket:fragment wicket:id=login
  [markup =
 
 
 file:/Users/toddnine/development/aviator-services/logbook/target/classes/com/spidertracks/aviator/logbook/panel/SessionPanel.html
  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 
  html xmlns=http://www.w3.org/1999/xhtml;
  xmlns:wicket=http://wicket.sourceforge.net/; xml:lang=en lang=en
  body
  wicket:panel
  wicket:fragment wicket:id=login
  form wicket:id=loginForm
  pkeep me logged in:
  input type=checkbox wicket:id=rememberMe/
  /p
  p email: input type=text wicket:id=email/
  password: input type=password wicket:id=password/
  input type=submit value=Login /
  /p
  /form
  /wicket:fragment
 
 
  wicket:fragment wicket:id=logout
  pa href=# wicket:id=logoutlogout/a/p
  /wicket:fragment
  /wicket:panel
  /body
  /html, index = 5, current = 'form wicket:id=loginForm' (line 9,
  column
  3)]
 at
 
 
 org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:474)
 at
 
 org.apache.wicket.Component.renderClosingComponentTag(Component.java:4318)
 at org.apache.wicket.Component.renderComponent(Component.java:2627)
 at
 org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 at org.apache.wicket.Component.render(Component.java:2450)
 at
  org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
 at
 
 
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
 at
 
 
 org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:675)
 at
 
 
 org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114)
 at org.apache.wicket.Component.renderComponent(Component.java:2619)
 
  My XHtml seems well formed, what am I doing wrong?
 
  

Re: Image Upload Using TinyMCE Within Wicket Framework

2010-06-01 Thread danisevsky
Hello, I checkout wicket-stuff core, install and run tinymce-examples, every
examples works fine except image upload. Firebug do not show any javascript
error. Could you please tell me what is wrong. What I get is on the
attachment picture.

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

Re: wicket clustering wicket-security

2010-06-01 Thread david_

If I call getSession().getId() in each webapp (for example at the indexpage)
I get the same sessionId's in all applications.

Another thing is, if two users are logged in in two different applications
and one of the two logs out the other one is also logged out.



2010/6/1 Igor Vaynberg-2 [via Apache Wicket] 
ml-node+2238846-1446394513-232...@n4.nabble.comml-node%2b2238846-1446394513-232...@n4.nabble.com


 each webapp has a single http session, however wicket's Session
 objects will not be shared.

 -igor

 On Tue, Jun 1, 2010 at 2:38 AM, David Meulemans
 [hidden email] http://user/SendEmail.jtp?type=nodenode=2238846i=0
 wrote:
  I want to have multiple wicket applications to be clustered. Because I'm
  using ehcache it is necessary to merge the applications into one .war
 file
  because ehcache needs to be initiated in the same scope as the other
  applications.Now the session is shared among all applications.
  Is there a way to avoid this?
 

 -
 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2238846i=1
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2238846i=2



 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/wicket-clustering-wicket-security-tp2238257p2238846.html
 To start a new topic under Wicket - User, email
 ml-node+1842947-1066186228-232...@n4.nabble.comml-node%2b1842947-1066186228-232...@n4.nabble.com
 To unsubscribe from Wicket - User, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=bWV1bGVtYW5zLmRhdmlkQGdtYWlsLmNvbXwxODQyOTQ3fC0xOTcyOTcxMjQ2.




-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-clustering-wicket-security-tp2238257p2238976.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Please read before using JIRA

2010-06-01 Thread Jeremy Thomerson
If you use our JIRA for tickets, please note the following couple of
reminders:

   - Do not clone an issue that was closed as wont't fix, etc.  Just
   reopen and comment if you have a new use case that should be submitted.
This way we keep all history together in the same issue.
   - Do NOT set the fix version.  The developers will set that when they
   actually fix it.  If you set it, it may not show up on our radar, or may not
   get into the changelog.  You SHOULD set the affects version, but NOT the
   fix version.

-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Can't use form inside fragment

2010-06-01 Thread Igor Vaynberg
headerPanel:session:session:loginForm:email

this textfield? has a null model, so wicket cannot push the submitted value.

-igor

On Tue, Jun 1, 2010 at 11:04 AM, Todd Nine t...@spidertracks.co.nz wrote:
 Ok, I solved the initial problem.  I didn't specify a container for the
 fragment, I missed that in the examples.  I changes my template to contain
 this extra div.


 div wicket:id=session/div

 Then I specify my panels with

 if(session.isSignedIn()){
 add(new LogoutFragment(session, logout, this));
 }else{
 add(new LoginFragment(session, login, this));
 }

 Everything is rendering, but if I try to submit my form, I receive this
 error

 WicketMessage: Method onFormSubmitted of interface
 org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component
 [MarkupContainer [Component id = loginForm]] threw an exception

 Root cause:

 java.lang.IllegalStateException: Attempt to set model object on null model
 of component: headerPanel:session:session:loginForm:email
     at
 org.apache.wicket.Component.setDefaultModelObject(Component.java:3033)
     at
 org.apache.wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:1168)
     at
 org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:227)
     at
 org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:514)
     at
 org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:493)
     at
 org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:465)
     at
 org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:2081)
     at
 org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:2049)
     at org.apache.wicket.markup.html.form.Form.process(Form.java:1004)
     at org.apache.wicket.markup.html.form.Form.process(Form.java:931)
     at
 org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:896)

 If I have my form in it's own panel it seems to work.  I've changed it's
 paret class to to be the following

 public class LoginForm extends FormLoginForm

 Any ideas?

 Thanks,
 Todd



 On 2 June 2010 05:15, Todd Nine t...@spidertracks.co.nz wrote:

 Sorry, forgot that. 1.4.9


 On 2 June 2010 03:03, Jeremy Thomerson jer...@wickettraining.com wrote:

 what version of wicket?

 On Tue, Jun 1, 2010 at 3:37 AM, Todd Nine t...@spidertracks.co.nz
 wrote:

  Hi all,
   I'm new to Wicket, so if I've done something obviously wrong, please
 point
  it out.  I have 2 ways the user could log in to our site.  One if via
 the
  full page login form, the other is via  quick login in the header.
  Since
  I'll need to gather the same form data in multiple places, I've created
 a
  reusable form object below.
 
  http://pastie.org/private/7v1vnmyb4kefamu8q1tnfw
 
  Now, I'm working on my SessionPanel.  This is the panel at the top
 right
  of my header.  If the user is logged in, it shows a logout link.  If
  they're
  an anonymous user, it shows the login form.  I have this for my panel
 code.
 
  http://www.pastie.org/private/bw5vvzddtrcruemnobjg
 
  And here is my html
 
  http://www.pastie.org/private/o9gzhxeqfcbu8vpohr1uvw
 
  Whenever I try to render the page, I always receive this error.
 
 
  Root cause:
 
  org.apache.wicket.markup.MarkupException: Expected close tag for
  wicket:fragment wicket:id=login
  [markup =
 
 
 file:/Users/toddnine/development/aviator-services/logbook/target/classes/com/spidertracks/aviator/logbook/panel/SessionPanel.html
  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 
  html xmlns=http://www.w3.org/1999/xhtml;
  xmlns:wicket=http://wicket.sourceforge.net/; xml:lang=en lang=en
  body
  wicket:panel
  wicket:fragment wicket:id=login
  form wicket:id=loginForm
  pkeep me logged in:
  input type=checkbox wicket:id=rememberMe/
  /p
  p email: input type=text wicket:id=email/
  password: input type=password wicket:id=password/
  input type=submit value=Login /
  /p
  /form
  /wicket:fragment
 
 
  wicket:fragment wicket:id=logout
  pa href=# wicket:id=logoutlogout/a/p
  /wicket:fragment
  /wicket:panel
  /body
  /html, index = 5, current = 'form wicket:id=loginForm' (line 9,
  column
  3)]
     at
 
 
 org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:474)
     at
 
 org.apache.wicket.Component.renderClosingComponentTag(Component.java:4318)
     at org.apache.wicket.Component.renderComponent(Component.java:2627)
     at
 org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
     at org.apache.wicket.Component.render(Component.java:2450)
     at
  org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
     at
 
 
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577)
     at
 
 
 

Re: wicket clustering wicket-security

2010-06-01 Thread Igor Vaynberg
On Tue, Jun 1, 2010 at 11:17 AM, david_ meulemans.da...@gmail.com wrote:

 If I call getSession().getId() in each webapp (for example at the indexpage)
 I get the same sessionId's in all applications.

yep, that returns the id of the underlying http session which would be
the same for both wicket sessions

 Another thing is, if two users are logged in in two different applications
 and one of the two logs out the other one is also logged out.

probably because your log out mechanism invalidates the underlying http session

-igor




 2010/6/1 Igor Vaynberg-2 [via Apache Wicket] 
 ml-node+2238846-1446394513-232...@n4.nabble.comml-node%2b2238846-1446394513-232...@n4.nabble.com


 each webapp has a single http session, however wicket's Session
 objects will not be shared.

 -igor

 On Tue, Jun 1, 2010 at 2:38 AM, David Meulemans
 [hidden email] http://user/SendEmail.jtp?type=nodenode=2238846i=0
 wrote:
  I want to have multiple wicket applications to be clustered. Because I'm
  using ehcache it is necessary to merge the applications into one .war
 file
  because ehcache needs to be initiated in the same scope as the other
  applications.Now the session is shared among all applications.
  Is there a way to avoid this?
 

 -
 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2238846i=1
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2238846i=2



 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/wicket-clustering-wicket-security-tp2238257p2238846.html
 To start a new topic under Wicket - User, email
 ml-node+1842947-1066186228-232...@n4.nabble.comml-node%2b1842947-1066186228-232...@n4.nabble.com
 To unsubscribe from Wicket - User, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=bWV1bGVtYW5zLmRhdmlkQGdtYWlsLmNvbXwxODQyOTQ3fC0xOTcyOTcxMjQ2.




 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wicket-clustering-wicket-security-tp2238257p2238976.html
 Sent from the Wicket - User 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: Why does SerializableChecker throw WicketNotSerializableException on guice injected non Serializable class ?

2010-06-01 Thread Martijn Dashorst
Then we could use a longer trace from the serialization exception...
Plus some code to go with it. The best way would be to create a
minimal setup using a quickstart exhibiting the problem.

Martijn

On Tue, Jun 1, 2010 at 12:47 PM, Joseph Pachod j...@thomas-daily.de wrote:
 Martijn Dashorst wrote:

 You need to use the Wicket injector for guice. That will create a
 serializable proxy for the service. Guice itself doesn't know about
 Wicket, so you can't expect it to magically work.

 Martijn

 sorry, I didn't provide enough context: I'm using wicket-guice (on 1.4.9).
 So injection is dealed with by wicket.

 best regards
 joseph

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





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8

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



Re: Why does SerializableChecker throw WicketNotSerializableException on guice injected non Serializable class ?

2010-06-01 Thread yaniv kessler
I just went to check 1.4.9 change list and I didn't see anything related to
the way IOC works (at least from 1.4.8 which is what I'm using right now),
or did I miss something in this thread or there in the release notes ? :)

On Tue, Jun 1, 2010 at 9:43 PM, Martijn Dashorst martijn.dasho...@gmail.com
 wrote:

 Then we could use a longer trace from the serialization exception...
 Plus some code to go with it. The best way would be to create a
 minimal setup using a quickstart exhibiting the problem.

 Martijn

 On Tue, Jun 1, 2010 at 12:47 PM, Joseph Pachod j...@thomas-daily.de wrote:
  Martijn Dashorst wrote:
 
  You need to use the Wicket injector for guice. That will create a
  serializable proxy for the service. Guice itself doesn't know about
  Wicket, so you can't expect it to magically work.
 
  Martijn
 
  sorry, I didn't provide enough context: I'm using wicket-guice (on
 1.4.9).
  So injection is dealed with by wicket.
 
  best regards
  joseph
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.4 increases type safety for web applications
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8

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




-- 
Tel: +972-77-4100977
Fax: +972-77-4100976
Mobile: +972-54-7755427

http://www.codeark.com
http://blogs.microsoft.co.il/blogs/yanush/
http://headtoscreencollision.blogspot.com


Turning of the labels in the Panel when reused

2010-06-01 Thread jammyjohn

Hi,

I am having a panel with labels and textfields. I am reusing this panel
twice next to each other on the form. 
Is there a way to turn off  the rendering of labels only, while displaying
the panel for the second time in order to avoid repetition of labels on the
form.

Please suggest.
Jamuna
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Turning-of-the-labels-in-the-Panel-when-reused-tp2239027p2239027.html
Sent from the Wicket - User 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 clustering wicket-security

2010-06-01 Thread david_

How can I logoff an individual instance without affecting the other ones?
I use the org.apache.wicket.security.WaspSession.logoff() method which
results in a normal invalidateNow().


2010/6/1 Igor Vaynberg-2 [via Apache Wicket] 
ml-node+2239009-1783456523-232...@n4.nabble.comml-node%2b2239009-1783456523-232...@n4.nabble.com


 On Tue, Jun 1, 2010 at 11:17 AM, david_ [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2239009i=0
 wrote:
 
  If I call getSession().getId() in each webapp (for example at the
 indexpage)
  I get the same sessionId's in all applications.

 yep, that returns the id of the underlying http session which would be
 the same for both wicket sessions

  Another thing is, if two users are logged in in two different
 applications
  and one of the two logs out the other one is also logged out.

 probably because your log out mechanism invalidates the underlying http
 session

 -igor

 
 
 
  2010/6/1 Igor Vaynberg-2 [via Apache Wicket] 
  [hidden email] 
  http://user/SendEmail.jtp?type=nodenode=2239009i=1[hidden
 email] http://user/SendEmail.jtp?type=nodenode=2239009i=2
 
 
  each webapp has a single http session, however wicket's Session
  objects will not be shared.
 
  -igor
 
  On Tue, Jun 1, 2010 at 2:38 AM, David Meulemans
  [hidden email] http://user/SendEmail.jtp?type=nodenode=2238846i=0

  wrote:
   I want to have multiple wicket applications to be clustered. Because
 I'm
   using ehcache it is necessary to merge the applications into one .war
  file
   because ehcache needs to be initiated in the same scope as the other
   applications.Now the session is shared among all applications.
   Is there a way to avoid this?
  
 
  -
  To unsubscribe, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=2238846i=1
  For additional commands, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=2238846i=2
 
 
 
  --
   View message @
 
 http://apache-wicket.1842946.n4.nabble.com/wicket-clustering-wicket-security-tp2238257p2238846.html
  To start a new topic under Wicket - User, email
  [hidden email] 
  http://user/SendEmail.jtp?type=nodenode=2239009i=3[hidden
 email] http://user/SendEmail.jtp?type=nodenode=2239009i=4
  To unsubscribe from Wicket - User, click here
 http://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=bWV1bGVtYW5zLmRhdmlkQGdtYWlsLmNvbXwxODQyOTQ3fC0xOTcyOTcxMjQ2.

 
 
 
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicket-clustering-wicket-security-tp2238257p2238976.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 

 -
 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2239009i=5
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2239009i=6



 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/wicket-clustering-wicket-security-tp2238257p2239009.html
 To start a new topic under Wicket - User, email
 ml-node+1842947-1066186228-232...@n4.nabble.comml-node%2b1842947-1066186228-232...@n4.nabble.com
 To unsubscribe from Wicket - User, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=bWV1bGVtYW5zLmRhdmlkQGdtYWlsLmNvbXwxODQyOTQ3fC0xOTcyOTcxMjQ2.




-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-clustering-wicket-security-tp2238257p2239030.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: Can't use form inside fragment

2010-06-01 Thread Todd Nine
Man, I changed way too much code far too late last night.  I missed
assigning my model as the form in my test fields.


TextFieldString userIdField = new TextFieldString(email, new
PropertyModelString(this, email));


On 2 June 2010 06:33, Igor Vaynberg igor.vaynb...@gmail.com wrote:

 headerPanel:session:session:loginForm:email

 this textfield? has a null model, so wicket cannot push the submitted
 value.

 -igor

 On Tue, Jun 1, 2010 at 11:04 AM, Todd Nine t...@spidertracks.co.nz
 wrote:
  Ok, I solved the initial problem.  I didn't specify a container for the
  fragment, I missed that in the examples.  I changes my template to
 contain
  this extra div.
 
 
  div wicket:id=session/div
 
  Then I specify my panels with
 
  if(session.isSignedIn()){
  add(new LogoutFragment(session, logout, this));
  }else{
  add(new LoginFragment(session, login, this));
  }
 
  Everything is rendering, but if I try to submit my form, I receive this
  error
 
  WicketMessage: Method onFormSubmitted of interface
  org.apache.wicket.markup.html.form.IFormSubmitListener targeted at
 component
  [MarkupContainer [Component id = loginForm]] threw an exception
 
  Root cause:
 
  java.lang.IllegalStateException: Attempt to set model object on null
 model
  of component: headerPanel:session:session:loginForm:email
  at
  org.apache.wicket.Component.setDefaultModelObject(Component.java:3033)
  at
 
 org.apache.wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:1168)
  at
 
 org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:227)
  at
 
 org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:514)
  at
 
 org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:493)
  at
 
 org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:465)
  at
 
 org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:2081)
  at
 
 org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:2049)
  at org.apache.wicket.markup.html.form.Form.process(Form.java:1004)
  at org.apache.wicket.markup.html.form.Form.process(Form.java:931)
  at
  org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:896)
 
  If I have my form in it's own panel it seems to work.  I've changed it's
  paret class to to be the following
 
  public class LoginForm extends FormLoginForm
 
  Any ideas?
 
  Thanks,
  Todd
 
 
 
  On 2 June 2010 05:15, Todd Nine t...@spidertracks.co.nz wrote:
 
  Sorry, forgot that. 1.4.9
 
 
  On 2 June 2010 03:03, Jeremy Thomerson jer...@wickettraining.com
 wrote:
 
  what version of wicket?
 
  On Tue, Jun 1, 2010 at 3:37 AM, Todd Nine t...@spidertracks.co.nz
  wrote:
 
   Hi all,
I'm new to Wicket, so if I've done something obviously wrong, please
  point
   it out.  I have 2 ways the user could log in to our site.  One if via
  the
   full page login form, the other is via  quick login in the header.
   Since
   I'll need to gather the same form data in multiple places, I've
 created
  a
   reusable form object below.
  
   http://pastie.org/private/7v1vnmyb4kefamu8q1tnfw
  
   Now, I'm working on my SessionPanel.  This is the panel at the top
  right
   of my header.  If the user is logged in, it shows a logout link.  If
   they're
   an anonymous user, it shows the login form.  I have this for my panel
  code.
  
   http://www.pastie.org/private/bw5vvzddtrcruemnobjg
  
   And here is my html
  
   http://www.pastie.org/private/o9gzhxeqfcbu8vpohr1uvw
  
   Whenever I try to render the page, I always receive this error.
  
  
   Root cause:
  
   org.apache.wicket.markup.MarkupException: Expected close tag for
   wicket:fragment wicket:id=login
   [markup =
  
  
 
 file:/Users/toddnine/development/aviator-services/logbook/target/classes/com/spidertracks/aviator/logbook/panel/SessionPanel.html
   !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  
   html xmlns=http://www.w3.org/1999/xhtml;
   xmlns:wicket=http://wicket.sourceforge.net/; xml:lang=en
 lang=en
   body
   wicket:panel
   wicket:fragment wicket:id=login
   form wicket:id=loginForm
   pkeep me logged in:
   input type=checkbox wicket:id=rememberMe/
   /p
   p email: input type=text wicket:id=email/
   password: input type=password wicket:id=password/
   input type=submit value=Login /
   /p
   /form
   /wicket:fragment
  
  
   wicket:fragment wicket:id=logout
   pa href=# wicket:id=logoutlogout/a/p
   /wicket:fragment
   /wicket:panel
   /body
   /html, index = 5, current = 'form wicket:id=loginForm' (line 9,
   column
   3)]
  at
  
  
 
 org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:474)
  at
  
 
 org.apache.wicket.Component.renderClosingComponentTag(Component.java:4318)
  at
 

Re: Turning of the labels in the Panel when reused

2010-06-01 Thread Igor Vaynberg
make that a feature of your panel

-igor

On Tue, Jun 1, 2010 at 11:55 AM, jammyjohn jchinnas...@yahoo.com wrote:

 Hi,

 I am having a panel with labels and textfields. I am reusing this panel
 twice next to each other on the form.
 Is there a way to turn off  the rendering of labels only, while displaying
 the panel for the second time in order to avoid repetition of labels on the
 form.

 Please suggest.
 Jamuna
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Turning-of-the-labels-in-the-Panel-when-reused-tp2239027p2239027.html
 Sent from the Wicket - User 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 clustering wicket-security

2010-06-01 Thread Igor Vaynberg
not sure how to do it with wicket-security, but a way to do it
generically is to simply set the userid field you keep in your session
to null instead of invalidating the entire session

-igor

On Tue, Jun 1, 2010 at 11:56 AM, david_ meulemans.da...@gmail.com wrote:

 How can I logoff an individual instance without affecting the other ones?
 I use the org.apache.wicket.security.WaspSession.logoff() method which
 results in a normal invalidateNow().


 2010/6/1 Igor Vaynberg-2 [via Apache Wicket] 
 ml-node+2239009-1783456523-232...@n4.nabble.comml-node%2b2239009-1783456523-232...@n4.nabble.com


 On Tue, Jun 1, 2010 at 11:17 AM, david_ [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2239009i=0
 wrote:
 
  If I call getSession().getId() in each webapp (for example at the
 indexpage)
  I get the same sessionId's in all applications.

 yep, that returns the id of the underlying http session which would be
 the same for both wicket sessions

  Another thing is, if two users are logged in in two different
 applications
  and one of the two logs out the other one is also logged out.

 probably because your log out mechanism invalidates the underlying http
 session

 -igor

 
 
 
  2010/6/1 Igor Vaynberg-2 [via Apache Wicket] 
  [hidden email] 
  http://user/SendEmail.jtp?type=nodenode=2239009i=1[hidden
 email] http://user/SendEmail.jtp?type=nodenode=2239009i=2
 
 
  each webapp has a single http session, however wicket's Session
  objects will not be shared.
 
  -igor
 
  On Tue, Jun 1, 2010 at 2:38 AM, David Meulemans
  [hidden email] http://user/SendEmail.jtp?type=nodenode=2238846i=0

  wrote:
   I want to have multiple wicket applications to be clustered. Because
 I'm
   using ehcache it is necessary to merge the applications into one .war
  file
   because ehcache needs to be initiated in the same scope as the other
   applications.Now the session is shared among all applications.
   Is there a way to avoid this?
  
 
  -
  To unsubscribe, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=2238846i=1
  For additional commands, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=2238846i=2
 
 
 
  --
   View message @
 
 http://apache-wicket.1842946.n4.nabble.com/wicket-clustering-wicket-security-tp2238257p2238846.html
  To start a new topic under Wicket - User, email
  [hidden email] 
  http://user/SendEmail.jtp?type=nodenode=2239009i=3[hidden
 email] http://user/SendEmail.jtp?type=nodenode=2239009i=4
  To unsubscribe from Wicket - User, click here
 http://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=bWV1bGVtYW5zLmRhdmlkQGdtYWlsLmNvbXwxODQyOTQ3fC0xOTcyOTcxMjQ2.

 
 
 
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicket-clustering-wicket-security-tp2238257p2238976.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 

 -
 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2239009i=5
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2239009i=6



 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/wicket-clustering-wicket-security-tp2238257p2239009.html
 To start a new topic under Wicket - User, email
 ml-node+1842947-1066186228-232...@n4.nabble.comml-node%2b1842947-1066186228-232...@n4.nabble.com
 To unsubscribe from Wicket - User, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=bWV1bGVtYW5zLmRhdmlkQGdtYWlsLmNvbXwxODQyOTQ3fC0xOTcyOTcxMjQ2.




 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wicket-clustering-wicket-security-tp2238257p2239030.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



Wicket acl and spring security

2010-06-01 Thread Todd Nine
Hi all,
  I have wicket acl and spring security working well together.  However,
there's one glitch I haven't solved.  With springs http interception, I can
create a remember-me cookie that allows the user to automatically log in.
 Is it possible to use the ACL to create this functionality?


Thanks,
Todd


Re: OnChangeAjaxBehavior and other form components

2010-06-01 Thread Steven Haines
Hi Everyone,

I have a followup question to this thread from last month... The following Ajax 
call decorator that I added to my zipcode field (stopping the ajax call until 
the user enters 5 digits) works in Firefox, but not in Chrome or Safari 
(webkit):

@Override
protected IAjaxCallDecorator getAjaxCallDecorator()
{
return new AjaxCallDecorator()
{
private static final long serialVersionUID = 1L;

@Override
public CharSequence decorateScript( CharSequence script )
{
// Only return the script (which means that it will be 
executed) after the
// user enters the 5th digit (or more)
return if(this.value.length = 5){ + script + };
}
};
}

This resolves to the following JS:

 input wicket:id=address.zipcode id=zip_code class=check_address validate 
addressChecker type=text value= name=gettingStartedPanel:address.zipcode 
onchange=if(this.value.length gt;= 5){var 
wcall=wicketSubmitFormById('step_form', 
'?wicket:interface=:1:quoteForm:gettingStartedPanel:address.zipcode::IActivePageBehaviorListener:0:amp;wicket:ignoreIfNotActive=true',
 null,function() { }.bind(this),function() { }.bind(this), function() {return 
Wicket.$$(this)amp;amp;Wicket.$$('step_form')}.bind(this));};/script 
type=text/javascript!--/*--![CDATA[/*!--*/
new Wicket.ChangeHandler('zip_code');
/*--]]*//script

The problem seems to be that the browser loses sight of what this is and 
reports: Uncaught TypeError: Cannot read property 'length' of undefined.

The web developer that I'm working with suggested the following change to the 
Ajax decorator:

return var zipcode = 
document.getElementById('zip_code'); if(zipcode.value.length = 5 ){ + script 
+ };


And it worked correctly because it removed the ambiguity of the value of 
this. He was suggesting that something that Wicket's JavaScript is doing is 
changing the value of this.  I have a working solution, but wondering if you 
have any thoughts as to why this is happening?

Thanks
Steve



- Original Message 
From: Steven Haines lyg...@yahoo.com
To: users@wicket.apache.org
Sent: Wed, April 21, 2010 2:43:41 PM
Subject: Re: OnChangeAjaxBehavior and other form components

I finally got everything working... Here is what I did for anyone that comes 
across this problem..

I added an onComponentRendered() method to my AjaxFormSubmitBehavior in that 
method I added the new Wicket.ChangeHandler (I saw the code in the 
OnChangeAjaxBehavior class):

@Override
protected final void onComponentRendered()
{
Response response = getComponent().getResponse();

final String id = getComponent().getMarkupId();

response.write( JavascriptUtils.SCRIPT_OPEN_TAG );
response.write( new Wicket.ChangeHandler(' + id + '); );
response.write( JavascriptUtils.SCRIPT_CLOSE_TAG );
}

So here is my final zipcode field:

zipcodeField.add( new AjaxFormSubmitBehavior( form, onchange )
{
private static final long serialVersionUID = 1L;

@Override
protected void onSubmit( AjaxRequestTarget target )
{
 // Access your objects through the form bound in your 
CompoundPropertyModel
 myModel.getZipcode();
 myModel.getStreet1();
}

@Override
protected void onError( AjaxRequestTarget art )
{
// Called for things like validation errors ...
}

@Override
protected IAjaxCallDecorator getAjaxCallDecorator()
{
return new AjaxCallDecorator()
{
private static final long serialVersionUID = 1L;

@Override
public CharSequence decorateScript( CharSequence script )
{
// Only return the script (which means that it will be 
executed) after the
// user enters the 5th digit (or more)
return if(this.value.length = 5){ + script + };
}
};
}

  @Override
protected final void onComponentRendered()
{
// Creates a new Wicket.ChangeHandler for immediate 
notifications of
// change events
Response response = getComponent().getResponse();
final String id = getComponent().getMarkupId();
response.write( JavascriptUtils.SCRIPT_OPEN_TAG );
response.write( new Wicket.ChangeHandler(' + id + '); );
response.write( JavascriptUtils.SCRIPT_CLOSE_TAG );
 

Re: wicket clustering wicket-security

2010-06-01 Thread david_

The WaspSession is responsible for authorization of secured pages and
components.
For some reason if a user logs in on webapp-A and another user tries to
access a bookmarkable url in webapp-B he is granted access.

2010/6/1 Igor Vaynberg-2 [via Apache Wicket] 
ml-node+2239092-140489179-232...@n4.nabble.comml-node%2b2239092-140489179-232...@n4.nabble.com


 not sure how to do it with wicket-security, but a way to do it
 generically is to simply set the userid field you keep in your session
 to null instead of invalidating the entire session

 -igor

 On Tue, Jun 1, 2010 at 11:56 AM, david_ [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2239092i=0
 wrote:

 
  How can I logoff an individual instance without affecting the other ones?

  I use the org.apache.wicket.security.WaspSession.logoff() method which
  results in a normal invalidateNow().
 
 
  2010/6/1 Igor Vaynberg-2 [via Apache Wicket] 
  [hidden email] 
  http://user/SendEmail.jtp?type=nodenode=2239092i=1[hidden
 email] http://user/SendEmail.jtp?type=nodenode=2239092i=2
 
 
  On Tue, Jun 1, 2010 at 11:17 AM, david_ [hidden email]
 http://user/SendEmail.jtp?type=nodenode=2239009i=0
  wrote:
  
   If I call getSession().getId() in each webapp (for example at the
  indexpage)
   I get the same sessionId's in all applications.
 
  yep, that returns the id of the underlying http session which would be
  the same for both wicket sessions
 
   Another thing is, if two users are logged in in two different
  applications
   and one of the two logs out the other one is also logged out.
 
  probably because your log out mechanism invalidates the underlying http
  session
 
  -igor
 
  
  
  
   2010/6/1 Igor Vaynberg-2 [via Apache Wicket] 
   [hidden email] 
   http://user/SendEmail.jtp?type=nodenode=2239009i=1[hidden

  email] http://user/SendEmail.jtp?type=nodenode=2239009i=2
  
  
   each webapp has a single http session, however wicket's Session
   objects will not be shared.
  
   -igor
  
   On Tue, Jun 1, 2010 at 2:38 AM, David Meulemans
   [hidden email] 
 http://user/SendEmail.jtp?type=nodenode=2238846i=0
 
   wrote:
I want to have multiple wicket applications to be clustered.
 Because
  I'm
using ehcache it is necessary to merge the applications into one
 .war
   file
because ehcache needs to be initiated in the same scope as the
 other
applications.Now the session is shared among all applications.
Is there a way to avoid this?
   
  
   -

   To unsubscribe, e-mail: [hidden email]
  http://user/SendEmail.jtp?type=nodenode=2238846i=1
   For additional commands, e-mail: [hidden email]
  http://user/SendEmail.jtp?type=nodenode=2238846i=2
  
  
  
   --
View message @
  
 
 http://apache-wicket.1842946.n4.nabble.com/wicket-clustering-wicket-security-tp2238257p2238846.html
   To start a new topic under Wicket - User, email
   [hidden email] 
   http://user/SendEmail.jtp?type=nodenode=2239009i=3[hidden

  email] http://user/SendEmail.jtp?type=nodenode=2239009i=4
   To unsubscribe from Wicket - User, click here
 
 http://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=bWV1bGVtYW5zLmRhdmlkQGdtYWlsLmNvbXwxODQyOTQ3fC0xOTcyOTcxMjQ2.

 
  
  
  
  
   --
   View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/wicket-clustering-wicket-security-tp2238257p2238976.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
 
  -
  To unsubscribe, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=2239009i=5
  For additional commands, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=2239009i=6
 
 
 
  --
   View message @
 
 http://apache-wicket.1842946.n4.nabble.com/wicket-clustering-wicket-security-tp2238257p2239009.html
  To start a new topic under Wicket - User, email
  [hidden email] 
  http://user/SendEmail.jtp?type=nodenode=2239092i=3[hidden
 email] http://user/SendEmail.jtp?type=nodenode=2239092i=4
  To unsubscribe from Wicket - User, click here
 http://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=bWV1bGVtYW5zLmRhdmlkQGdtYWlsLmNvbXwxODQyOTQ3fC0xOTcyOTcxMjQ2.

 
 
 
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicket-clustering-wicket-security-tp2238257p2239030.html

  Sent from the Wicket - User mailing list archive at Nabble.com.
 

 -
 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2239092i=5
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2239092i=6



 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/wicket-clustering-wicket-security-tp2238257p2239092.html
 To start a new topic under Wicket - User, 

Re: Panel not refreshed from ModalWindow via Ajax Button

2010-06-01 Thread jammyjohn

Thanks for your reply. I first went in the direction of changing the model
object which did not work. Then I started using replacewith  which is still
a issue. 

Jamuna.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Panel-not-refreshed-from-ModalWindow-via-Ajax-Button-tp2235354p2239200.html
Sent from the Wicket - User 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: Panel not refreshed from ModalWindow via Ajax Button

2010-06-01 Thread Jeremy Thomerson
On Tue, Jun 1, 2010 at 3:57 PM, jammyjohn jchinnas...@yahoo.com wrote:


 Thanks for your reply. I first went in the direction of changing the model
 object which did not work. Then I started using replacewith  which is still
 a issue.

 Jamuna.
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Panel-not-refreshed-from-ModalWindow-via-Ajax-Button-tp2235354p2239200.html
 Sent from the Wicket - User 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


Next option is to create a quickstart that demonstrates this issue.  You
will either find your problem or else have something that will be easier for
us to try it out with.

-- 
Jeremy Thomerson
http://www.wickettraining.com


OT: Job Posting - Contractor in the Bay Area

2010-06-01 Thread Nick Heudecker
 A profitable start-up in the cable advertising space is looking to expand
its development team to include another well-rounded developer.  The
position is contract to start and may become full-time.  I've detailed some
of what we're looking for below and if you think you're a good fit, you're
welcome to send over your resume.

Personal Requirements:

   - Must be a US citizen.
   - Reside in the Bay Area and able to commute to the office at least 4
   days a week.
   - Accustomed to working with a small, distributed team and collaborating
   over email, Skype and IM.  Obviously, you need to be able to produce with
   little supervision.
   - Innovative thinker and a fast coder.  We're constantly working to set
   the tempo in our product space.  You'll need to help develop solutions to
   problems and implement them quickly.
   - Outstanding communication skills, both verbal and written.

Experience and Technical Requirements:

   - Ideally you've worked on several different types of products with
   varying teams.  Our product space is highly dynamic and a diverse experience
   base will help you succeed.
   - Must be a Java expert with at least 5 years of experience.  Experience
   with some or all of the following is required: Hibernate, Spring, web
   frameworks (GWT, Wicket), and XML technologies (SOAP, SOA, XSD, WSDL, etc).
   Experience with relational databases such as MySQL or PostgreSQL and a firm
   grasp of SQL.
   - Additionally, you must be familiar with development tools such as
   Maven, IDEA/Eclipse, unit testing, Subversion, among others.
   - Experience with non-relational data stores, caching and producing
   highly available applications is also desirable.


Re: Why does SerializableChecker throw WicketNotS erializableException on guice injected non Seria lizable class ?

2010-06-01 Thread Joseph Pachod
I just went to check 1.4.9 change list and I didn't see anything related to
  the way IOC works (at least from 1.4.8 which is what I'm using right now),
  or did I miss something in this thread or there in the release notes ? :)I 
don't think it has changed: I tested again 1.4.3, 1.4.7 and 1.4.9, with 
everytime the same result.

And sorry for badly expressing myself, but I'm using GuiceComponentInjector, 
instanciation listener and the like. Anyway, I'll do a demo project tomorrow 
morning so you could easily check that. Maybe I'm wrong (wouldn't be the first 
time arg ;) ).
On Tue, Jun 1, 2010 at 9:43 PM, Martijn Dashorst martijn.dasho...@gmail.com
   wrote:
  
   Then we could use a longer trace from the serialization exception...
   Plus some code to go with it. The best way would be to create a
   minimal setup using a quickstart exhibiting the problem.
  
   Martijnsure I'll. In fact I had to deal with a similar problem outside of 
wicket recently and I just had to make the proxy implements serializable and 
write down specific stuff there. I thought the matter would be quite the same 
here. anyway, it seems more complex: I'll provide the demo tomorrow morning 
(time to sleep now).

thanks again all for your help

best
joseph

New Behaviours

2010-06-01 Thread Rodolfo Hansen
We've published a couple of new simple behaviors under the Apache License:

You can find the info at:
http://code.google.com/p/koodaripalvelut-wicket/

And a demo for the behaviors at:
http://tustor-webtest.appspot.com/

At the moment there are two behaviors:

   - A SearchBox for DropDownChoice:
  which appends a simple search box to filter elements from a given
   DropDownChoice
   - A ChangeNotifier:
  which allows for the presentation of a warning dialog before already
   written form data is lost (in as much as allowed by the browser)

Feel free to checkout, comment, file bugs, and add features at the Google
code site. :)


Regards,

-- 
Rodolfo Hansen
CTO, KindleIT Software Development
Email: rhan...@kitsd.com
Mobile: +1 (809) 860-6669


Re: Re: Re: RE: Rich Text Editors and Wicket

2010-06-01 Thread wicketyan
thanks eichinger,Is this integration contains image uploading?


2010-06-02 



wicketyan 



发件人: ralf.eichinger 
发送时间: 2010-06-01  15:40:27 
收件人: users 
抄送: 
主题: Re: Re: RE: Rich Text Editors and Wicket 
 
have a look at the powerful xinha editor (http://www.xinha.org/).
A Wicket integration can be found here:
http://svn.hippocms.org/repos/hippo/hippo-ecm/trunk/addon/
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org