SV: How to Store Wicket to XML File?

2010-03-08 Thread Wilhelmsen Tor Iver
  Any one Have idea about how to Store wicket fields(TextField) to
 XML
 File?

Why would you want to do that? Usually you only store the model value, storing 
the field itself is only relevant for the page serializing.

- Tor Iver

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



Re: UI Layout

2010-03-08 Thread Juha Palomäki
Here's what we have been using for CRUD stuff:

Domain:
Customer
- name : String
- industry : String
- primaryContact : Contact

Contact
- name : String
- Address : String
- Email: String

Pages:
CustomerBasePage (abstact)
CustomerAddPage
CustomerEditPage
CustomerViewPage

Panels:
CustomerBasePanel
CustomerEditPanel
CustomerViewPanel

ContactBasePanel
ContactEditPanel
ContactViewPanel

Most of the service layer -references are on the page-level. For
example pages take care of retrieving customer from DB and persisting
changes. The panels just receive IModelCustomer.

There are separate pages for add and edit, because those operations
need to be handled differently. On the other hand the same edit
-panels are used for both add and edit.

One page can then host multiple panels. For example the
CustomerViewPage could also host OrderViewPanel.

The base -level does not contain that much functionality in many
cases, but we have localization stuff there. For example the
CustomerEditPanel and CustomerAddPanel share most of field labels, so
there are stored in CustomerBasePanel.xml

This leads to quite many classes, but on the other hand the classes
are simple and straightforward in most cases. I find it more easier to
deal with many simple classes than with few complex. To manage all the
classes, I prefer to use package structure like this:

org.example.app.customer.web.page
org.example.app.customer.web.panel
org.example.app.customer.web.support (custom models and other
support stuff goes here)
org.example.app.order.web.page
org.example.app.order.web.panel
org.example.app.order.web.support

However I must say that I'm not completely satisfied with this
approach. For example with the pages we can't simply create a nice
ajax tabpanel that would contain CustomerViewPage, OrdersViewPage and
ContactsViewPage.


br, Juha


On Fri, Mar 5, 2010 at 1:41 PM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
 +1 for multiple page + abstract base page..

 2010/2/26 Frank Silbermann frank.silberm...@fedex.com

 Single page versus multi-page application?



 Some people build a single-page application in which panels are replaced
 dynamically.  With this approach, the single page is analogous to a
 Swing JFrame, to whom components are added and removed (or made visible
 or invisible as needed).



 Many people prefer to have separate pages for different functionality --
 and this is necessary if the user is to be able to bookmark several
 different pages.  To do this, many people use markup inheritance, in
 which sub-pages inherit from the base page, and the sub-page mark-up is
 combined with the base-page mark-up.  (Though it is to be generalized in
 the future, I believe currently there can be only a single place in the
 base page where the sub-page's components can go.)





 I prefer to use a base page which contains one or more panels to be
 defined by the sub-pages, via abstract panel-creation methods called by
 the base page.  However, Wicket convention is to add components in the
 page constructor, and calling an overridden method from a constructor is
 bad.  (The overridden method will not be able to use anything set up in
 the sub-page's constructor, due to the order in which constructors are
 called.)  I solve this problem by making my base pages inherit from the
 following:



 public class DelayedAssemblyWebPage extends WebPage {

    protected boolean componentsAssembled = false;



   �...@override

    protected void onBeforeRender() {

        if ( !componentsAssembled ) {

            try {

                assembleComponents();

                componentsAssembled = true;

            } catch (Exception e) {

                throw new RuntimeException(e);

            }

        }

        super.onBeforeRender();

    }



    abstract protected void assembleComponents() throws Exception {}

 }



 So my application base page would look something like this:



 public class MyApplicationBasePage extends DelayedAssemblyWebPage {


    protected void assembleComponents() throws Exception {

        // Add some components.

        // Panels to be defined in subclasses are added

        // by calling:

        //

        //     add( createPanel_A(a_wicket_id) );

        //

        // and

        //

        //     add( createPanel_B(some_other_wicket_id) );

    }



    abstract protected Panel createPanel_A( String panelWicketID );

    abstract protected Panel createPanel_B( String panelWicketID );

 }



 Concrete child pages would look something like this:



 public class OneConcreteChildPage extends MyApplicationBasePage {



    protected Panel createPanel_A( String panelWicketID ) {

             return new WhateverPanel(panelWicketID,...);

    }

    protected Panel createPanel_B( String panelWicketID ) {

             return new SomeOtherPanelType(panelWicketID, ...);

    }

 }



 This can be generalized in that the application base page can have
 however many component-defining 

how to Store wicket directly to XML File

2010-03-08 Thread sravan g
Hi All,
 Any one Have idea about how to Store wicket fields(TextField) to XML
File?

Thanks,
Saravanakumar G.


Re: how to Store wicket directly to XML File

2010-03-08 Thread Jeremy Thomerson
This is your third post with the exact same question.  One thread already
has a response.  Please provide more information on that thread and do not
open another thread.

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



On Mon, Mar 8, 2010 at 2:53 AM, sravan g sravangs...@gmail.com wrote:

 Hi All,
 Any one Have idea about how to Store wicket fields(TextField) to XML
 File?

 Thanks,
 Saravanakumar G.



Re: Problem with onComponentTag in a ListView

2010-03-08 Thread TBerger

Thanks for your reply. I've taken a closer look to those components but I
didn't find a solution.
I've tried to implement onComponentTag in SelectOptions but it didn't work
too.

Maybe you could give me a more detailed hint on what you are pointing to?

Best regards
Torben


igor.vaynberg wrote:
 
 see Select and SelectOption and SelectOptions components
 
 -igor
 
 On Fri, Mar 5, 2010 at 6:30 AM, Torben Berger torbenber...@gmx.de wrote:
 Hi,
 I'm trying to write a dynamic Select with optgroups.

 Therefore I've got a ListView where I want to set the label of the
 optgroup with the onComponentTag method.
 Everything is working except of setting this label.  The onComponentTag
 method is never called.

 Maybe someone can give me a hint how to resolve this problem. What am I
 doing wrong?

 This is my Select:

 private Select = new Select(select, new PropertyModelT(this,
 selectedOption));

 ListViewCollectionT optGroups = new
 ListViewCollectionT(optGroups, groups) {

           �...@override
            protected void populateItem(ListItemCollectionT item) {
                item.add(new SelectOptionsT(options, new
 ArrayListT(item.getModelObject()), renderer));
            }

           �...@override
            protected void onComponentTag(final ComponentTag tag) {
                super.onComponentTag(tag);
                tag.put(label, Foo);
            }
        };
        select.add(optGroups);

        add(select);

 And the markup:

 select wicket:id=select
  optgroup wicket:id=optGroups
    wicket:container wicket:id=options
      option wicket:id=option/option
    /wicket:container
  /optgroup
 /select


 Best regards,
 Torben


 --
 GMX DSL: Internet, Telefon und Entertainment für nur 19,99 EUR/mtl.!
 http://portal.gmx.net/de/go/dsl02

 -
 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
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Problem-with-onComponentTag-in-a-ListView-tp27794610p27818782.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: UI Layout

2010-03-08 Thread Juha Palomäki
One thing in the page vs panels discussion is also inheritance vs
composition. So do you construct the layout of the UI by inhering it
or do you take the mashup style -approach.

I've started thinking that it might be better to use panels for
functionality (for example CustomerEdit, CustomerAdd) and then use
some kind of page structure around those to control the navigation.
Something where you could have for example two completely different
navigation systems on the application at the same time.

br, Juha

On Mon, Mar 8, 2010 at 10:44 AM, Juha Palomäki juha.palom...@gmail.com wrote:
 Here's what we have been using for CRUD stuff:

 Domain:
 Customer
 - name : String
 - industry : String
 - primaryContact : Contact

 Contact
 - name : String
 - Address : String
 - Email: String

 Pages:
 CustomerBasePage (abstact)
 CustomerAddPage
 CustomerEditPage
 CustomerViewPage

 Panels:
 CustomerBasePanel
 CustomerEditPanel
 CustomerViewPanel

 ContactBasePanel
 ContactEditPanel
 ContactViewPanel

 Most of the service layer -references are on the page-level. For
 example pages take care of retrieving customer from DB and persisting
 changes. The panels just receive IModelCustomer.

 There are separate pages for add and edit, because those operations
 need to be handled differently. On the other hand the same edit
 -panels are used for both add and edit.

 One page can then host multiple panels. For example the
 CustomerViewPage could also host OrderViewPanel.

 The base -level does not contain that much functionality in many
 cases, but we have localization stuff there. For example the
 CustomerEditPanel and CustomerAddPanel share most of field labels, so
 there are stored in CustomerBasePanel.xml

 This leads to quite many classes, but on the other hand the classes
 are simple and straightforward in most cases. I find it more easier to
 deal with many simple classes than with few complex. To manage all the
 classes, I prefer to use package structure like this:

 org.example.app.customer.web.page
 org.example.app.customer.web.panel
 org.example.app.customer.web.support (custom models and other
 support stuff goes here)
 org.example.app.order.web.page
 org.example.app.order.web.panel
 org.example.app.order.web.support

 However I must say that I'm not completely satisfied with this
 approach. For example with the pages we can't simply create a nice
 ajax tabpanel that would contain CustomerViewPage, OrdersViewPage and
 ContactsViewPage.


 br, Juha


 On Fri, Mar 5, 2010 at 1:41 PM, nino martinez wael
 nino.martinez.w...@gmail.com wrote:
 +1 for multiple page + abstract base page..

 2010/2/26 Frank Silbermann frank.silberm...@fedex.com

 Single page versus multi-page application?



 Some people build a single-page application in which panels are replaced
 dynamically.  With this approach, the single page is analogous to a
 Swing JFrame, to whom components are added and removed (or made visible
 or invisible as needed).



 Many people prefer to have separate pages for different functionality --
 and this is necessary if the user is to be able to bookmark several
 different pages.  To do this, many people use markup inheritance, in
 which sub-pages inherit from the base page, and the sub-page mark-up is
 combined with the base-page mark-up.  (Though it is to be generalized in
 the future, I believe currently there can be only a single place in the
 base page where the sub-page's components can go.)





 I prefer to use a base page which contains one or more panels to be
 defined by the sub-pages, via abstract panel-creation methods called by
 the base page.  However, Wicket convention is to add components in the
 page constructor, and calling an overridden method from a constructor is
 bad.  (The overridden method will not be able to use anything set up in
 the sub-page's constructor, due to the order in which constructors are
 called.)  I solve this problem by making my base pages inherit from the
 following:



 public class DelayedAssemblyWebPage extends WebPage {

    protected boolean componentsAssembled = false;



   �...@override

    protected void onBeforeRender() {

        if ( !componentsAssembled ) {

            try {

                assembleComponents();

                componentsAssembled = true;

            } catch (Exception e) {

                throw new RuntimeException(e);

            }

        }

        super.onBeforeRender();

    }



    abstract protected void assembleComponents() throws Exception {}

 }



 So my application base page would look something like this:



 public class MyApplicationBasePage extends DelayedAssemblyWebPage {


    protected void assembleComponents() throws Exception {

        // Add some components.

        // Panels to be defined in subclasses are added

        // by calling:

        //

        //     add( createPanel_A(a_wicket_id) );

        //

        // and

        //

        //     add( createPanel_B(some_other_wicket_id) );

    }



   

Re: UI Layout

2010-03-08 Thread Marek Šabo
+1 on this. I've been experimenting with ajax navigation switching
panels representing actions and using pages as containers for all these
actions (e.g. module User has its page which has menu where are links to
various action panels).
So far works best for me from all approaches I've tried.

On 03/08/2010 11:01 AM, Juha Palomäki wrote:
 One thing in the page vs panels discussion is also inheritance vs
 composition. So do you construct the layout of the UI by inhering it
 or do you take the mashup style -approach.

 I've started thinking that it might be better to use panels for
 functionality (for example CustomerEdit, CustomerAdd) and then use
 some kind of page structure around those to control the navigation.
 Something where you could have for example two completely different
 navigation systems on the application at the same time.

 br, Juha

 On Mon, Mar 8, 2010 at 10:44 AM, Juha Palomäki juha.palom...@gmail.com 
 wrote:
   
 Here's what we have been using for CRUD stuff:

 Domain:
 Customer
 - name : String
 - industry : String
 - primaryContact : Contact

 Contact
 - name : String
 - Address : String
 - Email: String

 Pages:
 CustomerBasePage (abstact)
 CustomerAddPage
 CustomerEditPage
 CustomerViewPage

 Panels:
 CustomerBasePanel
 CustomerEditPanel
 CustomerViewPanel

 ContactBasePanel
 ContactEditPanel
 ContactViewPanel

 Most of the service layer -references are on the page-level. For
 example pages take care of retrieving customer from DB and persisting
 changes. The panels just receive IModelCustomer.

 There are separate pages for add and edit, because those operations
 need to be handled differently. On the other hand the same edit
 -panels are used for both add and edit.

 One page can then host multiple panels. For example the
 CustomerViewPage could also host OrderViewPanel.

 The base -level does not contain that much functionality in many
 cases, but we have localization stuff there. For example the
 CustomerEditPanel and CustomerAddPanel share most of field labels, so
 there are stored in CustomerBasePanel.xml

 This leads to quite many classes, but on the other hand the classes
 are simple and straightforward in most cases. I find it more easier to
 deal with many simple classes than with few complex. To manage all the
 classes, I prefer to use package structure like this:

 org.example.app.customer.web.page
 org.example.app.customer.web.panel
 org.example.app.customer.web.support (custom models and other
 support stuff goes here)
 org.example.app.order.web.page
 org.example.app.order.web.panel
 org.example.app.order.web.support

 However I must say that I'm not completely satisfied with this
 approach. For example with the pages we can't simply create a nice
 ajax tabpanel that would contain CustomerViewPage, OrdersViewPage and
 ContactsViewPage.


 br, Juha


 On Fri, Mar 5, 2010 at 1:41 PM, nino martinez wael
 nino.martinez.w...@gmail.com wrote:
 
 +1 for multiple page + abstract base page..

 2010/2/26 Frank Silbermann frank.silberm...@fedex.com

   
 Single page versus multi-page application?



 Some people build a single-page application in which panels are replaced
 dynamically.  With this approach, the single page is analogous to a
 Swing JFrame, to whom components are added and removed (or made visible
 or invisible as needed).



 Many people prefer to have separate pages for different functionality --
 and this is necessary if the user is to be able to bookmark several
 different pages.  To do this, many people use markup inheritance, in
 which sub-pages inherit from the base page, and the sub-page mark-up is
 combined with the base-page mark-up.  (Though it is to be generalized in
 the future, I believe currently there can be only a single place in the
 base page where the sub-page's components can go.)





 I prefer to use a base page which contains one or more panels to be
 defined by the sub-pages, via abstract panel-creation methods called by
 the base page.  However, Wicket convention is to add components in the
 page constructor, and calling an overridden method from a constructor is
 bad.  (The overridden method will not be able to use anything set up in
 the sub-page's constructor, due to the order in which constructors are
 called.)  I solve this problem by making my base pages inherit from the
 following:



 public class DelayedAssemblyWebPage extends WebPage {

protected boolean componentsAssembled = false;



@Override

protected void onBeforeRender() {

if ( !componentsAssembled ) {

try {

assembleComponents();

componentsAssembled = true;

} catch (Exception e) {

throw new RuntimeException(e);

}

}

super.onBeforeRender();

}



abstract protected void assembleComponents() throws Exception {}

 }



 So my application base page would look something like this:



 public class MyApplicationBasePage extends 

Re: how to Store wicket directly to XML File

2010-03-08 Thread Ernesto Reinaldo Barreiro
Hi Saravanakumar,

First of all: If I where you I would try to follow Jeremy's suggestion. It
is a bit annoying for other users to have duplicated posts. Additionally if
someone answers one of your posts, and even if the answer is not what you
expected, it is nice if you reply to the guy at least telling him. Thanks
you but that's not what I wanted to achieve... and explain yourself. If you
don't answer and just spawn a new thread that will only create confusion and
people will be less prone to answer your e-mail. Also try to explain
yourself as clear as possible.

If what you are trying to do is dynamically generate Wicket screens based on
some XML definition... Please search this list. The same question has been
asked and answered many times on this list. Even there are projects out
there you can use for inspiration e.g. ([1], [2]). Basically the idea is to
use repeaters and factories of components the read some definitions and
create what you want.

Best,


Refereneces.

1-http://wicketwebbeans.sourceforge.net/
2-
http://code.google.com/p/antilia/source/browse/#svn/trunk/com.antilia.web/src/com/antilia/web/crud

On Mon, Mar 8, 2010 at 9:53 AM, sravan g sravangs...@gmail.com wrote:

 Hi All,
 Any one Have idea about how to Store wicket fields(TextField) to XML
 File?

 Thanks,
 Saravanakumar G.



Support for serialization debugging.

2010-03-08 Thread Sergey Olefir
Hi,

what is the current 'proper' way to debug serialization issues in Wicket?

My web search led me to two things:
- Wicket contains SerializableChecker class whose explicit purpose is
to assist in tracking down serialization issues.
- At some point it seems that in development mode Wicket used to
serialize pages on each request (so that you'll catch your
serialization issues early).

However right now it seems that Wicket is using
SecondLevelCacheSessionStore for serialization purposes -- and the
implementation does not make use of SerializableChecker.

Also current Wicket apparently does not serialize pages on each
request in development mode (at least not by default).


So with the current Wicket is there a way to force page serialization
on each request and to enable serialization debugging via
SerializableChecker or something else?

I'm asking because to track down my serialization issue recently I had
to basically copy-paste SecondLevelCacheSessionStore and manually add
SerializableChecker invocation to track it down. Plus the error only
became apparent when Tomcat was shutdown with 'proper' sessions still
in memory.

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



Wicketstuff-Push without Dojo?

2010-03-08 Thread Martin U
Hi Folks,

i need some COMETD or something equal implemention in my web-application. So
i found wickestuff-push. But as far as is see, it users dojo to do the
client-side magic.

I dont want to blow up my application more as it still is ;) so i want ask
for an wicket + comet workaround with jQuery or with wicket-own javascript
functionality.


thanks in advance for any hint.


- Martin


Re: Where to put an application's configuration parameters?

2010-03-08 Thread T Ames
As an alternative, I place all my properties in an LDAP server.  In the
Application, I have a class that retrieves the properties.



On Sun, Mar 7, 2010 at 8:33 PM, James Carman ja...@carmanconsulting.comwrote:

 And if you want live redeployment, you could use jrebel and their spring
 plugin.  I think it will reload beans based on property file changes

 On Mar 7, 2010 7:17 PM, Riyad Kalla rka...@gmail.com wrote:

 James,

 Thanks for the link.

 -R

 On Sun, Mar 7, 2010 at 4:50 PM, James Carman ja...@carmanconsulting.com
 wrote:


  If you want to see how I did it with spring config, you can check out my
  advanced wicket demo a...



Re: Where to put an application's configuration parameters?

2010-03-08 Thread James Carman
That's an interesting idea.  Ldap support is built into the jdk.  Does that
make unit testing interesting or do you have all that stuff abstracted out?

On Mar 8, 2010 8:48 AM, T Ames tamesw...@gmail.com wrote:

As an alternative, I place all my properties in an LDAP server.  In the
Application, I have a class that retrieves the properties.



On Sun, Mar 7, 2010 at 8:33 PM, James Carman ja...@carmanconsulting.com
wrote:


 And if you want live redeployment, you could use jrebel and their spring
 plugin. I think it wi...


Re: Example of configuring JCaptcha within Wicket?

2010-03-08 Thread David Chang
Eelco, 

Thanks for reply. I already read this book and already got the code working by 
understanding the sample code int the book. But I don't like what the default 
image and font look like and hope to change it. 

So I would like to see if there is existing work by folks here so that I dont 
have to re-invent wheels.

Best, David


--- On Sun, 3/7/10, Eelco Hillenius eelco.hillen...@gmail.com wrote:

 From: Eelco Hillenius eelco.hillen...@gmail.com
 Subject: Re: Example of configuring JCaptcha within Wicket?
 To: users@wicket.apache.org
 Date: Sunday, March 7, 2010, 11:07 PM
 It's been a while, so I don't know
 how well it works with recent
 versions (and whether I would do things differently today),
 but
 there's a few pages on this in Wicket In Action. You can
 find example
 source code here:
 http://code.google.com/p/wicketinaction/source/browse/trunk/book-wicket-in-action/src/java/wicket/in/action/chapter09/jcaptcha/?r=110
 
 Eelco
 
 On Sun, Mar 7, 2010 at 11:53 AM, David Chang david_q_zh...@yahoo.com
 wrote:
  Anybody used the JCaptcha tool? How did you do the
 customization? The out-of-box config sucks.
 
  Could you please share your config and how to?
 
  Cheers!
 
 
 
 
 
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 


  

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



Re: Wicketstuff-Push without Dojo?

2010-03-08 Thread Richard Wilkinson
Hi,

We have been working on the wicketstuff-push project offline; so far
we have modified the code to run using jQuery (using wiQuery [1]) with
the latest version of the cometd javascript, and fixed a few bugs /
made some improvements. For example the current code wasn't as
efficient as it could have been when you subscribe to more than one
event per page.  We also have added a 'push model', where when you
update the contents of a components model, that component is updated
as usual with wicket ajax, and some helper code for working with
wiQuery.

All of this code is work-in-progress, but we want to start a dialog
with the main developer(s) of the push project to see if we can
contribute our work back to the community.

We also experimented with using atmosphere [2] which allows cometd to
work on more servlet containers than just jetty, but while the
integration worked fine, there is currently a bug in the atmosphere
code which means that it doesn't work with the current version of the
cometd servlet [3].

A version based only on wicket ajax sounds interesting, if you look at
the jQuery binding, most of the actual work is done by the
framework-agnostic cometd.js file, with jQuery providing the ajax
mechanism and the JSON evaluation, however I know that the wicket ajax
backend is being re-written in 1.5, so any work done on the 1.4 branch
would be relatively short lived.

I will try and get together a patch with our work in it for the push
project and post it here, or I could maybe branch the main push-parent
in the wicketstuff svn.

[1] - http://code.google.com/p/wiquery/
[2] - https://atmosphere.dev.java.net/
[3] - http://n2.nabble.com/Bayuex-problems-tt4633855.html

-- 
Regards - Richard Wilkinson
Developer,
jWeekend: OO  Java Technologies - Development and Training
http://jWeekend.com

On 8 March 2010 13:36, Martin U ufer.mar...@googlemail.com wrote:
 Hi Folks,

 i need some COMETD or something equal implemention in my web-application. So
 i found wickestuff-push. But as far as is see, it users dojo to do the
 client-side magic.

 I dont want to blow up my application more as it still is ;) so i want ask
 for an wicket + comet workaround with jQuery or with wicket-own javascript
 functionality.


 thanks in advance for any hint.


 - Martin


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



Re: wiQuery components with server side state - live demo

2010-03-08 Thread Eyal Golan
Really cool demo!
Is there a place where I can see source for the portal demo?
If I show the guys at work I can use it, we will defently choose WiQuery.
They're talking about GXT and other stuff which I really don't want to go
into.


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Tue, Mar 2, 2010 at 6:58 PM, Cemal A Bayramoglu ce...@jweekend.comwrote:

 We've been building a few wiQuery components [0], for clients' and
 internal projects. These wiQuery components typically maintain some of
 their state server-side, in the spirit of standard Wicket components.

 Here's a simple demo [1] to show some of them in action.

 Look carefully and you'll find lots of stuff to click on [2]. We could
 plan to open up the ones we may [3] if they look useful to you or
 you'd like to get involved with design/development/testing.

 Regards - Cemal
 jWeekend
 OO  Java Technologies, Wicket
 Consulting, Development, Training
 http://jWeekend.com

 [0] includes components based on sortable portlet, jqGrid/Tree,
 jGrowl, jQuery UI: Accordian, Dialog, Tabs all integrated with Wicket
 using wiQuery (http://code.google.com/p/wiquery/)
 [1] http://labs.jWeekend.com/public/
 [2] We'd naturally prefer if you didn't zap _all_ the records from our
 toy database! Yes, we know some of you will take this as an invitation
 to have a go!
 [3] No promises on dates just now, but it is something we'd like to do
 soon.

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




Re: wiQuery components with server side state - live demo

2010-03-08 Thread Cemal Bayramoglu
Eyal,

Thanks. We will be working on that as soon as we get another opportunity.
Perhaps we will try to coincide our release with the release of
wiQuery 1.0.1 which we may also have by the end of the month.

Regards - Cemal
jWeekend
OO  Java Technologies, Wicket
Consulting, Development, Training
http://jWeekend.com


On 8 March 2010 15:05, Eyal Golan egola...@gmail.com wrote:
 Really cool demo!
 Is there a place where I can see source for the portal demo?
 If I show the guys at work I can use it, we will defently choose WiQuery.
 They're talking about GXT and other stuff which I really don't want to go
 into.


 Eyal Golan
 egola...@gmail.com

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P  Save a tree. Please don't print this e-mail unless it's really necessary


 On Tue, Mar 2, 2010 at 6:58 PM, Cemal A Bayramoglu ce...@jweekend.comwrote:

 We've been building a few wiQuery components [0], for clients' and
 internal projects. These wiQuery components typically maintain some of
 their state server-side, in the spirit of standard Wicket components.

 Here's a simple demo [1] to show some of them in action.

 Look carefully and you'll find lots of stuff to click on [2]. We could
 plan to open up the ones we may [3] if they look useful to you or
 you'd like to get involved with design/development/testing.

 Regards - Cemal
 jWeekend
 OO  Java Technologies, Wicket
 Consulting, Development, Training
 http://jWeekend.com

 [0] includes components based on sortable portlet, jqGrid/Tree,
 jGrowl, jQuery UI: Accordian, Dialog, Tabs all integrated with Wicket
 using wiQuery (http://code.google.com/p/wiquery/)
 [1] http://labs.jWeekend.com/public/
 [2] We'd naturally prefer if you didn't zap _all_ the records from our
 toy database! Yes, we know some of you will take this as an invitation
 to have a go!
 [3] No promises on dates just now, but it is something we'd like to do
 soon.

 -
 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



Session expired drives me mad!

2010-03-08 Thread Martin Asenov
Hello everyone!

The session expired problem really drives me mad, because it's been couple of 
months or so since it started bothering me. Please advice me on what to do, 
because I'm despaired. Wicket tries to serialize every single class in my 
opinion.

I enabled the DEBUG of Wicket and messages like the following one are flooding 
the log. Here it is:

08-03-2010 17:30:03,445 ERROR 
org.apache.wicket.util.lang.Objects.objectToByteArray:1134 - Error serializing 
object class com.mycompany.myapp.ui.users.Users [object=[Page class = 
com.mycompany.myapp.ui.users.Users, id = 21, version = 0]]
   
org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: 
Unable to serialize class: 
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler
Field hierarchy is:
  21 [class=com.mycompany.myapp.ui.users.Users, path=21]
private java.lang.Object org.apache.wicket.MarkupContainer.children 
[class=[Ljava.lang.Object;]
  protected java.lang.Object com.mycompany.myapp.ui.MyFormPanel.model[15] 
[class=org.apache.wicket.markup.html.WebMarkupContainer, path=21:holder]
private java.lang.Object org.apache.wicket.MarkupContainer.children 
[class=[Ljava.lang.Object;]
  private java.lang.Object 
org.apache.wicket.MarkupContainer.children[0] 
[class=com.mycompany.myapp.ui.users.Users$2, path=21:holder:view]
private java.lang.Object org.apache.wicket.MarkupContainer.children 
[class=[Ljava.lang.Object;]
  private java.lang.Object 
org.apache.wicket.MarkupContainer.children[0] 
[class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1]
private java.lang.Object 
org.apache.wicket.MarkupContainer.children 
[class=org.apache.wicket.markup.repeater.RepeatingView, 
path=21:holder:view:1:cols]
  private java.lang.Object 
org.apache.wicket.MarkupContainer.children 
[class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1:cols:2]
java.lang.Object org.apache.wicket.Component.data 
[class=com.mycompany.myapp.ui.users.SortedUsersProvider$1]
  final com.mycompany.myapp.ui.users.SortedUsersProvider 
com.mycompany.myapp.ui.users.SortedUsersProvider$1.this$0 
[class=com.mycompany.myapp.ui.users.SortedUsersProvider]
private com.mycompany.myapp.session.UserContext 
com.mycompany.myapp.ui.users.SortedUsersProvider.context 
[class=com.mycompany.myapp.session.UserContext]
  private com.mycompany.myapp.ui.util.Utilities 
com.mycompany.myapp.session.UserContext.utilities 
[class=com.mycompany.myapp.ui.util.Utilities]
private com.mycompany.myapp.admin.ManagementBean 
com.mycompany.myapp.ui.util.Utilities.domainAndUsersManagement 
[class=com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a]
  private net.sf.cglib.proxy.MethodInterceptor 
com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a.CGLIB$CALLBACK_0
 
[class=org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor]
private 
org.springframework.aop.framework.AdvisedSupport 
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.advised
 [class=org.springframework.aop.framework.ProxyFactory]
  private org.springframework.aop.Advisor[] 
org.springframework.aop.framework.AdvisedSupport.advisorArray 
[class=[Lorg.springframework.aop.Advisor;]
private org.springframework.aop.Advisor[] 
org.springframework.aop.framework.AdvisedSupport.advisorArray[0] 
[class=org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor]
  private org.aopalliance.aop.Advice 
org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.advice 
[class=org.springframework.transaction.interceptor.TransactionInterceptor]
private org.aopalliance.aop.Advice 
org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.advice[write:1]
 [class=org.springframework.orm.jpa.JpaTransactionManager]
  private 
javax.persistence.EntityManagerFactory 
org.springframework.orm.jpa.JpaTransactionManager.entityManagerFactory 
[class=$Proxy29]
protected 
java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h 
[class=org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler]
 - field that is not serializable

Thank you in advance!

Regards,
Martin



Re: Session expired drives me mad!

2010-03-08 Thread Cemal Bayramoglu
Martin,

It looks like your page is holding on to Spring benas.
Are you using @SpringBean to inject Spring beans into your pages? That
way you would get a proxy to the beans so you don't need to worry
about them being serialisable.

Regards - Cemal
jWeekend
OO  Java Technologies, Wicket
Consulting, Development, Training
http://jWeekend.com


2010/3/8 Martin Asenov mase...@velti.com:
 Hello everyone!

 The session expired problem really drives me mad, because it's been couple of 
 months or so since it started bothering me. Please advice me on what to do, 
 because I'm despaired. Wicket tries to serialize every single class in my 
 opinion.

 I enabled the DEBUG of Wicket and messages like the following one are 
 flooding the log. Here it is:

 08-03-2010 17:30:03,445 ERROR 
 org.apache.wicket.util.lang.Objects.objectToByteArray:1134 - Error 
 serializing object class com.mycompany.myapp.ui.users.Users [object=[Page 
 class = com.mycompany.myapp.ui.users.Users, id = 21, version = 0]]
   
 org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: 
 Unable to serialize class: 
 org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler
 Field hierarchy is:
  21 [class=com.mycompany.myapp.ui.users.Users, path=21]
    private java.lang.Object org.apache.wicket.MarkupContainer.children 
 [class=[Ljava.lang.Object;]
      protected java.lang.Object com.mycompany.myapp.ui.MyFormPanel.model[15] 
 [class=org.apache.wicket.markup.html.WebMarkupContainer, path=21:holder]
        private java.lang.Object org.apache.wicket.MarkupContainer.children 
 [class=[Ljava.lang.Object;]
          private java.lang.Object 
 org.apache.wicket.MarkupContainer.children[0] 
 [class=com.mycompany.myapp.ui.users.Users$2, path=21:holder:view]
            private java.lang.Object 
 org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
              private java.lang.Object 
 org.apache.wicket.MarkupContainer.children[0] 
 [class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1]
                private java.lang.Object 
 org.apache.wicket.MarkupContainer.children 
 [class=org.apache.wicket.markup.repeater.RepeatingView, 
 path=21:holder:view:1:cols]
                  private java.lang.Object 
 org.apache.wicket.MarkupContainer.children 
 [class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1:cols:2]
                    java.lang.Object org.apache.wicket.Component.data 
 [class=com.mycompany.myapp.ui.users.SortedUsersProvider$1]
                      final com.mycompany.myapp.ui.users.SortedUsersProvider 
 com.mycompany.myapp.ui.users.SortedUsersProvider$1.this$0 
 [class=com.mycompany.myapp.ui.users.SortedUsersProvider]
                        private com.mycompany.myapp.session.UserContext 
 com.mycompany.myapp.ui.users.SortedUsersProvider.context 
 [class=com.mycompany.myapp.session.UserContext]
                          private com.mycompany.myapp.ui.util.Utilities 
 com.mycompany.myapp.session.UserContext.utilities 
 [class=com.mycompany.myapp.ui.util.Utilities]
                            private com.mycompany.myapp.admin.ManagementBean 
 com.mycompany.myapp.ui.util.Utilities.domainAndUsersManagement 
 [class=com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a]
                              private net.sf.cglib.proxy.MethodInterceptor 
 com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a.CGLIB$CALLBACK_0
  
 [class=org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor]
                                private 
 org.springframework.aop.framework.AdvisedSupport 
 org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.advised
  [class=org.springframework.aop.framework.ProxyFactory]
                                  private org.springframework.aop.Advisor[] 
 org.springframework.aop.framework.AdvisedSupport.advisorArray 
 [class=[Lorg.springframework.aop.Advisor;]
                                    private org.springframework.aop.Advisor[] 
 org.springframework.aop.framework.AdvisedSupport.advisorArray[0] 
 [class=org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor]
                                      private org.aopalliance.aop.Advice 
 org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.advice 
 [class=org.springframework.transaction.interceptor.TransactionInterceptor]
                                        private org.aopalliance.aop.Advice 
 org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.advice[write:1]
  [class=org.springframework.orm.jpa.JpaTransactionManager]
                                          private 
 javax.persistence.EntityManagerFactory 
 org.springframework.orm.jpa.JpaTransactionManager.entityManagerFactory 
 [class=$Proxy29]
                                            protected 
 java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h 
 

Re: Session expired drives me mad!

2010-03-08 Thread James Carman
Are you using @SpringBean?

2010/3/8 Martin Asenov mase...@velti.com:
 Hello everyone!

 The session expired problem really drives me mad, because it's been couple of 
 months or so since it started bothering me. Please advice me on what to do, 
 because I'm despaired. Wicket tries to serialize every single class in my 
 opinion.

 I enabled the DEBUG of Wicket and messages like the following one are 
 flooding the log. Here it is:

 08-03-2010 17:30:03,445 ERROR 
 org.apache.wicket.util.lang.Objects.objectToByteArray:1134 - Error 
 serializing object class com.mycompany.myapp.ui.users.Users [object=[Page 
 class = com.mycompany.myapp.ui.users.Users, id = 21, version = 0]]
   
 org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: 
 Unable to serialize class: 
 org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler
 Field hierarchy is:
  21 [class=com.mycompany.myapp.ui.users.Users, path=21]
    private java.lang.Object org.apache.wicket.MarkupContainer.children 
 [class=[Ljava.lang.Object;]
      protected java.lang.Object com.mycompany.myapp.ui.MyFormPanel.model[15] 
 [class=org.apache.wicket.markup.html.WebMarkupContainer, path=21:holder]
        private java.lang.Object org.apache.wicket.MarkupContainer.children 
 [class=[Ljava.lang.Object;]
          private java.lang.Object 
 org.apache.wicket.MarkupContainer.children[0] 
 [class=com.mycompany.myapp.ui.users.Users$2, path=21:holder:view]
            private java.lang.Object 
 org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
              private java.lang.Object 
 org.apache.wicket.MarkupContainer.children[0] 
 [class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1]
                private java.lang.Object 
 org.apache.wicket.MarkupContainer.children 
 [class=org.apache.wicket.markup.repeater.RepeatingView, 
 path=21:holder:view:1:cols]
                  private java.lang.Object 
 org.apache.wicket.MarkupContainer.children 
 [class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1:cols:2]
                    java.lang.Object org.apache.wicket.Component.data 
 [class=com.mycompany.myapp.ui.users.SortedUsersProvider$1]
                      final com.mycompany.myapp.ui.users.SortedUsersProvider 
 com.mycompany.myapp.ui.users.SortedUsersProvider$1.this$0 
 [class=com.mycompany.myapp.ui.users.SortedUsersProvider]
                        private com.mycompany.myapp.session.UserContext 
 com.mycompany.myapp.ui.users.SortedUsersProvider.context 
 [class=com.mycompany.myapp.session.UserContext]
                          private com.mycompany.myapp.ui.util.Utilities 
 com.mycompany.myapp.session.UserContext.utilities 
 [class=com.mycompany.myapp.ui.util.Utilities]
                            private com.mycompany.myapp.admin.ManagementBean 
 com.mycompany.myapp.ui.util.Utilities.domainAndUsersManagement 
 [class=com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a]
                              private net.sf.cglib.proxy.MethodInterceptor 
 com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a.CGLIB$CALLBACK_0
  
 [class=org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor]
                                private 
 org.springframework.aop.framework.AdvisedSupport 
 org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.advised
  [class=org.springframework.aop.framework.ProxyFactory]
                                  private org.springframework.aop.Advisor[] 
 org.springframework.aop.framework.AdvisedSupport.advisorArray 
 [class=[Lorg.springframework.aop.Advisor;]
                                    private org.springframework.aop.Advisor[] 
 org.springframework.aop.framework.AdvisedSupport.advisorArray[0] 
 [class=org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor]
                                      private org.aopalliance.aop.Advice 
 org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.advice 
 [class=org.springframework.transaction.interceptor.TransactionInterceptor]
                                        private org.aopalliance.aop.Advice 
 org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.advice[write:1]
  [class=org.springframework.orm.jpa.JpaTransactionManager]
                                          private 
 javax.persistence.EntityManagerFactory 
 org.springframework.orm.jpa.JpaTransactionManager.entityManagerFactory 
 [class=$Proxy29]
                                            protected 
 java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h 
 [class=org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler]
  - field that is not serializable

 Thank you in advance!

 Regards,
 Martin



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

RE: Session expired drives me mad!

2010-03-08 Thread Martin Asenov
Hello,

Well, I do use Spring Beans, and as shown in the stack trace, there is a field 
relation to the beans themselves. I don't think I can avoid it, do I? I create 
the beans by casting from the ApplicationContext.

Thank you,
Martin 

-Original Message-
From: ce...@jweekend.com [mailto:ce...@jweekend.com] On Behalf Of Cemal 
Bayramoglu
Sent: Monday, March 08, 2010 5:39 PM
To: users
Subject: Re: Session expired drives me mad!

Martin,

It looks like your page is holding on to Spring benas.
Are you using @SpringBean to inject Spring beans into your pages? That
way you would get a proxy to the beans so you don't need to worry
about them being serialisable.

Regards - Cemal
jWeekend
OO  Java Technologies, Wicket
Consulting, Development, Training
http://jWeekend.com


2010/3/8 Martin Asenov mase...@velti.com:
 Hello everyone!

 The session expired problem really drives me mad, because it's been couple of 
 months or so since it started bothering me. Please advice me on what to do, 
 because I'm despaired. Wicket tries to serialize every single class in my 
 opinion.

 I enabled the DEBUG of Wicket and messages like the following one are 
 flooding the log. Here it is:

 08-03-2010 17:30:03,445 ERROR 
 org.apache.wicket.util.lang.Objects.objectToByteArray:1134 - Error 
 serializing object class com.mycompany.myapp.ui.users.Users [object=[Page 
 class = com.mycompany.myapp.ui.users.Users, id = 21, version = 0]]
   
 org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: 
 Unable to serialize class: 
 org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler
 Field hierarchy is:
  21 [class=com.mycompany.myapp.ui.users.Users, path=21]
    private java.lang.Object org.apache.wicket.MarkupContainer.children 
 [class=[Ljava.lang.Object;]
      protected java.lang.Object com.mycompany.myapp.ui.MyFormPanel.model[15] 
 [class=org.apache.wicket.markup.html.WebMarkupContainer, path=21:holder]
        private java.lang.Object org.apache.wicket.MarkupContainer.children 
 [class=[Ljava.lang.Object;]
          private java.lang.Object 
 org.apache.wicket.MarkupContainer.children[0] 
 [class=com.mycompany.myapp.ui.users.Users$2, path=21:holder:view]
            private java.lang.Object 
 org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
              private java.lang.Object 
 org.apache.wicket.MarkupContainer.children[0] 
 [class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1]
                private java.lang.Object 
 org.apache.wicket.MarkupContainer.children 
 [class=org.apache.wicket.markup.repeater.RepeatingView, 
 path=21:holder:view:1:cols]
                  private java.lang.Object 
 org.apache.wicket.MarkupContainer.children 
 [class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1:cols:2]
                    java.lang.Object org.apache.wicket.Component.data 
 [class=com.mycompany.myapp.ui.users.SortedUsersProvider$1]
                      final com.mycompany.myapp.ui.users.SortedUsersProvider 
 com.mycompany.myapp.ui.users.SortedUsersProvider$1.this$0 
 [class=com.mycompany.myapp.ui.users.SortedUsersProvider]
                        private com.mycompany.myapp.session.UserContext 
 com.mycompany.myapp.ui.users.SortedUsersProvider.context 
 [class=com.mycompany.myapp.session.UserContext]
                          private com.mycompany.myapp.ui.util.Utilities 
 com.mycompany.myapp.session.UserContext.utilities 
 [class=com.mycompany.myapp.ui.util.Utilities]
                            private com.mycompany.myapp.admin.ManagementBean 
 com.mycompany.myapp.ui.util.Utilities.domainAndUsersManagement 
 [class=com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a]
                              private net.sf.cglib.proxy.MethodInterceptor 
 com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a.CGLIB$CALLBACK_0
  
 [class=org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor]
                                private 
 org.springframework.aop.framework.AdvisedSupport 
 org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.advised
  [class=org.springframework.aop.framework.ProxyFactory]
                                  private org.springframework.aop.Advisor[] 
 org.springframework.aop.framework.AdvisedSupport.advisorArray 
 [class=[Lorg.springframework.aop.Advisor;]
                                    private org.springframework.aop.Advisor[] 
 org.springframework.aop.framework.AdvisedSupport.advisorArray[0] 
 [class=org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor]
                                      private org.aopalliance.aop.Advice 
 org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.advice 
 [class=org.springframework.transaction.interceptor.TransactionInterceptor]
                                        private org.aopalliance.aop.Advice 
 

Re: Session expired drives me mad!

2010-03-08 Thread James Carman
No, you need to use the @SpringBean annotation:

http://cwiki.apache.org/WICKET/spring.html#Spring-AnnotationbasedApproach


2010/3/8 Martin Asenov mase...@velti.com:
 Hello,

 Well, I do use Spring Beans, and as shown in the stack trace, there is a 
 field relation to the beans themselves. I don't think I can avoid it, do I? I 
 create the beans by casting from the ApplicationContext.

 Thank you,
 Martin

 -Original Message-
 From: ce...@jweekend.com [mailto:ce...@jweekend.com] On Behalf Of Cemal 
 Bayramoglu
 Sent: Monday, March 08, 2010 5:39 PM
 To: users
 Subject: Re: Session expired drives me mad!

 Martin,

 It looks like your page is holding on to Spring benas.
 Are you using @SpringBean to inject Spring beans into your pages? That
 way you would get a proxy to the beans so you don't need to worry
 about them being serialisable.

 Regards - Cemal
 jWeekend
 OO  Java Technologies, Wicket
 Consulting, Development, Training
 http://jWeekend.com


 2010/3/8 Martin Asenov mase...@velti.com:
 Hello everyone!

 The session expired problem really drives me mad, because it's been couple 
 of months or so since it started bothering me. Please advice me on what to 
 do, because I'm despaired. Wicket tries to serialize every single class in 
 my opinion.

 I enabled the DEBUG of Wicket and messages like the following one are 
 flooding the log. Here it is:

 08-03-2010 17:30:03,445 ERROR 
 org.apache.wicket.util.lang.Objects.objectToByteArray:1134 - Error 
 serializing object class com.mycompany.myapp.ui.users.Users [object=[Page 
 class = com.mycompany.myapp.ui.users.Users, id = 21, version = 0]]
   
 org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
  Unable to serialize class: 
 org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler
 Field hierarchy is:
  21 [class=com.mycompany.myapp.ui.users.Users, path=21]
    private java.lang.Object org.apache.wicket.MarkupContainer.children 
 [class=[Ljava.lang.Object;]
      protected java.lang.Object com.mycompany.myapp.ui.MyFormPanel.model[15] 
 [class=org.apache.wicket.markup.html.WebMarkupContainer, path=21:holder]
        private java.lang.Object org.apache.wicket.MarkupContainer.children 
 [class=[Ljava.lang.Object;]
          private java.lang.Object 
 org.apache.wicket.MarkupContainer.children[0] 
 [class=com.mycompany.myapp.ui.users.Users$2, path=21:holder:view]
            private java.lang.Object 
 org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
              private java.lang.Object 
 org.apache.wicket.MarkupContainer.children[0] 
 [class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1]
                private java.lang.Object 
 org.apache.wicket.MarkupContainer.children 
 [class=org.apache.wicket.markup.repeater.RepeatingView, 
 path=21:holder:view:1:cols]
                  private java.lang.Object 
 org.apache.wicket.MarkupContainer.children 
 [class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1:cols:2]
                    java.lang.Object org.apache.wicket.Component.data 
 [class=com.mycompany.myapp.ui.users.SortedUsersProvider$1]
                      final com.mycompany.myapp.ui.users.SortedUsersProvider 
 com.mycompany.myapp.ui.users.SortedUsersProvider$1.this$0 
 [class=com.mycompany.myapp.ui.users.SortedUsersProvider]
                        private com.mycompany.myapp.session.UserContext 
 com.mycompany.myapp.ui.users.SortedUsersProvider.context 
 [class=com.mycompany.myapp.session.UserContext]
                          private com.mycompany.myapp.ui.util.Utilities 
 com.mycompany.myapp.session.UserContext.utilities 
 [class=com.mycompany.myapp.ui.util.Utilities]
                            private com.mycompany.myapp.admin.ManagementBean 
 com.mycompany.myapp.ui.util.Utilities.domainAndUsersManagement 
 [class=com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a]
                              private net.sf.cglib.proxy.MethodInterceptor 
 com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a.CGLIB$CALLBACK_0
  
 [class=org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor]
                                private 
 org.springframework.aop.framework.AdvisedSupport 
 org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.advised
  [class=org.springframework.aop.framework.ProxyFactory]
                                  private org.springframework.aop.Advisor[] 
 org.springframework.aop.framework.AdvisedSupport.advisorArray 
 [class=[Lorg.springframework.aop.Advisor;]
                                    private org.springframework.aop.Advisor[] 
 org.springframework.aop.framework.AdvisedSupport.advisorArray[0] 
 [class=org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor]
                                      private org.aopalliance.aop.Advice 
 

Re: Session expired drives me mad!

2010-03-08 Thread Ilja Pavkovic
Hi,

 I enabled the DEBUG of Wicket and messages like the following one are
 flooding the log. Here it is:
 
 08-03-2010 17:30:03,445 ERROR
 org.apache.wicket.util.lang.Objects.objectToByteArray:1134 - Error
 serializing object class com.mycompany.myapp.ui.users.Users [object=[Page
 class = com.mycompany.myapp.ui.users.Users, id = 21, version = 0]]
 org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableExcepti
 on: Unable to serialize class:
 org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntity
 ManagerFactoryInvocationHandler Field hierarchy is:
   21 [class=com.mycompany.myapp.ui.users.Users, path=21]
 private java.lang.Object org.apache.wicket.MarkupContainer.children
 [class=[Ljava.lang.Object;] protected java.lang.Object
 com.mycompany.myapp.ui.MyFormPanel.model[15]
Wicket (or better: your model implementations) should not serialize your 
entity objects. They are managed by spring orm, therefore use a specialized 
LoadableDetachableModel in MyFormPanel that dynamically load your objects if 
needed.

Best Regards,
Ilja Pavkovic

-- 
binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin

   +49 · 171 · 9342 465

Handelsregister: HRB 115854 - Amtsgericht Charlottenburg
Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker

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



Re: Session expired drives me mad!

2010-03-08 Thread Tomasz Dziurko
Check this one:
http://cwiki.apache.org/WICKET/spring.html , especially paragraph
Annotation-based Approach

Regards
-- 
Tomasz Dziurko

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



Re: Session expired drives me mad!

2010-03-08 Thread Sigmar Muuga
I have had no problems with @SpringBean

Also try to use them like this:
@SpringBean(name=yourBeanName)

This way you can avoid some mess that may occur in the future :)

On Mon, Mar 8, 2010 at 5:46 PM, James Carman
jcar...@carmanconsulting.comwrote:

 No, you need to use the @SpringBean annotation:

 http://cwiki.apache.org/WICKET/spring.html#Spring-AnnotationbasedApproach


 2010/3/8 Martin Asenov mase...@velti.com:
  Hello,
 
  Well, I do use Spring Beans, and as shown in the stack trace, there is a
 field relation to the beans themselves. I don't think I can avoid it, do I?
 I create the beans by casting from the ApplicationContext.
 
  Thank you,
  Martin
 
  -Original Message-
  From: ce...@jweekend.com [mailto:ce...@jweekend.com] On Behalf Of Cemal
 Bayramoglu
  Sent: Monday, March 08, 2010 5:39 PM
  To: users
  Subject: Re: Session expired drives me mad!
 
  Martin,
 
  It looks like your page is holding on to Spring benas.
  Are you using @SpringBean to inject Spring beans into your pages? That
  way you would get a proxy to the beans so you don't need to worry
  about them being serialisable.
 
  Regards - Cemal
  jWeekend
  OO  Java Technologies, Wicket
  Consulting, Development, Training
  http://jWeekend.com
 
 
  2010/3/8 Martin Asenov mase...@velti.com:
  Hello everyone!
 
  The session expired problem really drives me mad, because it's been
 couple of months or so since it started bothering me. Please advice me on
 what to do, because I'm despaired. Wicket tries to serialize every single
 class in my opinion.
 
  I enabled the DEBUG of Wicket and messages like the following one are
 flooding the log. Here it is:
 
  08-03-2010 17:30:03,445 ERROR
 org.apache.wicket.util.lang.Objects.objectToByteArray:1134 - Error
 serializing object class com.mycompany.myapp.ui.users.Users [object=[Page
 class = com.mycompany.myapp.ui.users.Users, id = 21, version = 0]]
 
 org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
 Unable to serialize class:
 org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler
  Field hierarchy is:
   21 [class=com.mycompany.myapp.ui.users.Users, path=21]
 private java.lang.Object org.apache.wicket.MarkupContainer.children
 [class=[Ljava.lang.Object;]
   protected java.lang.Object
 com.mycompany.myapp.ui.MyFormPanel.model[15]
 [class=org.apache.wicket.markup.html.WebMarkupContainer, path=21:holder]
 private java.lang.Object
 org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
   private java.lang.Object
 org.apache.wicket.MarkupContainer.children[0]
 [class=com.mycompany.myapp.ui.users.Users$2, path=21:holder:view]
 private java.lang.Object
 org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
   private java.lang.Object
 org.apache.wicket.MarkupContainer.children[0]
 [class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1]
 private java.lang.Object
 org.apache.wicket.MarkupContainer.children
 [class=org.apache.wicket.markup.repeater.RepeatingView,
 path=21:holder:view:1:cols]
   private java.lang.Object
 org.apache.wicket.MarkupContainer.children
 [class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1:cols:2]
 java.lang.Object org.apache.wicket.Component.data
 [class=com.mycompany.myapp.ui.users.SortedUsersProvider$1]
   final
 com.mycompany.myapp.ui.users.SortedUsersProvider
 com.mycompany.myapp.ui.users.SortedUsersProvider$1.this$0
 [class=com.mycompany.myapp.ui.users.SortedUsersProvider]
 private com.mycompany.myapp.session.UserContext
 com.mycompany.myapp.ui.users.SortedUsersProvider.context
 [class=com.mycompany.myapp.session.UserContext]
   private com.mycompany.myapp.ui.util.Utilities
 com.mycompany.myapp.session.UserContext.utilities
 [class=com.mycompany.myapp.ui.util.Utilities]
 private
 com.mycompany.myapp.admin.ManagementBean
 com.mycompany.myapp.ui.util.Utilities.domainAndUsersManagement
 [class=com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a]
   private
 net.sf.cglib.proxy.MethodInterceptor
 com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a.CGLIB$CALLBACK_0
 [class=org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor]
 private
 org.springframework.aop.framework.AdvisedSupport
 org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.advised
 [class=org.springframework.aop.framework.ProxyFactory]
   private
 org.springframework.aop.Advisor[]
 org.springframework.aop.framework.AdvisedSupport.advisorArray
 [class=[Lorg.springframework.aop.Advisor;]
 private
 org.springframework.aop.Advisor[]
 

RE: Session expired drives me mad!

2010-03-08 Thread Martin Asenov
Thank you all for the help!

-Original Message-
From: Sigmar Muuga [mailto:meedi...@gmail.com] 
Sent: Monday, March 08, 2010 5:50 PM
To: users@wicket.apache.org
Subject: Re: Session expired drives me mad!

I have had no problems with @SpringBean

Also try to use them like this:
@SpringBean(name=yourBeanName)

This way you can avoid some mess that may occur in the future :)

On Mon, Mar 8, 2010 at 5:46 PM, James Carman
jcar...@carmanconsulting.comwrote:

 No, you need to use the @SpringBean annotation:

 http://cwiki.apache.org/WICKET/spring.html#Spring-AnnotationbasedApproach


 2010/3/8 Martin Asenov mase...@velti.com:
  Hello,
 
  Well, I do use Spring Beans, and as shown in the stack trace, there is a
 field relation to the beans themselves. I don't think I can avoid it, do I?
 I create the beans by casting from the ApplicationContext.
 
  Thank you,
  Martin
 
  -Original Message-
  From: ce...@jweekend.com [mailto:ce...@jweekend.com] On Behalf Of Cemal
 Bayramoglu
  Sent: Monday, March 08, 2010 5:39 PM
  To: users
  Subject: Re: Session expired drives me mad!
 
  Martin,
 
  It looks like your page is holding on to Spring benas.
  Are you using @SpringBean to inject Spring beans into your pages? That
  way you would get a proxy to the beans so you don't need to worry
  about them being serialisable.
 
  Regards - Cemal
  jWeekend
  OO  Java Technologies, Wicket
  Consulting, Development, Training
  http://jWeekend.com
 
 
  2010/3/8 Martin Asenov mase...@velti.com:
  Hello everyone!
 
  The session expired problem really drives me mad, because it's been
 couple of months or so since it started bothering me. Please advice me on
 what to do, because I'm despaired. Wicket tries to serialize every single
 class in my opinion.
 
  I enabled the DEBUG of Wicket and messages like the following one are
 flooding the log. Here it is:
 
  08-03-2010 17:30:03,445 ERROR
 org.apache.wicket.util.lang.Objects.objectToByteArray:1134 - Error
 serializing object class com.mycompany.myapp.ui.users.Users [object=[Page
 class = com.mycompany.myapp.ui.users.Users, id = 21, version = 0]]
 
 org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
 Unable to serialize class:
 org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler
  Field hierarchy is:
   21 [class=com.mycompany.myapp.ui.users.Users, path=21]
 private java.lang.Object org.apache.wicket.MarkupContainer.children
 [class=[Ljava.lang.Object;]
   protected java.lang.Object
 com.mycompany.myapp.ui.MyFormPanel.model[15]
 [class=org.apache.wicket.markup.html.WebMarkupContainer, path=21:holder]
 private java.lang.Object
 org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
   private java.lang.Object
 org.apache.wicket.MarkupContainer.children[0]
 [class=com.mycompany.myapp.ui.users.Users$2, path=21:holder:view]
 private java.lang.Object
 org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
   private java.lang.Object
 org.apache.wicket.MarkupContainer.children[0]
 [class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1]
 private java.lang.Object
 org.apache.wicket.MarkupContainer.children
 [class=org.apache.wicket.markup.repeater.RepeatingView,
 path=21:holder:view:1:cols]
   private java.lang.Object
 org.apache.wicket.MarkupContainer.children
 [class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1:cols:2]
 java.lang.Object org.apache.wicket.Component.data
 [class=com.mycompany.myapp.ui.users.SortedUsersProvider$1]
   final
 com.mycompany.myapp.ui.users.SortedUsersProvider
 com.mycompany.myapp.ui.users.SortedUsersProvider$1.this$0
 [class=com.mycompany.myapp.ui.users.SortedUsersProvider]
 private com.mycompany.myapp.session.UserContext
 com.mycompany.myapp.ui.users.SortedUsersProvider.context
 [class=com.mycompany.myapp.session.UserContext]
   private com.mycompany.myapp.ui.util.Utilities
 com.mycompany.myapp.session.UserContext.utilities
 [class=com.mycompany.myapp.ui.util.Utilities]
 private
 com.mycompany.myapp.admin.ManagementBean
 com.mycompany.myapp.ui.util.Utilities.domainAndUsersManagement
 [class=com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a]
   private
 net.sf.cglib.proxy.MethodInterceptor
 com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a.CGLIB$CALLBACK_0
 [class=org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor]
 private
 org.springframework.aop.framework.AdvisedSupport
 org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.advised
 [class=org.springframework.aop.framework.ProxyFactory]
   private
 org.springframework.aop.Advisor[]
 

modal window problem

2010-03-08 Thread Martin Asenov
It's me again. I just noticed some very strange error that I have no 
explanation about. When I open a wicket modal window then it appears for a 
while and closes and the entire page gets redirected to some browser related 
pages, for instance ask.com, or some thing like this:

http://www.mybrowserbar.com/cgi/errors.cgi?q=http%3A%2F%2F%3A%2Ftype=dnsISN=29A2367D3BED40D7A5BA3349E8CAA9FDccv=130cnid=374563cco=USct=12

This is a modal window issue. Any help regarding the question will be highly 
appreciated!

P.S. It's happening on Firefox 3.5.8

Regards,
Martin



Re: Clear feedback panel

2010-03-08 Thread Anna Simbirtsev
Yes, I have setOutputMarkupId(true). I am using ajax to display feedback
messages. Its just clearing the message that does not work for some reason.
I tried the following:

FeedbackMessages me = Session.get().getFeedbackMessages();

 IteratorFeedbackMessage entryIter = me.iterator();
 while (entryIter.hasNext()) {
   FeedbackMessage entry =
(FeedbackMessage)entryIter.next();
   System.out.println(Message:  +
entry.toString());
   entry.markRendered();
 }
target.addComponent(feedback);

On Fri, Mar 5, 2010 at 11:12 PM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

 Maybe you are not really replacing the feedback using ajax. Look at
 wicket-debug popup.  Do you hae
 feedbackPanel.setOutputMarkupId(true);?

 **
 Martin

 2010/3/5 Anna Simbirtsev asimbirt...@gmail.com:
  It does not work for some reason.
 
  Session.get().cleanupFeedbackMessages();
  target.addComponent(feedback);
 
  The message is still visible.
 
  On Fri, Mar 5, 2010 at 4:29 PM, Martin Makundi 
  martin.maku...@koodaripalvelut.com wrote:
 
  session.cleanupfeedbackmessages.
 
  2010/3/5 Anna Simbirtsev asimbirt...@gmail.com:
   Hi,
  
   How can I clear FeedbackPanel messages?
   I want to remove them from the page using target.addComponent(f);
 where f
  is
   FeedbackPanel.
   I just don't know how to set messages to null.
  
   Thanks,
   Anna
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  Anna Simbirtsev
  (416) 729-7331
 

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




-- 
Anna Simbirtsev
(416) 729-7331


Re: modal window problem

2010-03-08 Thread Matthias Keller

On 2010-03-08 17:07, Martin Asenov wrote:

It's me again. I just noticed some very strange error that I have no 
explanation about. When I open a wicket modal window then it appears for a 
while and closes and the entire page gets redirected to some browser related 
pages, for instance ask.com, or some thing like this:

http://www.mybrowserbar.com/cgi/errors.cgi?q=http%3A%2F%2F%3A%2Ftype=dnsISN=29A2367D3BED40D7A5BA3349E8CAA9FDccv=130cnid=374563cco=USct=12

This is a modal window issue. Any help regarding the question will be highly 
appreciated!
   

Hi

It appears that something on your page/modal window is referencing an 
URL http://:/; (or maybe just :/) so your browser bar takes over 
control since that host cannot be found. Maybe check the source of that 
page for such an URL...


Matt



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Clear feedback panel

2010-03-08 Thread Anna Simbirtsev
I think my feedback messages are not in Session, when I print

FeedbackMessages me = Session.get().getFeedbackMessages();

System.out.println(size:  + me.size());

it returns 0.

On Sat, Mar 6, 2010 at 9:16 AM, Riyad Kalla rka...@gmail.com wrote:

 I thought the feedback messages were stored in the request by default? At
 least I remember a thread from a week and a half ago about a person doing a
 redirect and loosing his messages so he had to manually switch to saving
 them in the Session...

 On Fri, Mar 5, 2010 at 9:12 PM, Martin Makundi 
 martin.maku...@koodaripalvelut.com wrote:

  Maybe you are not really replacing the feedback using ajax. Look at
  wicket-debug popup.  Do you hae
  feedbackPanel.setOutputMarkupId(true);?
 
  **
  Martin
 
  2010/3/5 Anna Simbirtsev asimbirt...@gmail.com:
   It does not work for some reason.
  
   Session.get().cleanupFeedbackMessages();
   target.addComponent(feedback);
  
   The message is still visible.
  
   On Fri, Mar 5, 2010 at 4:29 PM, Martin Makundi 
   martin.maku...@koodaripalvelut.com wrote:
  
   session.cleanupfeedbackmessages.
  
   2010/3/5 Anna Simbirtsev asimbirt...@gmail.com:
Hi,
   
How can I clear FeedbackPanel messages?
I want to remove them from the page using target.addComponent(f);
  where f
   is
FeedbackPanel.
I just don't know how to set messages to null.
   
Thanks,
Anna
   
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
   --
   Anna Simbirtsev
   (416) 729-7331
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 




-- 
Anna Simbirtsev
(416) 729-7331


Re: Wicketstuff-Push without Dojo?

2010-03-08 Thread Martin Grigorov
On Mon, 2010-03-08 at 14:37 +, Richard Wilkinson wrote:
 Hi,
 
 We have been working on the wicketstuff-push project offline; so far
 we have modified the code to run using jQuery (using wiQuery [1]) with
 the latest version of the cometd javascript, and fixed a few bugs /
 made some improvements. For example the current code wasn't as
 efficient as it could have been when you subscribe to more than one
 event per page.  We also have added a 'push model', where when you
 update the contents of a components model, that component is updated
 as usual with wicket ajax, and some helper code for working with
 wiQuery.
 
 All of this code is work-in-progress, but we want to start a dialog
 with the main developer(s) of the push project to see if we can
 contribute our work back to the community.
 
 We also experimented with using atmosphere [2] which allows cometd to
 work on more servlet containers than just jetty, but while the
 integration worked fine, there is currently a bug in the atmosphere
 code which means that it doesn't work with the current version of the
 cometd servlet [3].
 
 A version based only on wicket ajax sounds interesting, if you look at
 the jQuery binding, most of the actual work is done by the
 framework-agnostic cometd.js file, with jQuery providing the ajax
 mechanism and the JSON evaluation, however I know that the wicket ajax
 backend is being re-written in 1.5, so any work done on the 1.4 branch
 would be relatively short lived.
As far as I know Wicket 1.5 will not include Matej's experimental work
on wicket-ajax-ng.js with YUI3. This will be postponed to a later
release.
1.5 will be as it is now + improvements on the current features (Markup
parsing and URL handling).
 
 I will try and get together a patch with our work in it for the push
 project and post it here, or I could maybe branch the main push-parent
 in the wicketstuff svn.
 
 [1] - http://code.google.com/p/wiquery/
 [2] - https://atmosphere.dev.java.net/
 [3] - http://n2.nabble.com/Bayuex-problems-tt4633855.html
 



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



RE: modal window problem

2010-03-08 Thread Martin Asenov
Hi, Matthias! 

Well, I viewed the page source, and there is no text that says http://:/; . 
However, this happens only on two PCs from 10. Also, I typed on the one of the 
computers that have this error the above mentioned text in the browser and it 
led to the very same page with the very same parameters. Do you have any 
further ideas?

Thanks,
Martin

-Original Message-
From: Matthias Keller [mailto:matthias.kel...@ergon.ch] 
Sent: Monday, March 08, 2010 6:10 PM
To: users@wicket.apache.org
Subject: Re: modal window problem

On 2010-03-08 17:07, Martin Asenov wrote:
 It's me again. I just noticed some very strange error that I have no 
 explanation about. When I open a wicket modal window then it appears for a 
 while and closes and the entire page gets redirected to some browser related 
 pages, for instance ask.com, or some thing like this:

 http://www.mybrowserbar.com/cgi/errors.cgi?q=http%3A%2F%2F%3A%2Ftype=dnsISN=29A2367D3BED40D7A5BA3349E8CAA9FDccv=130cnid=374563cco=USct=12

 This is a modal window issue. Any help regarding the question will be highly 
 appreciated!

Hi

It appears that something on your page/modal window is referencing an 
URL http://:/; (or maybe just :/) so your browser bar takes over 
control since that host cannot be found. Maybe check the source of that 
page for such an URL...

Matt


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



Re: Session expired drives me mad!

2010-03-08 Thread Martin Grigorov
On Mon, 2010-03-08 at 17:36 +0200, Martin Asenov wrote:
 Hello everyone!
 
 The session expired problem really drives me mad, because it's been couple of 
 months or so since it started bothering me. Please advice me on what to do, 
 because I'm despaired. Wicket tries to serialize every single class in my 
 opinion.
 
 I enabled the DEBUG of Wicket and messages like the following one are 
 flooding the log. Here it is:
 
 08-03-2010 17:30:03,445 ERROR 
 org.apache.wicket.util.lang.Objects.objectToByteArray:1134 - Error 
 serializing object class com.mycompany.myapp.ui.users.Users [object=[Page 
 class = com.mycompany.myapp.ui.users.Users, id = 21, version = 0]]
This is an ERROR! 
You had to see it long time before enabling DEBUG. 
Unless you disable everything but FATALs.

 org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: 
 Unable to serialize class: 
 org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler
 Field hierarchy is:
   21 [class=com.mycompany.myapp.ui.users.Users, path=21]
 private java.lang.Object org.apache.wicket.MarkupContainer.children 
 [class=[Ljava.lang.Object;]
   protected java.lang.Object com.mycompany.myapp.ui.MyFormPanel.model[15] 
 [class=org.apache.wicket.markup.html.WebMarkupContainer, path=21:holder]
 private java.lang.Object org.apache.wicket.MarkupContainer.children 
 [class=[Ljava.lang.Object;]
   private java.lang.Object 
 org.apache.wicket.MarkupContainer.children[0] 
 [class=com.mycompany.myapp.ui.users.Users$2, path=21:holder:view]
 private java.lang.Object 
 org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
   private java.lang.Object 
 org.apache.wicket.MarkupContainer.children[0] 
 [class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1]
 private java.lang.Object 
 org.apache.wicket.MarkupContainer.children 
 [class=org.apache.wicket.markup.repeater.RepeatingView, 
 path=21:holder:view:1:cols]
   private java.lang.Object 
 org.apache.wicket.MarkupContainer.children 
 [class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1:cols:2]
 java.lang.Object org.apache.wicket.Component.data 
 [class=com.mycompany.myapp.ui.users.SortedUsersProvider$1]
   final com.mycompany.myapp.ui.users.SortedUsersProvider 
 com.mycompany.myapp.ui.users.SortedUsersProvider$1.this$0 
 [class=com.mycompany.myapp.ui.users.SortedUsersProvider]
 private com.mycompany.myapp.session.UserContext 
 com.mycompany.myapp.ui.users.SortedUsersProvider.context 
 [class=com.mycompany.myapp.session.UserContext]
   private com.mycompany.myapp.ui.util.Utilities 
 com.mycompany.myapp.session.UserContext.utilities 
 [class=com.mycompany.myapp.ui.util.Utilities]
 private com.mycompany.myapp.admin.ManagementBean 
 com.mycompany.myapp.ui.util.Utilities.domainAndUsersManagement 
 [class=com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a]
   private net.sf.cglib.proxy.MethodInterceptor 
 com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a.CGLIB$CALLBACK_0
  
 [class=org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor]
 private 
 org.springframework.aop.framework.AdvisedSupport 
 org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.advised
  [class=org.springframework.aop.framework.ProxyFactory]
   private org.springframework.aop.Advisor[] 
 org.springframework.aop.framework.AdvisedSupport.advisorArray 
 [class=[Lorg.springframework.aop.Advisor;]
 private org.springframework.aop.Advisor[] 
 org.springframework.aop.framework.AdvisedSupport.advisorArray[0] 
 [class=org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor]
   private org.aopalliance.aop.Advice 
 org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.advice 
 [class=org.springframework.transaction.interceptor.TransactionInterceptor]
 private org.aopalliance.aop.Advice 
 org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.advice[write:1]
  [class=org.springframework.orm.jpa.JpaTransactionManager]
   private 
 javax.persistence.EntityManagerFactory 
 org.springframework.orm.jpa.JpaTransactionManager.entityManagerFactory 
 [class=$Proxy29]
 protected 
 java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h 
 [class=org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler]
  - field that is not serializable
 
 Thank you in advance!
 
 Regards,
 Martin
 




RE: Session expired drives me mad!

2010-03-08 Thread Martin Asenov
Well I did see it, but not in that deep detail like this...

Regards,
Martin

-Original Message-
From: Martin Grigorov [mailto:mcgreg...@e-card.bg] 
Sent: Monday, March 08, 2010 6:25 PM
To: users@wicket.apache.org
Subject: Re: Session expired drives me mad!

On Mon, 2010-03-08 at 17:36 +0200, Martin Asenov wrote:
 Hello everyone!
 
 The session expired problem really drives me mad, because it's been couple of 
 months or so since it started bothering me. Please advice me on what to do, 
 because I'm despaired. Wicket tries to serialize every single class in my 
 opinion.
 
 I enabled the DEBUG of Wicket and messages like the following one are 
 flooding the log. Here it is:
 
 08-03-2010 17:30:03,445 ERROR 
 org.apache.wicket.util.lang.Objects.objectToByteArray:1134 - Error 
 serializing object class com.mycompany.myapp.ui.users.Users [object=[Page 
 class = com.mycompany.myapp.ui.users.Users, id = 21, version = 0]]
This is an ERROR! 
You had to see it long time before enabling DEBUG. 
Unless you disable everything but FATALs.

 org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: 
 Unable to serialize class: 
 org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler
 Field hierarchy is:
   21 [class=com.mycompany.myapp.ui.users.Users, path=21]
 private java.lang.Object org.apache.wicket.MarkupContainer.children 
 [class=[Ljava.lang.Object;]
   protected java.lang.Object com.mycompany.myapp.ui.MyFormPanel.model[15] 
 [class=org.apache.wicket.markup.html.WebMarkupContainer, path=21:holder]
 private java.lang.Object org.apache.wicket.MarkupContainer.children 
 [class=[Ljava.lang.Object;]
   private java.lang.Object 
 org.apache.wicket.MarkupContainer.children[0] 
 [class=com.mycompany.myapp.ui.users.Users$2, path=21:holder:view]
 private java.lang.Object 
 org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
   private java.lang.Object 
 org.apache.wicket.MarkupContainer.children[0] 
 [class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1]
 private java.lang.Object 
 org.apache.wicket.MarkupContainer.children 
 [class=org.apache.wicket.markup.repeater.RepeatingView, 
 path=21:holder:view:1:cols]
   private java.lang.Object 
 org.apache.wicket.MarkupContainer.children 
 [class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1:cols:2]
 java.lang.Object org.apache.wicket.Component.data 
 [class=com.mycompany.myapp.ui.users.SortedUsersProvider$1]
   final com.mycompany.myapp.ui.users.SortedUsersProvider 
 com.mycompany.myapp.ui.users.SortedUsersProvider$1.this$0 
 [class=com.mycompany.myapp.ui.users.SortedUsersProvider]
 private com.mycompany.myapp.session.UserContext 
 com.mycompany.myapp.ui.users.SortedUsersProvider.context 
 [class=com.mycompany.myapp.session.UserContext]
   private com.mycompany.myapp.ui.util.Utilities 
 com.mycompany.myapp.session.UserContext.utilities 
 [class=com.mycompany.myapp.ui.util.Utilities]
 private com.mycompany.myapp.admin.ManagementBean 
 com.mycompany.myapp.ui.util.Utilities.domainAndUsersManagement 
 [class=com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a]
   private net.sf.cglib.proxy.MethodInterceptor 
 com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a.CGLIB$CALLBACK_0
  
 [class=org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor]
 private 
 org.springframework.aop.framework.AdvisedSupport 
 org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.advised
  [class=org.springframework.aop.framework.ProxyFactory]
   private org.springframework.aop.Advisor[] 
 org.springframework.aop.framework.AdvisedSupport.advisorArray 
 [class=[Lorg.springframework.aop.Advisor;]
 private org.springframework.aop.Advisor[] 
 org.springframework.aop.framework.AdvisedSupport.advisorArray[0] 
 [class=org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor]
   private org.aopalliance.aop.Advice 
 org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.advice 
 [class=org.springframework.transaction.interceptor.TransactionInterceptor]
 private org.aopalliance.aop.Advice 
 org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.advice[write:1]
  [class=org.springframework.orm.jpa.JpaTransactionManager]
   private 
 javax.persistence.EntityManagerFactory 
 org.springframework.orm.jpa.JpaTransactionManager.entityManagerFactory 
 [class=$Proxy29]
 protected 
 

Component Instantiation Listener Problem

2010-03-08 Thread Ben Tilford
I ran into an issue with a Component Instantiation Listener because the
listener is notified before setModelImpl is called. Is this the intended
behavior? It limits what you can do in your listener quite a bit.


Re: Wicketstuff-Push without Dojo?

2010-03-08 Thread Rodolfo Hansen
Hi Richard, Your ideas seam very interesting.. I haven't had alot of time to
work on the project and am currently the only developer as the initial team
isn't responding. I will checkout your patch, and would love to continue
discussing changes with you.

On Mon, Mar 8, 2010 at 11:03 AM, Richard Wilkinson 
richardjohnwilkin...@googlemail.com wrote:

 Hi again,

 Attached is a patch (zipped) to be applied to the push directory
 inside the push-parent directory under svn [1].  Any feedback or
 comments would be welcome.

 [1] -
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/push-parent

 -
 Regards - Richard Wilkinson
 Developer,
 jWeekend: OO  Java Technologies - Development and Training
 http://jWeekend.com

 On 8 March 2010 14:37, Richard Wilkinson
 richardjohnwilkin...@googlemail.com wrote:
  Hi,
 
  We have been working on the wicketstuff-push project offline; so far
  we have modified the code to run using jQuery (using wiQuery [1]) with
  the latest version of the cometd javascript, and fixed a few bugs /
  made some improvements. For example the current code wasn't as
  efficient as it could have been when you subscribe to more than one
  event per page.  We also have added a 'push model', where when you
  update the contents of a components model, that component is updated
  as usual with wicket ajax, and some helper code for working with
  wiQuery.
 
  All of this code is work-in-progress, but we want to start a dialog
  with the main developer(s) of the push project to see if we can
  contribute our work back to the community.
 
  We also experimented with using atmosphere [2] which allows cometd to
  work on more servlet containers than just jetty, but while the
  integration worked fine, there is currently a bug in the atmosphere
  code which means that it doesn't work with the current version of the
  cometd servlet [3].
 
  A version based only on wicket ajax sounds interesting, if you look at
  the jQuery binding, most of the actual work is done by the
  framework-agnostic cometd.js file, with jQuery providing the ajax
  mechanism and the JSON evaluation, however I know that the wicket ajax
  backend is being re-written in 1.5, so any work done on the 1.4 branch
  would be relatively short lived.
 
  I will try and get together a patch with our work in it for the push
  project and post it here, or I could maybe branch the main push-parent
  in the wicketstuff svn.
 
  [1] - http://code.google.com/p/wiquery/
  [2] - https://atmosphere.dev.java.net/
  [3] - http://n2.nabble.com/Bayuex-problems-tt4633855.html
 
  --
  Regards - Richard Wilkinson
  Developer,
  jWeekend: OO  Java Technologies - Development and Training
  http://jWeekend.com
 
  On 8 March 2010 13:36, Martin U ufer.mar...@googlemail.com wrote:
  Hi Folks,
 
  i need some COMETD or something equal implemention in my
 web-application. So
  i found wickestuff-push. But as far as is see, it users dojo to do the
  client-side magic.
 
  I dont want to blow up my application more as it still is ;) so i want
 ask
  for an wicket + comet workaround with jQuery or with wicket-own
 javascript
  functionality.
 
 
  thanks in advance for any hint.
 
 
  - Martin
 
 


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




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


Re: Support for serialization debugging.

2010-03-08 Thread Igor Vaynberg
seems like it should be running.

AbstractPageStore:203 serializes the page by calling
Objects.objectToByteArray() which by default uses
DefaultObjectStreamFactory which in turn runs your object through the
SerializableChecker if an exception occurs, see
IObjectStreamFactory:125

so unless you installed your own objectoutputstreamfactory or if you
are running on a non-sun jdk (serializable checker hacks stuff using
reflection) you should be using it...

-igor


On Mon, Mar 8, 2010 at 4:41 AM, Sergey Olefir solf.li...@gmail.com wrote:
 Hi,

 what is the current 'proper' way to debug serialization issues in Wicket?

 My web search led me to two things:
 - Wicket contains SerializableChecker class whose explicit purpose is
 to assist in tracking down serialization issues.
 - At some point it seems that in development mode Wicket used to
 serialize pages on each request (so that you'll catch your
 serialization issues early).

 However right now it seems that Wicket is using
 SecondLevelCacheSessionStore for serialization purposes -- and the
 implementation does not make use of SerializableChecker.

 Also current Wicket apparently does not serialize pages on each
 request in development mode (at least not by default).


 So with the current Wicket is there a way to force page serialization
 on each request and to enable serialization debugging via
 SerializableChecker or something else?

 I'm asking because to track down my serialization issue recently I had
 to basically copy-paste SecondLevelCacheSessionStore and manually add
 SerializableChecker invocation to track it down. Plus the error only
 became apparent when Tomcat was shutdown with 'proper' sessions still
 in memory.

 -
 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: Component Instantiation Listener Problem

2010-03-08 Thread Igor Vaynberg
yes it is intended. you are not really meant to mock with the class
because the listener is called before the constructors of your
subclasses have finished.

there are listeners you can use that are called in onbeforerender of
components where you can mock with the actual component instance, not
just the class.

-igor


On Mon, Mar 8, 2010 at 8:36 AM, Ben Tilford bentilf...@gmail.com wrote:
 I ran into an issue with a Component Instantiation Listener because the
 listener is notified before setModelImpl is called. Is this the intended
 behavior? It limits what you can do in your listener quite a bit.


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



Re: Guice LazyInitProxyFactory : NPE when calling, first, public fields

2010-03-08 Thread Uwe Schäfer

Uwe Schäfer schrieb:
To me this does not feel like necessarily the right behaviour. I do not 
see a tremendous advantage in this resolving being done lazily.


for the record: we could change to doing it non-lazy, but it does not 
solve this particular issue, as the value of public field is constant, 
depending on the point in time where the CGLib-subclassing happened.


and as we cannot intercept field access...

cu uwe


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



Re: Clear feedback panel

2010-03-08 Thread Riyad Kalla
Anna,

I think it's in the Request scope, I just don't know where to get that list
set from to clear it.

Anybody else?

-R

On Mon, Mar 8, 2010 at 9:11 AM, Anna Simbirtsev asimbirt...@gmail.comwrote:

 I think my feedback messages are not in Session, when I print

 FeedbackMessages me = Session.get().getFeedbackMessages();

 System.out.println(size:  + me.size());

 it returns 0.

 On Sat, Mar 6, 2010 at 9:16 AM, Riyad Kalla rka...@gmail.com wrote:

  I thought the feedback messages were stored in the request by default? At
  least I remember a thread from a week and a half ago about a person doing
 a
  redirect and loosing his messages so he had to manually switch to saving
  them in the Session...
 
  On Fri, Mar 5, 2010 at 9:12 PM, Martin Makundi 
  martin.maku...@koodaripalvelut.com wrote:
 
   Maybe you are not really replacing the feedback using ajax. Look at
   wicket-debug popup.  Do you hae
   feedbackPanel.setOutputMarkupId(true);?
  
   **
   Martin
  
   2010/3/5 Anna Simbirtsev asimbirt...@gmail.com:
It does not work for some reason.
   
Session.get().cleanupFeedbackMessages();
target.addComponent(feedback);
   
The message is still visible.
   
On Fri, Mar 5, 2010 at 4:29 PM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:
   
session.cleanupfeedbackmessages.
   
2010/3/5 Anna Simbirtsev asimbirt...@gmail.com:
 Hi,

 How can I clear FeedbackPanel messages?
 I want to remove them from the page using target.addComponent(f);
   where f
is
 FeedbackPanel.
 I just don't know how to set messages to null.

 Thanks,
 Anna

   
   
 -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
   
   
--
Anna Simbirtsev
(416) 729-7331
   
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 



 --
 Anna Simbirtsev
 (416) 729-7331



component .... not found on page for a Link colun in the Datatable after self refresh using the AjaxSelfUpdatingTimerBehavior

2010-03-08 Thread Apollo Apollo11
Hi all,

I create a customized column with a Link component with an Icon, which it
will popup a new page for editding after click on it, for the Wicket
Datatable.

*public* IconLinkPanel( *final* Item item, *final* String componentId, *
final* IModel model) {*{*

*final* Link link = *new* Link(iconLink) {

@Override

*public* *void* onClick() {

PageParameters params = *new* PageParameters();

params.put(object, theModel.getObject());

EditorPopupPage page = *new *EditorPopupPage(params ) ;

setRedirect(*true*);

setResponsePage(page);

};

link.setPopupSettings(getPopupSettings());

Image img = *new* Image(image, getImageResourceReference());

*if* (getAltString() != *null*  !getAltString().trim().isEmpty()) {

img.add(*new* SimpleAttributeModifier(alt, getAltString()));

}

*if* (getTitleString() != *null*  !getTitleString().trim().isEmpty()) {

img.add(*new* SimpleAttributeModifier(title, getTitleString()));

}

link.add(img);

add(link);

}


the Datatable itself I added AjaxSelfUpdatingTimerBehavior to refresh the
table every 5 seconds.

I've encountered a Intermittent internal server error whick when clicking on
the link. the log shows

Caused by: org.apache.wicket.WicketRuntimeException: component
homePage:panel:table:rows:32:cells:14:cell:link not found on page
com.apollo.fo.web.HomePage[id = 0], listener interface =
[RequestListenerInterface name=ILinkListener, method=public abstract void
org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()]

at
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:426)

at
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:471)

at
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:144)



I believe this issue is related to the datatable refreshing every 5 seconds.


Is everyone have the same issue? If so, any solution for this?

Your feedback are appreciated!


Re: jWicket release 0.5.0

2010-03-08 Thread Ernesto Reinaldo Barreiro
Hi Stefan,

My I ask what was your solution to the DD problem? Added a patch to jquery?
Was this related to [1] and using jquery 1.4.2, independently of your
project, and still find this issue.

Best,

Ernesto

References,

1-http://dev.jquery.com/ticket/4996

http://dev.jquery.com/ticket/4996

On Fri, Feb 26, 2010 at 2:57 PM, Stefan Lindner lind...@visionet.de wrote:

 I have committed jWicket version 0.5.0 to wicketstuff

 Changes:
 - jQuery update to Version 1.4.2
 - jQuery UI update to 1.8RC2
 - drag/drop/resize improvements to work in IE 6/7/8 after AJAX update or
 in LazyLoad panels
 - drag/drop/resize improvements for less footprint in HTML, smaller js
 code generation
 - Effects rewritten completely, now covering all effects
 - Effects now support a chain of multiple effects

 Known Issues
 - Example application not very attractive
 - Example applicatioin contains some debugging code

 Let me know if someone needs prebuild jar files.

 Stefan

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




RE: jWicket release 0.5.0

2010-03-08 Thread Stefan Lindner
Hi Ernesto,

yes, I added a patch to jquery1.4.2.js. The DD problem is relatet to the 
ticket you cited (4996). After a DOM replacement IE is unable to calculate it's 
bounding rect in the way jQuery does and IE then throws an exception that stops 
the re-registration of the behavior.
The problem seems to be present since jQuery 1.3 and many related bus are open 
in jQuery's trac. I don't know why they don't fix the problem.
So I put together some hints and proposals and modified jQuery.js. If you need 
the patch try to check it out from wickststuff trunk or contect me again.

Good luck!
Stefan

-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Gesendet: Montag, 8. März 2010 19:07
An: users@wicket.apache.org
Betreff: Re: jWicket release 0.5.0

Hi Stefan,

My I ask what was your solution to the DD problem? Added a patch to jquery?
Was this related to [1] and using jquery 1.4.2, independently of your
project, and still find this issue.

Best,

Ernesto

References,

1-http://dev.jquery.com/ticket/4996

http://dev.jquery.com/ticket/4996

On Fri, Feb 26, 2010 at 2:57 PM, Stefan Lindner lind...@visionet.de wrote:

 I have committed jWicket version 0.5.0 to wicketstuff

 Changes:
 - jQuery update to Version 1.4.2
 - jQuery UI update to 1.8RC2
 - drag/drop/resize improvements to work in IE 6/7/8 after AJAX update or
 in LazyLoad panels
 - drag/drop/resize improvements for less footprint in HTML, smaller js
 code generation
 - Effects rewritten completely, now covering all effects
 - Effects now support a chain of multiple effects

 Known Issues
 - Example application not very attractive
 - Example applicatioin contains some debugging code

 Let me know if someone needs prebuild jar files.

 Stefan

 -
 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



URL Encoding works different for Home Page and Bookmarkable pages

2010-03-08 Thread Neil Curzon
Hi users!

I've been testing out the CryptedUrlWebRequestCodingStrategy for our wicket
app in 1.4.3 (yeah, soon to be upgraded..). We have two sites in Wicket. I
changed them both to use said CryptedUrlWebRequestCodingStrategy, and I
noticed that the login form post action only got encoded for one of them.

I stepped through the code and noticed that the difference was that in one
of our apps (1), the Login page was set as the Home Page, and the Index page
was mounted at /home. In the other app (2), the Index page was set as the
Home Page, and the Login page was mounted at /login. In encode() in
CryptedUrlWebRequestCodingStrategy for (1), the call to encode() in the
wrapped defaultStrategy returns
?wicket:bookmarkablePage=:com.acme.project.wicket.pages.section.FooLoginwicket:interface=:1:loginForm::IFormSubmitListener::
, and in (2) the call returns
login/wicket:interface/:2:componentId:loginForm::IFormSubmitListener:: . The
subsequent code then refuses to do any encoding unless there's a ? in the
URL, which for (2), there isn't.

Is this behavior intentional / necessary? It feels kinda fragile, and I'd
really rather not accidentally expose internals based on changing around
some bookmarkable links, or slightly reorganizing the app. Or, is there some
way to reliably force the URL for the (2) to have a ? in it?

Any help would be appreciated!
Thanks,
Neil


Re: jWicket release 0.5.0

2010-03-08 Thread Ernesto Reinaldo Barreiro
Hi Stefan,

Thanks very much for the info! I'll check out your fix. I has tested it and
this only happens with droppables (only draggables is not an issue).

I had experienced similar issues with other DD libraries and IE: before I
was using YUI and I had some issues with AJAX replacements and DD  But I
could get around it generating unique IDs for every AJAX replacement. This
trick didn't work for jquery.

Thanks again,

Best,

Ernesto

On Mon, Mar 8, 2010 at 7:17 PM, Stefan Lindner lind...@visionet.de wrote:

 Hi Ernesto,

 yes, I added a patch to jquery1.4.2.js. The DD problem is relatet to the
 ticket you cited (4996). After a DOM replacement IE is unable to calculate
 it's bounding rect in the way jQuery does and IE then throws an exception
 that stops the re-registration of the behavior.
 The problem seems to be present since jQuery 1.3 and many related bus are
 open in jQuery's trac. I don't know why they don't fix the problem.
 So I put together some hints and proposals and modified jQuery.js. If you
 need the patch try to check it out from wickststuff trunk or contect me
 again.

 Good luck!
 Stefan

 -Ursprüngliche Nachricht-
 Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
 Gesendet: Montag, 8. März 2010 19:07
 An: users@wicket.apache.org
 Betreff: Re: jWicket release 0.5.0

 Hi Stefan,

 My I ask what was your solution to the DD problem? Added a patch to
 jquery?
 Was this related to [1] and using jquery 1.4.2, independently of your
 project, and still find this issue.

 Best,

 Ernesto

 References,

 1-http://dev.jquery.com/ticket/4996

 http://dev.jquery.com/ticket/4996

 On Fri, Feb 26, 2010 at 2:57 PM, Stefan Lindner lind...@visionet.de
 wrote:

  I have committed jWicket version 0.5.0 to wicketstuff
 
  Changes:
  - jQuery update to Version 1.4.2
  - jQuery UI update to 1.8RC2
  - drag/drop/resize improvements to work in IE 6/7/8 after AJAX update or
  in LazyLoad panels
  - drag/drop/resize improvements for less footprint in HTML, smaller js
  code generation
  - Effects rewritten completely, now covering all effects
  - Effects now support a chain of multiple effects
 
  Known Issues
  - Example application not very attractive
  - Example applicatioin contains some debugging code
 
  Let me know if someone needs prebuild jar files.
 
  Stefan
 
  -
  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: jWicket release 0.5.0

2010-03-08 Thread bht
Thanks for the link to the issue.

Re: I don't know why they don't fix the problem.

I think the jQuery developer asks for a testcase. No testcase was
supplied, so I am not surprised that even after 7 months, nothing has
been done.

But when there is a testcase, and when even the offending line of code
is identified in jQuery and it is clear that it is a jQuery bug then
the author of jQuery likes to close issues with status WONTFIX
apparently with the purpose to hide them from the community. Please
refer to

http://dev.jquery.com/ticket/5743 where jQuery updates the DOM during
a call that is supposed to only get the dimensions of an element.

Regards

Bernard


On Mon, 8 Mar 2010 19:17:54 +0100, you wrote:

Hi Ernesto,

yes, I added a patch to jquery1.4.2.js. The DD problem is relatet to the 
ticket you cited (4996). After a DOM replacement IE is unable to calculate 
it's bounding rect in the way jQuery does and IE then throws an exception that 
stops the re-registration of the behavior.
The problem seems to be present since jQuery 1.3 and many related bus are open 
in jQuery's trac. I don't know why they don't fix the problem.
So I put together some hints and proposals and modified jQuery.js. If you need 
the patch try to check it out from wickststuff trunk or contect me again.

Good luck!
Stefan

-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Gesendet: Montag, 8. März 2010 19:07
An: users@wicket.apache.org
Betreff: Re: jWicket release 0.5.0

Hi Stefan,

My I ask what was your solution to the DD problem? Added a patch to jquery?
Was this related to [1] and using jquery 1.4.2, independently of your
project, and still find this issue.

Best,

Ernesto

References,

1-http://dev.jquery.com/ticket/4996

http://dev.jquery.com/ticket/4996

On Fri, Feb 26, 2010 at 2:57 PM, Stefan Lindner lind...@visionet.de wrote:

 I have committed jWicket version 0.5.0 to wicketstuff

 Changes:
 - jQuery update to Version 1.4.2
 - jQuery UI update to 1.8RC2
 - drag/drop/resize improvements to work in IE 6/7/8 after AJAX update or
 in LazyLoad panels
 - drag/drop/resize improvements for less footprint in HTML, smaller js
 code generation
 - Effects rewritten completely, now covering all effects
 - Effects now support a chain of multiple effects

 Known Issues
 - Example application not very attractive
 - Example applicatioin contains some debugging code

 Let me know if someone needs prebuild jar files.

 Stefan

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



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


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



RE: jWicket release 0.5.0

2010-03-08 Thread Stefan Lindner
Hi Bernard,

there is a testcase in the attachments:

$(document.createElement('div')).offset();

It's a real simple testcase.

Stefan

-Ursprüngliche Nachricht-
Von: b...@actrix.gen.nz [mailto:b...@actrix.gen.nz] 
Gesendet: Montag, 8. März 2010 20:23
An: users@wicket.apache.org
Betreff: Re: jWicket release 0.5.0

Thanks for the link to the issue.

Re: I don't know why they don't fix the problem.

I think the jQuery developer asks for a testcase. No testcase was
supplied, so I am not surprised that even after 7 months, nothing has
been done.

But when there is a testcase, and when even the offending line of code
is identified in jQuery and it is clear that it is a jQuery bug then
the author of jQuery likes to close issues with status WONTFIX
apparently with the purpose to hide them from the community. Please
refer to

http://dev.jquery.com/ticket/5743 where jQuery updates the DOM during
a call that is supposed to only get the dimensions of an element.

Regards

Bernard


On Mon, 8 Mar 2010 19:17:54 +0100, you wrote:

Hi Ernesto,

yes, I added a patch to jquery1.4.2.js. The DD problem is relatet to the 
ticket you cited (4996). After a DOM replacement IE is unable to calculate 
it's bounding rect in the way jQuery does and IE then throws an exception that 
stops the re-registration of the behavior.
The problem seems to be present since jQuery 1.3 and many related bus are open 
in jQuery's trac. I don't know why they don't fix the problem.
So I put together some hints and proposals and modified jQuery.js. If you need 
the patch try to check it out from wickststuff trunk or contect me again.

Good luck!
Stefan

-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Gesendet: Montag, 8. März 2010 19:07
An: users@wicket.apache.org
Betreff: Re: jWicket release 0.5.0

Hi Stefan,

My I ask what was your solution to the DD problem? Added a patch to jquery?
Was this related to [1] and using jquery 1.4.2, independently of your
project, and still find this issue.

Best,

Ernesto

References,

1-http://dev.jquery.com/ticket/4996

http://dev.jquery.com/ticket/4996

On Fri, Feb 26, 2010 at 2:57 PM, Stefan Lindner lind...@visionet.de wrote:

 I have committed jWicket version 0.5.0 to wicketstuff

 Changes:
 - jQuery update to Version 1.4.2
 - jQuery UI update to 1.8RC2
 - drag/drop/resize improvements to work in IE 6/7/8 after AJAX update or
 in LazyLoad panels
 - drag/drop/resize improvements for less footprint in HTML, smaller js
 code generation
 - Effects rewritten completely, now covering all effects
 - Effects now support a chain of multiple effects

 Known Issues
 - Example application not very attractive
 - Example applicatioin contains some debugging code

 Let me know if someone needs prebuild jar files.

 Stefan

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



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


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: 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: jWicket release 0.5.0

2010-03-08 Thread bht
I don't know, in the header I read: Needs:  Test Case
The bug still has status new, neither confirmed nor assigned.

I am referring to http://dev.jquery.com/ticket/4996

What am I missing? They might need a complete standalone page,
preferably zipped that loads jquery.js from the web and displays an
error message. You might get some progress if you do that. At least
you put the ball back into their court. I did this more than once but
it did not help. Nevertheless at least I know what to expect.

The outcome could be that a bug needs to be filed against IE. But most
importantly the bug needs to be fixed in jQuery because jQuery is
crosss-platform and jQuery's existence is based on eliminating these
quirks.


On Mon, 8 Mar 2010 20:44:22 +0100, you wrote:

Hi Bernard,

there is a testcase in the attachments:

   $(document.createElement('div')).offset();

It's a real simple testcase.

Stefan

-Ursprüngliche Nachricht-
Von: b...@actrix.gen.nz [mailto:b...@actrix.gen.nz] 
Gesendet: Montag, 8. März 2010 20:23
An: users@wicket.apache.org
Betreff: Re: jWicket release 0.5.0

Thanks for the link to the issue.

Re: I don't know why they don't fix the problem.

I think the jQuery developer asks for a testcase. No testcase was
supplied, so I am not surprised that even after 7 months, nothing has
been done.

But when there is a testcase, and when even the offending line of code
is identified in jQuery and it is clear that it is a jQuery bug then
the author of jQuery likes to close issues with status WONTFIX
apparently with the purpose to hide them from the community. Please
refer to

http://dev.jquery.com/ticket/5743 where jQuery updates the DOM during
a call that is supposed to only get the dimensions of an element.

Regards

Bernard


On Mon, 8 Mar 2010 19:17:54 +0100, you wrote:

Hi Ernesto,

yes, I added a patch to jquery1.4.2.js. The DD problem is relatet to the 
ticket you cited (4996). After a DOM replacement IE is unable to calculate 
it's bounding rect in the way jQuery does and IE then throws an exception 
that stops the re-registration of the behavior.
The problem seems to be present since jQuery 1.3 and many related bus are 
open in jQuery's trac. I don't know why they don't fix the problem.
So I put together some hints and proposals and modified jQuery.js. If you 
need the patch try to check it out from wickststuff trunk or contect me again.

Good luck!
Stefan

-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Gesendet: Montag, 8. März 2010 19:07
An: users@wicket.apache.org
Betreff: Re: jWicket release 0.5.0

Hi Stefan,

My I ask what was your solution to the DD problem? Added a patch to jquery?
Was this related to [1] and using jquery 1.4.2, independently of your
project, and still find this issue.

Best,

Ernesto

References,

1-http://dev.jquery.com/ticket/4996

http://dev.jquery.com/ticket/4996

On Fri, Feb 26, 2010 at 2:57 PM, Stefan Lindner lind...@visionet.de wrote:

 I have committed jWicket version 0.5.0 to wicketstuff

 Changes:
 - jQuery update to Version 1.4.2
 - jQuery UI update to 1.8RC2
 - drag/drop/resize improvements to work in IE 6/7/8 after AJAX update or
 in LazyLoad panels
 - drag/drop/resize improvements for less footprint in HTML, smaller js
 code generation
 - Effects rewritten completely, now covering all effects
 - Effects now support a chain of multiple effects

 Known Issues
 - Example application not very attractive
 - Example applicatioin contains some debugging code

 Let me know if someone needs prebuild jar files.

 Stefan

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



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


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


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


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



Create a label in onUpdate method using ajax (AjaxFormComponentUpdatingBehavior)

2010-03-08 Thread Gustavo Henrique
Hi guys!

I'm trying create a label contain an error message after ajax request, but
no success. I can't use FeedbackPanel because it changes the design.
So I did:

final Label label = new Label(postalCodeNotExisti);
label.setOutputMarkupId(true);

final RequiredTextField postalCodeComplement = (RequiredTextField) new
RequiredTextField(individualAddresses.postalCodeComplement,
new PropertyModel(postalCode, postalCodeComplement))
.add(StringValidator.exactLength(3))
.add(new AjaxFormComponentUpdatingBehavior(onblur) {

   @Override
   protected void onUpdate(AjaxRequestTarget target) {
   RequestCycle requestCycle = RequestCycle.get();
   String postalCode =
requestCycle.getRequest().getParameter(postalCode);
   target.addComponent(getFormComponent());
   target.addComponent(label);
   }
}).setOutputMarkupId(true);

add(postalCodeComplement);


Not happens! No errors and no label!
Why?

Thanks!


Re: URL Encoding works different for Home Page and Bookmarkable pages

2010-03-08 Thread Neil Curzon
Second question, I'm wondering what the mentality of encoding stateless
stuff is, at all. The CryptedUrlWebRequestCodingStrategy seems to use a
session-id and random UUID combination to crypt the url. Doesn't this
automatically make all stateless URLs stateful since they can't decrypt
without the key from the session?

If so, how might I go about encrypting the URLs from my login page in such a
way that it can't expire?

On Mon, Mar 8, 2010 at 2:10 PM, Neil Curzon neil.cur...@gmail.com wrote:

 Hi users!

 I've been testing out the CryptedUrlWebRequestCodingStrategy for our wicket
 app in 1.4.3 (yeah, soon to be upgraded..). We have two sites in Wicket. I
 changed them both to use said CryptedUrlWebRequestCodingStrategy, and I
 noticed that the login form post action only got encoded for one of them.

 I stepped through the code and noticed that the difference was that in one
 of our apps (1), the Login page was set as the Home Page, and the Index page
 was mounted at /home. In the other app (2), the Index page was set as the
 Home Page, and the Login page was mounted at /login. In encode() in
 CryptedUrlWebRequestCodingStrategy for (1), the call to encode() in the
 wrapped defaultStrategy returns
 ?wicket:bookmarkablePage=:com.acme.project.wicket.pages.section.FooLoginwicket:interface=:1:loginForm::IFormSubmitListener::
 , and in (2) the call returns
 login/wicket:interface/:2:componentId:loginForm::IFormSubmitListener:: . The
 subsequent code then refuses to do any encoding unless there's a ? in the
 URL, which for (2), there isn't.

 Is this behavior intentional / necessary? It feels kinda fragile, and I'd
 really rather not accidentally expose internals based on changing around
 some bookmarkable links, or slightly reorganizing the app. Or, is there some
 way to reliably force the URL for the (2) to have a ? in it?

 Any help would be appreciated!
 Thanks,
 Neil



Re: URL Encoding works different for Home Page and Bookmarkable pages

2010-03-08 Thread Igor Vaynberg
afair the strategy is meant to preserve bookmarkable url because those
are your entrypoints and are not meant to be encoded.

if you mount your login page with querystringurlcodingstrategy instead
of the default then the url
login/wicket:interface/:2:componentId:loginForm::IFormSubmitListener::
will be encoded with the normal query string and crypto will work.

-igor

On Mon, Mar 8, 2010 at 11:10 AM, Neil Curzon neil.cur...@gmail.com wrote:
 Hi users!

 I've been testing out the CryptedUrlWebRequestCodingStrategy for our wicket
 app in 1.4.3 (yeah, soon to be upgraded..). We have two sites in Wicket. I
 changed them both to use said CryptedUrlWebRequestCodingStrategy, and I
 noticed that the login form post action only got encoded for one of them.

 I stepped through the code and noticed that the difference was that in one
 of our apps (1), the Login page was set as the Home Page, and the Index page
 was mounted at /home. In the other app (2), the Index page was set as the
 Home Page, and the Login page was mounted at /login. In encode() in
 CryptedUrlWebRequestCodingStrategy for (1), the call to encode() in the
 wrapped defaultStrategy returns
 ?wicket:bookmarkablePage=:com.acme.project.wicket.pages.section.FooLoginwicket:interface=:1:loginForm::IFormSubmitListener::
 , and in (2) the call returns
 login/wicket:interface/:2:componentId:loginForm::IFormSubmitListener:: . The
 subsequent code then refuses to do any encoding unless there's a ? in the
 URL, which for (2), there isn't.

 Is this behavior intentional / necessary? It feels kinda fragile, and I'd
 really rather not accidentally expose internals based on changing around
 some bookmarkable links, or slightly reorganizing the app. Or, is there some
 way to reliably force the URL for the (2) to have a ? in it?

 Any help would be appreciated!
 Thanks,
 Neil


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



ModalWindow form, autocomplete, and default button.

2010-03-08 Thread Julian Sinai
Hi,


I'm having some trouble with modal forms. As advised by Matej in this post: 
http://markmail.org/thread/kmrsg2kvywpyf5dh, I am nesting my modal form inside 
another form. That works fine, but I now have two other problems: because 
Form.onComponentTag() rewrites my inner form tag as a div, my 
autocomplete=off attribute has no effect, and the default button that I set 
has no effect. How can I fix these two things?

I'm using Wicket 1.4.0.

If someone can help, I'd appreciate it.

Thanks,
Julian

Don't increment the Session.pageIdCounter for stateless pages?

2010-03-08 Thread Martin Grotzke
Hi,

the Page.init(PageMap) invokes setNextAvailableId(), which invokes
getSession().nextPageId() if isPageIdUniquePerSession is set.

getSession().nextPageId() modifies the Session.pageIdCounter.

When I have a session and afterwards access a stateless page, the
Session.pageIdCounter is the only data that is changed in the session
AFAICS, everything else is the same as in the request before.

Is it possible _not_ to modify the Session.pageIdCounter if the page is
really stateless (or just don't invoke Page.setNextAvailableId())?

I'm interested in this, as I'm just implementing a feature for the
memcached-session-manager ([1], memcached based session replication),
which checks if session data has changed and replicates sessions only if
this is provided. If session data did not change, the replication is
omitted. Therefore, if the Session.pageIdCounter would be left unchanged
for stateless pages, this would allow to make use of this feature in
wicket apps.

Thanx  cheers,
Martin


[1] http://code.google.com/p/memcached-session-manager/




signature.asc
Description: This is a digitally signed message part


Mootools Clashes With wicket-event.js

2010-03-08 Thread Ayodeji Aladejebi
My mootools.js scripts wont work because of
resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
What do i do

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



How to dynamically create wicket label and TextField Component?

2010-03-08 Thread sravan g
Hi all,
Any one have idea about How to dynamically create wicket label and TextField
Component based on other TextField value from Database?

Thanks,
Sravan.


Re: Component Instantiation Listener Problem

2010-03-08 Thread Ben Tilford
Exactly what I needed.

On Mon, Mar 8, 2010 at 12:04 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 yes it is intended. you are not really meant to mock with the class
 because the listener is called before the constructors of your
 subclasses have finished.

 there are listeners you can use that are called in onbeforerender of
 components where you can mock with the actual component instance, not
 just the class.

 -igor


 On Mon, Mar 8, 2010 at 8:36 AM, Ben Tilford bentilf...@gmail.com wrote:
 I ran into an issue with a Component Instantiation Listener because the
 listener is notified before setModelImpl is called. Is this the intended
 behavior? It limits what you can do in your listener quite a bit.


 -
 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 dynamically create wicket label and TextField Component?

2010-03-08 Thread Sigmar Muuga
Just make a div or whatever element and add childs to it in page.

On Tue, Mar 9, 2010 at 5:53 AM, sravan g sravangs...@gmail.com wrote:

 Hi all,
 Any one have idea about How to dynamically create wicket label and
 TextField
 Component based on other TextField value from Database?

 Thanks,
 Sravan.



disable a DropdownChoice item

2010-03-08 Thread Douglas Ferguson
Is there a way to set a DropDown choice option to disabled?

D/


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



Re: jWicket release 0.5.0

2010-03-08 Thread Ernesto Reinaldo Barreiro
 Do you think would it be enough if I provide a wicket quick-start and
instructions on how to get it running and so on? It would be very easy to
create one reproducing the issue on a DD scenario.  Or create a new issues
and link it to the 4996?

Ernesto

On Mon, Mar 8, 2010 at 9:54 PM, b...@actrix.gen.nz wrote:

 I don't know, in the header I read: Needs:  Test Case
 The bug still has status new, neither confirmed nor assigned.

 I am referring to http://dev.jquery.com/ticket/4996

 What am I missing? They might need a complete standalone page,
 preferably zipped that loads jquery.js from the web and displays an
 error message. You might get some progress if you do that. At least
 you put the ball back into their court. I did this more than once but
 it did not help. Nevertheless at least I know what to expect.

 The outcome could be that a bug needs to be filed against IE. But most
 importantly the bug needs to be fixed in jQuery because jQuery is
 crosss-platform and jQuery's existence is based on eliminating these
 quirks.


 On Mon, 8 Mar 2010 20:44:22 +0100, you wrote:

 Hi Bernard,
 
 there is a testcase in the attachments:
 
$(document.createElement('div')).offset();
 
 It's a real simple testcase.
 
 Stefan
 
 -Ursprüngliche Nachricht-
 Von: b...@actrix.gen.nz [mailto:b...@actrix.gen.nz]
 Gesendet: Montag, 8. März 2010 20:23
 An: users@wicket.apache.org
 Betreff: Re: jWicket release 0.5.0
 
 Thanks for the link to the issue.
 
 Re: I don't know why they don't fix the problem.
 
 I think the jQuery developer asks for a testcase. No testcase was
 supplied, so I am not surprised that even after 7 months, nothing has
 been done.
 
 But when there is a testcase, and when even the offending line of code
 is identified in jQuery and it is clear that it is a jQuery bug then
 the author of jQuery likes to close issues with status WONTFIX
 apparently with the purpose to hide them from the community. Please
 refer to
 
 http://dev.jquery.com/ticket/5743 where jQuery updates the DOM during
 a call that is supposed to only get the dimensions of an element.
 
 Regards
 
 Bernard
 
 
 On Mon, 8 Mar 2010 19:17:54 +0100, you wrote:
 
 Hi Ernesto,
 
 yes, I added a patch to jquery1.4.2.js. The DD problem is relatet to the
 ticket you cited (4996). After a DOM replacement IE is unable to calculate
 it's bounding rect in the way jQuery does and IE then throws an exception
 that stops the re-registration of the behavior.
 The problem seems to be present since jQuery 1.3 and many related bus are
 open in jQuery's trac. I don't know why they don't fix the problem.
 So I put together some hints and proposals and modified jQuery.js. If you
 need the patch try to check it out from wickststuff trunk or contect me
 again.
 
 Good luck!
 Stefan
 
 -Ursprüngliche Nachricht-
 Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
 Gesendet: Montag, 8. März 2010 19:07
 An: users@wicket.apache.org
 Betreff: Re: jWicket release 0.5.0
 
 Hi Stefan,
 
 My I ask what was your solution to the DD problem? Added a patch to
 jquery?
 Was this related to [1] and using jquery 1.4.2, independently of your
 project, and still find this issue.
 
 Best,
 
 Ernesto
 
 References,
 
 1-http://dev.jquery.com/ticket/4996
 
 http://dev.jquery.com/ticket/4996
 
 On Fri, Feb 26, 2010 at 2:57 PM, Stefan Lindner lind...@visionet.de
 wrote:
 
  I have committed jWicket version 0.5.0 to wicketstuff
 
  Changes:
  - jQuery update to Version 1.4.2
  - jQuery UI update to 1.8RC2
  - drag/drop/resize improvements to work in IE 6/7/8 after AJAX update
 or
  in LazyLoad panels
  - drag/drop/resize improvements for less footprint in HTML, smaller js
  code generation
  - Effects rewritten completely, now covering all effects
  - Effects now support a chain of multiple effects
 
  Known Issues
  - Example application not very attractive
  - Example applicatioin contains some debugging code
 
  Let me know if someone needs prebuild jar files.
 
  Stefan
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


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



Re: disable a DropdownChoice item

2010-03-08 Thread James Carman
You can have your model for the options be dynamic and have it not
return certain options if they're not enabled

On Tue, Mar 9, 2010 at 12:58 AM, Douglas Ferguson
doug...@douglasferguson.us wrote:
 Is there a way to set a DropDown choice option to disabled?

 D/


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



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



Re: Wicketstuff-Push without Dojo?

2010-03-08 Thread MattyDE

Wow thanks for your contribution.

Iam not very used to use Patches on SVN-Directories. But i'll try my best to
understand how it works ;)

Iam looking for a possibility to run wicketstuff-push without a Jetty
instance to. Prefered Tomcat...

Thanks!



richardjohnwilkinson wrote:
 
 Hi again,
 
 Attached is a patch (zipped) to be applied to the push directory
 inside the push-parent directory under svn [1].  Any feedback or
 comments would be welcome.
 
 [1] -
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/push-parent
 
 -
 Regards - Richard Wilkinson
 Developer,
 jWeekend: OO  Java Technologies - Development and Training
 http://jWeekend.com
 
 On 8 March 2010 14:37, Richard Wilkinson
 richardjohnwilkin...@googlemail.com wrote:
 Hi,

 We have been working on the wicketstuff-push project offline; so far
 we have modified the code to run using jQuery (using wiQuery [1]) with
 the latest version of the cometd javascript, and fixed a few bugs /
 made some improvements. For example the current code wasn't as
 efficient as it could have been when you subscribe to more than one
 event per page.  We also have added a 'push model', where when you
 update the contents of a components model, that component is updated
 as usual with wicket ajax, and some helper code for working with
 wiQuery.

 All of this code is work-in-progress, but we want to start a dialog
 with the main developer(s) of the push project to see if we can
 contribute our work back to the community.

 We also experimented with using atmosphere [2] which allows cometd to
 work on more servlet containers than just jetty, but while the
 integration worked fine, there is currently a bug in the atmosphere
 code which means that it doesn't work with the current version of the
 cometd servlet [3].

 A version based only on wicket ajax sounds interesting, if you look at
 the jQuery binding, most of the actual work is done by the
 framework-agnostic cometd.js file, with jQuery providing the ajax
 mechanism and the JSON evaluation, however I know that the wicket ajax
 backend is being re-written in 1.5, so any work done on the 1.4 branch
 would be relatively short lived.

 I will try and get together a patch with our work in it for the push
 project and post it here, or I could maybe branch the main push-parent
 in the wicketstuff svn.

 [1] - http://code.google.com/p/wiquery/
 [2] - https://atmosphere.dev.java.net/
 [3] - http://n2.nabble.com/Bayuex-problems-tt4633855.html

 --
 Regards - Richard Wilkinson
 Developer,
 jWeekend: OO  Java Technologies - Development and Training
 http://jWeekend.com

 On 8 March 2010 13:36, Martin U ufer.mar...@googlemail.com wrote:
 Hi Folks,

 i need some COMETD or something equal implemention in my
 web-application. So
 i found wickestuff-push. But as far as is see, it users dojo to do the
 client-side magic.

 I dont want to blow up my application more as it still is ;) so i want
 ask
 for an wicket + comet workaround with jQuery or with wicket-own
 javascript
 functionality.


 thanks in advance for any hint.


 - Martin


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

-- 
View this message in context: 
http://old.nabble.com/Wicketstuff-Push-without-Dojo--tp27821316p27832039.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: disable a DropdownChoice item

2010-03-08 Thread Douglas Ferguson
Yeah.. but I want to actually disabled them.

i.e. have a divider that doesn't actually do anything

select
optionfirst one/option
optionsecond one/option
option disabled=disabled-/option
optionothers/option
/select

On Mar 9, 2010, at 12:45 AM, James Carman wrote:

 You can have your model for the options be dynamic and have it not
 return certain options if they're not enabled
 
 On Tue, Mar 9, 2010 at 12:58 AM, Douglas Ferguson
 doug...@douglasferguson.us wrote:
 Is there a way to set a DropDown choice option to disabled?
 
 D/
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


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



Re: disable a DropdownChoice item

2010-03-08 Thread Per Newgro
Do you have a markup problem? Or do you want to modify the markup 
depending on your model values?
In last case try an AttributeModifer which returns disabled=disabled on 
appropriate option model value.


Cheers
Per

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



Re: disable a DropdownChoice item

2010-03-08 Thread Douglas Ferguson
Yeah.. I was thinking I could use an attribute modifier, but how do I get 
access to the actual option to add the attribute modifier to it?

For instance:

List values = Arrays.asList(new String[] {foo, bar, --, more, 
options});
new DropDownChoice(select, new ModelString(null), values);

I want to make sure that  is not selectable.

D/

On Mar 9, 2010, at 1:33 AM, Per Newgro wrote:

 Do you have a markup problem? Or do you want to modify the markup 
 depending on your model values?
 In last case try an AttributeModifer which returns disabled=disabled on 
 appropriate option model value.
 
 Cheers
 Per
 
 -
 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: jWicket release 0.5.0

2010-03-08 Thread bht
Ernesto,

Possibly not enough. I would create a testcase as a web page with no
reference to Wicket as a start.

It is good to avoid any technical distraction because any distraction
causes friction and loss of energy.

You can of course mention that you are a Wicket developer, and give
some context to support your case, even mentioning that this is being
discussed in this group.

If you are 100% sure that your scenario is the same as in 4996, then I
would attach the testcase to that ticket. Otherwise I would open a new
one, without any reference to the old one.

If you are sure about the previous code snippet being not much
different from your attached testcase, then why not mention it,
pointing out that you are just trying to be helpful. You can then ask
what else they need to avoid any further delays.

In case it is the same issue then I would subscribe to the jQuery dev
mailing list (not user mailing list) and notify them that you are
trying to re-start the issue ...

Technically, the issue surprises me from this perspective:

jQuery is fault tolerant in a way that if you run a query that returns
an empty jQuery object and call methods on that empty object, then the
query does not fail. In this case however it fails. I would try to
emphasize this point if possible, concluding that this is in conflict
with jQuery's own apparent design principles.

Regards,

Bernard



On Tue, 9 Mar 2010 07:24:39 +0100, you wrote:

 Do you think would it be enough if I provide a wicket quick-start and
instructions on how to get it running and so on? It would be very easy to
create one reproducing the issue on a DD scenario.  Or create a new issues
and link it to the 4996?

Ernesto

On Mon, Mar 8, 2010 at 9:54 PM, b...@actrix.gen.nz wrote:

 I don't know, in the header I read: Needs:  Test Case
 The bug still has status new, neither confirmed nor assigned.

 I am referring to http://dev.jquery.com/ticket/4996

 What am I missing? They might need a complete standalone page,
 preferably zipped that loads jquery.js from the web and displays an
 error message. You might get some progress if you do that. At least
 you put the ball back into their court. I did this more than once but
 it did not help. Nevertheless at least I know what to expect.

 The outcome could be that a bug needs to be filed against IE. But most
 importantly the bug needs to be fixed in jQuery because jQuery is
 crosss-platform and jQuery's existence is based on eliminating these
 quirks.


 On Mon, 8 Mar 2010 20:44:22 +0100, you wrote:

 Hi Bernard,
 
 there is a testcase in the attachments:
 
$(document.createElement('div')).offset();
 
 It's a real simple testcase.
 
 Stefan
 
 -Ursprüngliche Nachricht-
 Von: b...@actrix.gen.nz [mailto:b...@actrix.gen.nz]
 Gesendet: Montag, 8. März 2010 20:23
 An: users@wicket.apache.org
 Betreff: Re: jWicket release 0.5.0
 
 Thanks for the link to the issue.
 
 Re: I don't know why they don't fix the problem.
 
 I think the jQuery developer asks for a testcase. No testcase was
 supplied, so I am not surprised that even after 7 months, nothing has
 been done.
 
 But when there is a testcase, and when even the offending line of code
 is identified in jQuery and it is clear that it is a jQuery bug then
 the author of jQuery likes to close issues with status WONTFIX
 apparently with the purpose to hide them from the community. Please
 refer to
 
 http://dev.jquery.com/ticket/5743 where jQuery updates the DOM during
 a call that is supposed to only get the dimensions of an element.
 
 Regards
 
 Bernard
 
 
 On Mon, 8 Mar 2010 19:17:54 +0100, you wrote:
 
 Hi Ernesto,
 
 yes, I added a patch to jquery1.4.2.js. The DD problem is relatet to the
 ticket you cited (4996). After a DOM replacement IE is unable to calculate
 it's bounding rect in the way jQuery does and IE then throws an exception
 that stops the re-registration of the behavior.
 The problem seems to be present since jQuery 1.3 and many related bus are
 open in jQuery's trac. I don't know why they don't fix the problem.
 So I put together some hints and proposals and modified jQuery.js. If you
 need the patch try to check it out from wickststuff trunk or contect me
 again.
 
 Good luck!
 Stefan
 
 -Ursprüngliche Nachricht-
 Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
 Gesendet: Montag, 8. März 2010 19:07
 An: users@wicket.apache.org
 Betreff: Re: jWicket release 0.5.0
 
 Hi Stefan,
 
 My I ask what was your solution to the DD problem? Added a patch to
 jquery?
 Was this related to [1] and using jquery 1.4.2, independently of your
 project, and still find this issue.
 
 Best,
 
 Ernesto
 
 References,
 
 1-http://dev.jquery.com/ticket/4996
 
 http://dev.jquery.com/ticket/4996
 
 On Fri, Feb 26, 2010 at 2:57 PM, Stefan Lindner lind...@visionet.de
 wrote:
 
  I have committed jWicket version 0.5.0 to wicketstuff
 
  Changes:
  - jQuery update to Version 1.4.2
  - jQuery UI update to 1.8RC2
  - drag/drop/resize improvements 

Re: disable a DropdownChoice item

2010-03-08 Thread Per Newgro

There is some code in the AbstractChoice class from which DDC is inheriting.

/**
 * Gets whether the given value is disabled. This default 
implementation always returns false.

 *
 * @param object
 *The object to check
 * @param index
 *The index in the choices collection this object is in.
 * @param selected
 *The currently selected string value
 * @return Whether the given value represents the current selection
 */
protected boolean isDisabled(final E object, int index, String 
selected)

{
return false;
}

And if i check the method
protected void appendOptionHtml(AppendingStringBuffer buffer, E choice, 
int index,

String selected)
which is called by
protected void onComponentTagBody(final MarkupStream markupStream, final 
ComponentTag openTag)

which is called in rendering process

i can see that this is adding disabled = disabled if this method returns 
true.


So you could overwrite the isDisabled method of your ddc and return true 
for the appropriate object or index or selected.


PS: Answer is based on 1.4.2

Cheers
Per

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