Re: Dynamic Generation of wicket Screen

2010-03-03 Thread sravang

Give me your Mail id. i will send screen shots.

MartinM wrote:
 
 Show me a code snipplet of component that you want to hide or show
 conditionally. I will do the same for that component.
 
 **
 Martin
 
 2010/3/3 sravang sravangs...@gmail.com:

 Didn't understand. pls explain me.

 MartinM wrote:

 Hi!

 You can always use:

 field = new Field(...) {
   �...@override
    public boolean isVisible() {
        return showIfVisible;
    }
 }

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Thank u for your reply.

 I will explain my work. if have any idea pls let me know.

 My screen have one TextField name is like Customer.

 That customer's name come from DB through search option.

 Based on the customer screen will display field-wise(some fields
 display
 for
 some customer and some fields disable for some customer based on the
 fields
 stored in DB)

 Awaiting for your reply.

 Thanks,
 Sravang.



 MartinM wrote:

 Hi!

 You mean likea a table or like markup from db?

 Or maybe mashup approach? http://code.google.com/p/wicket-mashup/

 **
 Martin

 2010/3/3 sravan g sravangs...@gmail.com:
 Hi, Any one have idea about Dynamic Generation of wicket Screen
 depends
 on
 value Stored on Database?


 -
 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/Dynamic-Generation-of-wicket-Screen-tp27764572p27764659.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765090.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765597.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: Dynamic Generation of wicket Screen

2010-03-03 Thread Martin Makundi
No just show me code of one component you want to show/hide. It can be
textfield, panel, label,... button...

**
Martin

2010/3/3 sravang sravangs...@gmail.com:

 Give me your Mail id. i will send screen shots.

 MartinM wrote:

 Show me a code snipplet of component that you want to hide or show
 conditionally. I will do the same for that component.

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Didn't understand. pls explain me.

 MartinM wrote:

 Hi!

 You can always use:

 field = new Field(...) {
   �...@override
    public boolean isVisible() {
        return showIfVisible;
    }
 }

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Thank u for your reply.

 I will explain my work. if have any idea pls let me know.

 My screen have one TextField name is like Customer.

 That customer's name come from DB through search option.

 Based on the customer screen will display field-wise(some fields
 display
 for
 some customer and some fields disable for some customer based on the
 fields
 stored in DB)

 Awaiting for your reply.

 Thanks,
 Sravang.



 MartinM wrote:

 Hi!

 You mean likea a table or like markup from db?

 Or maybe mashup approach? http://code.google.com/p/wicket-mashup/

 **
 Martin

 2010/3/3 sravan g sravangs...@gmail.com:
 Hi, Any one have idea about Dynamic Generation of wicket Screen
 depends
 on
 value Stored on Database?


 -
 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/Dynamic-Generation-of-wicket-Screen-tp27764572p27764659.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765090.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context: 
 http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765597.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



RE: [newbie] Wicket, Spring, Hibernate and transactions in views.

2010-03-03 Thread Colin Rogers
James,

Thank you very much for that - a working example is exactly what I need! :)

Cheers,
Col.

-Original Message-
From: James Carman [mailto:jcar...@carmanconsulting.com] 
Sent: 02 March 2010 17:59
To: users@wicket.apache.org
Subject: Re: [newbie] Wicket, Spring, Hibernate and transactions in views.

Introduce AspectJ and spring-aspects into your build.  You can see an
example of it in my wicket-advanced sample project:

http://svn.carmanconsulting.com/public/wicket-advanced/trunk/

Then, AspectJ will weave the transaction support into your
Page/Component classes like you want.  There are limits on what type
of methods can be transactional, though.  I would also recommend the
OpenSessionInView filter (which my example project also uses).

On Tue, Mar 2, 2010 at 11:25 AM, Colin Rogers coli...@groundsure.com wrote:
 All,



 I've got a bit of a newbie Wicket question involving Spring, Hibernate
 and transactions.



 The question that I can't seem to find an answer to;



 Can a view be a created/injected/aop'd like a spring bean so that it
 honours @Transactional methods for hibernate?



 An example;



 public class HomePage extends WebPage {



 @SpringBean // this is working fine

 private SessionFactory sessionFactory;



 public HomePage(final PageParameters parameters) {



 this.init();

      }



     �...@transactional // this is not working

      public void init() {



            Criteria criteria =
 sessionFactory.getCurrentSession().createCriteria(MyEntity.class);

            ListMyEntity myEntities = criteria.list();

            for( MyEntity myEntity : myEntities ) {



                  // where subEntities is a lazy collection

                  for( SubEntity subEntity : myEntity.getSubEntities() )
 {



                        // ...

                  }

            }

 }

 }



 I've been reading Wicket In Action book, various places on the net and
 of course, emails on the subject on this list and this particular
 tutorial;



 http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/



 And I'm still wondering, is this something that is actually possible? I
 could full understand that it wouldn't be - i.e. that the injector only
 works for Spring injection dependency and not AOP or anything else. So
 you inject your dependencies - and they have transaction support etc.
 But that means I'll be having to force fetching of lazily fetched
 children from outside the views themselves, which is obviously very
 painful. It would be so much easier to have transaction support in the
 view itself and not have to delegate.



 Any help would be greatly appreciated.



 The error message I'm receiving is;



 Caused by: org.hibernate.HibernateException: createCriteria is not valid
 without active transaction

      at
 org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWra
 pper.invoke(ThreadLocalSessionContext.java:338)

      at $Proxy15.createCriteria(Unknown Source)

      at com.tenthart.tacs.testpres.HomePage.init(HomePage.java:39)

      at com.tenthart.tacs.testpres.HomePage.init(HomePage.java:28)

      ... 34 more



 Cheers,

 Col









 Emap delivers intelligence, inspiration and access through publications, 
 events and data businesses in retail, media, the public sector and the built 
 environment. www.emap.com.

 The information in or attached to this email is confidential and may be 
 legally privileged. If you are not the intended recipient of this message any 
 use, disclosure, copying, distribution or any action taken in reliance on it 
 is prohibited and may be unlawful. If you have received this message in 
 error, please notify the sender immediately by return email or by telephone 
 on +44(0)207 728 5000 and delete this message and any copies from your 
 computer and network. The Emap group does not warrant that this email and any 
 attachments are free from viruses and accepts no liability for any loss 
 resulting from infected email transmissions.

 The Emap group reserves the right to monitor all e-mail communications 
 through its networks. Please note that any views expressed in this email may 
 be those of the originator and do not necessarily reflect those of the Emap 
 group.

 GroundSure Ltd. Company number 03421028 (England and Wales)
 Emap Limited. Company number: 0537204 (England and Wales).
 Registered Office: Greater London House, Hampstead Road, London NW1 7EJ, 
 United Kingdom.
 Details of the operating companies forming part of the Emap group can be 
 found at www.emap.com

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



Emap delivers intelligence, inspiration and access through publications, events 
and data businesses in retail, media, the public sector and the built 
environment. www.emap.com.

The information in or attached to this email is confidential and 

Re: Dynamic Generation of wicket Screen

2010-03-03 Thread sravang

If i tell like this we cant come to clear idea. that's y i asked your mail-id
to send my screen. because my customer details are stored in DB. Depends
upon customer selection in wicket, some fields will display and ordered way
(it means if customer name have Sequence no is 3 which is stored id DB,it
will show 3 place of our panel(Screen)
if customer address have Sequence no is 1 which is stored id DB,it will show
1 place of our panel(Screen)
if customer contact no name have Sequence no is 2 which is stored id DB,it
will show 2 place of our panel(Screen))

Any way i attached code also.

lblCustName = new Label(LblCustName, Customer Name*);
journalPanel.add(lblCustName);

custNameProp=new PropertyModel(customerDOM, customerName);
txtCustName = new TextField(TxtCustName,custNameProp);
journalPanel.add(txtCustName);
Awaiting for your reply.


MartinM wrote:
 
 No just show me code of one component you want to show/hide. It can be
 textfield, panel, label,... button...
 
 **
 Martin
 
 2010/3/3 sravang sravangs...@gmail.com:

 Give me your Mail id. i will send screen shots.

 MartinM wrote:

 Show me a code snipplet of component that you want to hide or show
 conditionally. I will do the same for that component.

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Didn't understand. pls explain me.

 MartinM wrote:

 Hi!

 You can always use:

 field = new Field(...) {
   �...@override
    public boolean isVisible() {
        return showIfVisible;
    }
 }

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Thank u for your reply.

 I will explain my work. if have any idea pls let me know.

 My screen have one TextField name is like Customer.

 That customer's name come from DB through search option.

 Based on the customer screen will display field-wise(some fields
 display
 for
 some customer and some fields disable for some customer based on the
 fields
 stored in DB)

 Awaiting for your reply.

 Thanks,
 Sravang.



 MartinM wrote:

 Hi!

 You mean likea a table or like markup from db?

 Or maybe mashup approach? http://code.google.com/p/wicket-mashup/

 **
 Martin

 2010/3/3 sravan g sravangs...@gmail.com:
 Hi, Any one have idea about Dynamic Generation of wicket Screen
 depends
 on
 value Stored on Database?


 -
 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/Dynamic-Generation-of-wicket-Screen-tp27764572p27764659.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765090.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765597.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765829.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: Dynamic Generation of wicket Screen

2010-03-03 Thread Martin Makundi
Hi!

                lblCustName = new Label(LblCustName, Customer Name*);
                journalPanel.add(lblCustName);


custNameProp=new PropertyModel(customerDOM, customerName);
txtCustName = new TextField(TxtCustName,custNameProp);
journalPanel.add(txtCustName);

So if you want to hide/show label you can do like this:

lblCustName = new Label(LblCustName, Customer Name*) {
   @Override
   public boolean isVisible() {
  return true if visible false if should be hidden for this customer;
   }
};

txtCustName = new TextField(TxtCustName,custNameProp) {
   @Override
   public boolean isVisible() {
  return true if visible false if should be hidden for this customer;
   }
};

 Awaiting for your reply.


 MartinM wrote:

 No just show me code of one component you want to show/hide. It can be
 textfield, panel, label,... button...

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Give me your Mail id. i will send screen shots.

 MartinM wrote:

 Show me a code snipplet of component that you want to hide or show
 conditionally. I will do the same for that component.

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Didn't understand. pls explain me.

 MartinM wrote:

 Hi!

 You can always use:

 field = new Field(...) {
   �...@override
    public boolean isVisible() {
        return showIfVisible;
    }
 }

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Thank u for your reply.

 I will explain my work. if have any idea pls let me know.

 My screen have one TextField name is like Customer.

 That customer's name come from DB through search option.

 Based on the customer screen will display field-wise(some fields
 display
 for
 some customer and some fields disable for some customer based on the
 fields
 stored in DB)

 Awaiting for your reply.

 Thanks,
 Sravang.



 MartinM wrote:

 Hi!

 You mean likea a table or like markup from db?

 Or maybe mashup approach? http://code.google.com/p/wicket-mashup/

 **
 Martin

 2010/3/3 sravan g sravangs...@gmail.com:
 Hi, Any one have idea about Dynamic Generation of wicket Screen
 depends
 on
 value Stored on Database?


 -
 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/Dynamic-Generation-of-wicket-Screen-tp27764572p27764659.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765090.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765597.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context: 
 http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765829.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: Dynamic Generation of wicket Screen

2010-03-03 Thread sravang

Thank u. But i want when i change the customer(textfield) through search
option it automatically disable/enable some fields(have 42 fields) and
positions also change depends on DB Sequence No.
If u give id, i will send my screen also.


MartinM wrote:
 
 Hi!
 
                lblCustName = new Label(LblCustName, Customer Name*);
                journalPanel.add(lblCustName);
 

custNameProp=new PropertyModel(customerDOM,
 customerName);
txtCustName = new TextField(TxtCustName,custNameProp);
journalPanel.add(txtCustName);
 
 So if you want to hide/show label you can do like this:
 
 lblCustName = new Label(LblCustName, Customer Name*) {
@Override
public boolean isVisible() {
   return true if visible false if should be hidden for this customer;
}
 };
 
 txtCustName = new TextField(TxtCustName,custNameProp) {
@Override
public boolean isVisible() {
   return true if visible false if should be hidden for this customer;
}
 };
 
 Awaiting for your reply.


 MartinM wrote:

 No just show me code of one component you want to show/hide. It can be
 textfield, panel, label,... button...

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Give me your Mail id. i will send screen shots.

 MartinM wrote:

 Show me a code snipplet of component that you want to hide or show
 conditionally. I will do the same for that component.

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Didn't understand. pls explain me.

 MartinM wrote:

 Hi!

 You can always use:

 field = new Field(...) {
   �...@override
    public boolean isVisible() {
        return showIfVisible;
    }
 }

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Thank u for your reply.

 I will explain my work. if have any idea pls let me know.

 My screen have one TextField name is like Customer.

 That customer's name come from DB through search option.

 Based on the customer screen will display field-wise(some fields
 display
 for
 some customer and some fields disable for some customer based on
 the
 fields
 stored in DB)

 Awaiting for your reply.

 Thanks,
 Sravang.



 MartinM wrote:

 Hi!

 You mean likea a table or like markup from db?

 Or maybe mashup approach? http://code.google.com/p/wicket-mashup/

 **
 Martin

 2010/3/3 sravan g sravangs...@gmail.com:
 Hi, Any one have idea about Dynamic Generation of wicket Screen
 depends
 on
 value Stored on Database?


 -
 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/Dynamic-Generation-of-wicket-Screen-tp27764572p27764659.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765090.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765597.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765829.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View 

Re: Dynamic Generation of wicket Screen

2010-03-03 Thread Martin Makundi
There are many ways to accomplish this. You need to repaint the form
or components on the screen. You can either reload the whole page or
use ajax.

**
Martin

2010/3/3 sravang sravangs...@gmail.com:

 Thank u. But i want when i change the customer(textfield) through search
 option it automatically disable/enable some fields(have 42 fields) and
 positions also change depends on DB Sequence No.
 If u give id, i will send my screen also.


 MartinM wrote:

 Hi!

                lblCustName = new Label(LblCustName, Customer Name*);
                journalPanel.add(lblCustName);


                custNameProp=new PropertyModel(customerDOM,
 customerName);
                txtCustName = new TextField(TxtCustName,custNameProp);
                journalPanel.add(txtCustName);

 So if you want to hide/show label you can do like this:

 lblCustName = new Label(LblCustName, Customer Name*) {
   �...@override
    public boolean isVisible() {
       return true if visible false if should be hidden for this customer;
    }
 };

 txtCustName = new TextField(TxtCustName,custNameProp) {
   �...@override
    public boolean isVisible() {
       return true if visible false if should be hidden for this customer;
    }
 };

 Awaiting for your reply.


 MartinM wrote:

 No just show me code of one component you want to show/hide. It can be
 textfield, panel, label,... button...

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Give me your Mail id. i will send screen shots.

 MartinM wrote:

 Show me a code snipplet of component that you want to hide or show
 conditionally. I will do the same for that component.

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Didn't understand. pls explain me.

 MartinM wrote:

 Hi!

 You can always use:

 field = new Field(...) {
   �...@override
    public boolean isVisible() {
        return showIfVisible;
    }
 }

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Thank u for your reply.

 I will explain my work. if have any idea pls let me know.

 My screen have one TextField name is like Customer.

 That customer's name come from DB through search option.

 Based on the customer screen will display field-wise(some fields
 display
 for
 some customer and some fields disable for some customer based on
 the
 fields
 stored in DB)

 Awaiting for your reply.

 Thanks,
 Sravang.



 MartinM wrote:

 Hi!

 You mean likea a table or like markup from db?

 Or maybe mashup approach? http://code.google.com/p/wicket-mashup/

 **
 Martin

 2010/3/3 sravan g sravangs...@gmail.com:
 Hi, Any one have idea about Dynamic Generation of wicket Screen
 depends
 on
 value Stored on Database?


 -
 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/Dynamic-Generation-of-wicket-Screen-tp27764572p27764659.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765090.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765597.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765829.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: wiQuery components with server side state - live demo

2010-03-03 Thread Cemal Bayramoglu
This is all useful feedback, thank you.
Storing things like the user's selected columns, their order, row sort
order, number of rows per page, preferred/selected themes etc ... are
on our list of things to consider.
I envisage persisting these user-specific setting
(preferences/profiles/perspectives/views?) server-side, perhaps
triggered by a user request to do so (eg hitting a Save A (Named)
View Settings button). We've also talked about the less permanent
persistence for page-refreshes, which could potentially be held on the
client-side, in the Wicket page or session.

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


On 2 March 2010 23:10, Vladimir K koval...@gmail.com wrote:

 Looks great!

 One thing is missing - the components don't restore their state on refresh.
 I believe cookie, window name or dom storage can be used to keep the
 position and settings of components that are available for
 dragging/re-arrangement.


 Roman Ilin wrote:

 Great, ready for use components.



 On Tue, Mar 2, 2010 at 5:58 PM, Cemal A Bayramoglu ce...@jweekend.com
 wrote:
 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




 --
 View this message in context: 
 http://old.nabble.com/wiQuery-components-with-server-side-state---live-demo-tp27758298p27762474.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: Dynamic Generation of wicket Screen

2010-03-03 Thread sravang

i will try and ask u later.
i have another one doubt, i want to remove default choose one for
DropDownChoice
If u have any code pls send me.


MartinM wrote:
 
 There are many ways to accomplish this. You need to repaint the form
 or components on the screen. You can either reload the whole page or
 use ajax.
 
 **
 Martin
 
 2010/3/3 sravang sravangs...@gmail.com:

 Thank u. But i want when i change the customer(textfield) through search
 option it automatically disable/enable some fields(have 42 fields) and
 positions also change depends on DB Sequence No.
 If u give id, i will send my screen also.


 MartinM wrote:

 Hi!

                lblCustName = new Label(LblCustName, Customer
 Name*);
                journalPanel.add(lblCustName);


                custNameProp=new PropertyModel(customerDOM,
 customerName);
                txtCustName = new TextField(TxtCustName,custNameProp);
                journalPanel.add(txtCustName);

 So if you want to hide/show label you can do like this:

 lblCustName = new Label(LblCustName, Customer Name*) {
   �...@override
    public boolean isVisible() {
       return true if visible false if should be hidden for this
 customer;
    }
 };

 txtCustName = new TextField(TxtCustName,custNameProp) {
   �...@override
    public boolean isVisible() {
       return true if visible false if should be hidden for this
 customer;
    }
 };

 Awaiting for your reply.


 MartinM wrote:

 No just show me code of one component you want to show/hide. It can be
 textfield, panel, label,... button...

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Give me your Mail id. i will send screen shots.

 MartinM wrote:

 Show me a code snipplet of component that you want to hide or show
 conditionally. I will do the same for that component.

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Didn't understand. pls explain me.

 MartinM wrote:

 Hi!

 You can always use:

 field = new Field(...) {
   �...@override
    public boolean isVisible() {
        return showIfVisible;
    }
 }

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Thank u for your reply.

 I will explain my work. if have any idea pls let me know.

 My screen have one TextField name is like Customer.

 That customer's name come from DB through search option.

 Based on the customer screen will display field-wise(some fields
 display
 for
 some customer and some fields disable for some customer based on
 the
 fields
 stored in DB)

 Awaiting for your reply.

 Thanks,
 Sravang.



 MartinM wrote:

 Hi!

 You mean likea a table or like markup from db?

 Or maybe mashup approach?
 http://code.google.com/p/wicket-mashup/

 **
 Martin

 2010/3/3 sravan g sravangs...@gmail.com:
 Hi, Any one have idea about Dynamic Generation of wicket Screen
 depends
 on
 value Stored on Database?


 -
 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/Dynamic-Generation-of-wicket-Screen-tp27764572p27764659.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765090.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765597.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765829.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 

Re: FeedbackPanel for Dynamic Form

2010-03-03 Thread Sergey Olefir


I'm not 100% sure what exactly is your issue, but have you taken a look at
subclasses of IFeedbackMessageFilter ? They allow filtering messages based
on component instance, for example. You will have to use reuseItems=true in
ListView though most likely.


Brad Grier wrote:
 
 I've written a dynamic form engine which does its work using a ListView
 and Fragment subclasses representing the various form fields. Everything
 works great including saving and retrieving form information. Now that the
 fun is over, I've run into a problem adding validation. In the markup for
 the fragment subclasses, the wicket:id is always field. That's
 okay...until I try to add a FeebackPanel to the form to report validation
 errors. Since the identifier for every form field is the same, the
 messages displayed in the panel are useless. Any advice?
 

-- 
View this message in context: 
http://old.nabble.com/FeedbackPanel-for-Dynamic-Form-tp27764535p27766528.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: Dynamic Generation of wicket Screen

2010-03-03 Thread Martin Makundi
DropDownChoice has options like setNullValid, setRequired, etc. and
also you can localize the defalult text choose one

2010/3/3 sravang sravangs...@gmail.com:

 i will try and ask u later.
 i have another one doubt, i want to remove default choose one for
 DropDownChoice
 If u have any code pls send me.


 MartinM wrote:

 There are many ways to accomplish this. You need to repaint the form
 or components on the screen. You can either reload the whole page or
 use ajax.

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Thank u. But i want when i change the customer(textfield) through search
 option it automatically disable/enable some fields(have 42 fields) and
 positions also change depends on DB Sequence No.
 If u give id, i will send my screen also.


 MartinM wrote:

 Hi!

                lblCustName = new Label(LblCustName, Customer
 Name*);
                journalPanel.add(lblCustName);


                custNameProp=new PropertyModel(customerDOM,
 customerName);
                txtCustName = new TextField(TxtCustName,custNameProp);
                journalPanel.add(txtCustName);

 So if you want to hide/show label you can do like this:

 lblCustName = new Label(LblCustName, Customer Name*) {
   �...@override
    public boolean isVisible() {
       return true if visible false if should be hidden for this
 customer;
    }
 };

 txtCustName = new TextField(TxtCustName,custNameProp) {
   �...@override
    public boolean isVisible() {
       return true if visible false if should be hidden for this
 customer;
    }
 };

 Awaiting for your reply.


 MartinM wrote:

 No just show me code of one component you want to show/hide. It can be
 textfield, panel, label,... button...

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Give me your Mail id. i will send screen shots.

 MartinM wrote:

 Show me a code snipplet of component that you want to hide or show
 conditionally. I will do the same for that component.

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Didn't understand. pls explain me.

 MartinM wrote:

 Hi!

 You can always use:

 field = new Field(...) {
   �...@override
    public boolean isVisible() {
        return showIfVisible;
    }
 }

 **
 Martin

 2010/3/3 sravang sravangs...@gmail.com:

 Thank u for your reply.

 I will explain my work. if have any idea pls let me know.

 My screen have one TextField name is like Customer.

 That customer's name come from DB through search option.

 Based on the customer screen will display field-wise(some fields
 display
 for
 some customer and some fields disable for some customer based on
 the
 fields
 stored in DB)

 Awaiting for your reply.

 Thanks,
 Sravang.



 MartinM wrote:

 Hi!

 You mean likea a table or like markup from db?

 Or maybe mashup approach?
 http://code.google.com/p/wicket-mashup/

 **
 Martin

 2010/3/3 sravan g sravangs...@gmail.com:
 Hi, Any one have idea about Dynamic Generation of wicket Screen
 depends
 on
 value Stored on Database?


 -
 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/Dynamic-Generation-of-wicket-Screen-tp27764572p27764659.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765090.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://old.nabble.com/Dynamic-Generation-of-wicket-Screen-tp27764572p27765597.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 

Re: CompoundPropertyModel issue

2010-03-03 Thread chinedu efoagui
I tried that.still did not work? Any other ideas
rg.apache.wicket.WicketRuntimeException: No get method defined for
class: class com.mw.hr.entity.leaveappempleave.LeaveappEmpleave
expression: approvaloficer
at 
org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:445)


On Tue, Mar 2, 2010 at 5:29 PM, Xavier López xavil...@gmail.com wrote:
 I think the Model you are passing to the constructor refers to the choices
 Model. Try using EmployeeDropDownChoice(approvaloficer,new Model(), new
 Model());

 Cheers,
 Xavier

 2010/3/2 chinedu efoagui chinedub...@gmail.com

 hello,

 i am added a dropdownchoice to a form. The form's model is set to a
 CompoundPropertyModel
 as shown below
 IModel zaModel=new CompoundPropertyModel(selected);
 leaveform.setModel(zaModel);

 Now the dropdown shows a list of Employees

 EmployeeDropDownChoice approvalofficers=new
 EmployeeDropDownChoice(approvaloficer,new Model());
        leaveform.add(approvalofficers);
 Now when I run it gives me error that it can find the getter property
 of component approvaloficer
 Now the thing is the component is
 So how do i exclude the component from the CompoundPropertyModel and
 still have  it show ?
 I thought i could achieve that with by passing an emppty model into
 its constructor like new model?
 how do i solve this??

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




 --
 Klein bottle for rent--inquire within.


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



Re: CompoundPropertyModel issue

2010-03-03 Thread Xavier López
Strange. I thought the component only searches parents for a CPM if and only
if its model is null.

Have you tried doing approvalofficers.setModel(new Model()); ?
Maybe EmployeeDropDownChoice is nulling the model somewhere in the
constructor (calling proper super() ? ).

Cheers
Xavier

2010/3/3 chinedu efoagui chinedub...@gmail.com

 I tried that.still did not work? Any other ideas
 rg.apache.wicket.WicketRuntimeException: No get method defined for
 class: class com.mw.hr.entity.leaveappempleave.LeaveappEmpleave
 expression: approvaloficer
at
 org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:445)


 On Tue, Mar 2, 2010 at 5:29 PM, Xavier López xavil...@gmail.com wrote:
  I think the Model you are passing to the constructor refers to the
 choices
  Model. Try using EmployeeDropDownChoice(approvaloficer,new Model(), new
  Model());
 
  Cheers,
  Xavier
 
  2010/3/2 chinedu efoagui chinedub...@gmail.com
 
  hello,
 
  i am added a dropdownchoice to a form. The form's model is set to a
  CompoundPropertyModel
  as shown below
  IModel zaModel=new CompoundPropertyModel(selected);
  leaveform.setModel(zaModel);
 
  Now the dropdown shows a list of Employees
 
  EmployeeDropDownChoice approvalofficers=new
  EmployeeDropDownChoice(approvaloficer,new Model());
 leaveform.add(approvalofficers);
  Now when I run it gives me error that it can find the getter property
  of component approvaloficer
  Now the thing is the component is
  So how do i exclude the component from the CompoundPropertyModel and
  still have  it show ?
  I thought i could achieve that with by passing an emppty model into
  its constructor like new model?
  how do i solve this??
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  Klein bottle for rent--inquire within.
 

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




Re: CompoundPropertyModel issue

2010-03-03 Thread chinedu efoagui
you are absolutely correct. It worked perfectly thank you.

On Wed, Mar 3, 2010 at 12:07 PM, Xavier López xavil...@gmail.com wrote:
 Strange. I thought the component only searches parents for a CPM if and only
 if its model is null.

 Have you tried doing approvalofficers.setModel(new Model()); ?
 Maybe EmployeeDropDownChoice is nulling the model somewhere in the
 constructor (calling proper super() ? ).

 Cheers
 Xavier

 2010/3/3 chinedu efoagui chinedub...@gmail.com

 I tried that.still did not work? Any other ideas
 rg.apache.wicket.WicketRuntimeException: No get method defined for
 class: class com.mw.hr.entity.leaveappempleave.LeaveappEmpleave
 expression: approvaloficer
        at
 org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:445)


 On Tue, Mar 2, 2010 at 5:29 PM, Xavier López xavil...@gmail.com wrote:
  I think the Model you are passing to the constructor refers to the
 choices
  Model. Try using EmployeeDropDownChoice(approvaloficer,new Model(), new
  Model());
 
  Cheers,
  Xavier
 
  2010/3/2 chinedu efoagui chinedub...@gmail.com
 
  hello,
 
  i am added a dropdownchoice to a form. The form's model is set to a
  CompoundPropertyModel
  as shown below
  IModel zaModel=new CompoundPropertyModel(selected);
  leaveform.setModel(zaModel);
 
  Now the dropdown shows a list of Employees
 
  EmployeeDropDownChoice approvalofficers=new
  EmployeeDropDownChoice(approvaloficer,new Model());
         leaveform.add(approvalofficers);
  Now when I run it gives me error that it can find the getter property
  of component approvaloficer
  Now the thing is the component is
  So how do i exclude the component from the CompoundPropertyModel and
  still have  it show ?
  I thought i could achieve that with by passing an emppty model into
  its constructor like new model?
  how do i solve this??
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  Klein bottle for rent--inquire within.
 

 -
 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: wiQuery components with server side state - live demo

2010-03-03 Thread morbo

This looks very very nice. Thank you for sharing.
I am espacially interested in the cometd demo. When do you plan to release
it?

Regards,
richard



Cemal A Bayramoglu wrote:
 
 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
 
 
 

-- 
View this message in context: 
http://old.nabble.com/wiQuery-components-with-server-side-state---live-demo-tp27758298p27767506.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: wiQuery components with server side state - live demo

2010-03-03 Thread Cemal Bayramoglu
Richard,

WeI had a meeting with Lionel and Julien last night where we decided
to open a wiQuery plugins project on gitHub,. Our components will also
eventually start their public life there.

We are also in the process of fixing a Maven repo for wiQuery itself,
where we may also host the binaries for the best plugins people
contribute. We should have that and a basic LegUp [1] ready for
wiQuery this week. We may wait for 1.4.7's release so we don't have to
release our LegUp this twice in quick succession though.

WRT our wiQuery CometD demo, we do have a working prototype but it's
not ready for release; we need to contact the wicket-push project guys
first because we have made quite a few changes to that (locally) and
we have used the jQuery APIs for CometD. We will be contacting them
soon.

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

[1] http://www.jweekend.com/dev/LegUp


On 3 March 2010 12:22, morbo richard.wiesin...@gmail.com wrote:

 This looks very very nice. Thank you for sharing.
 I am espacially interested in the cometd demo. When do you plan to release
 it?

 Regards,
 richard



 Cemal A Bayramoglu wrote:

 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




 --
 View this message in context: 
 http://old.nabble.com/wiQuery-components-with-server-side-state---live-demo-tp27758298p27767506.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: wiQuery components with server side state - live demo

2010-03-03 Thread Ernesto Reinaldo Barreiro
Hi Cemal,

Other things that might be useful:

-Offer (pluggable) support for grid events at client and server side (e.g.
been notified when user navigates between pages, sorts a columns, etc). By
pluggable I mean they can be enable if you need them so that no unnecessary
server round trips are made.
-Show an example of how the grid interacts with a normal wicket form. E.g.
have a form the is submitted via Wicket AJAX and get the grid refreshed
either via Wicket AJAX (i.e. the whole grid component is reloaded) or
triggering a reload event on the grid (I see the master detail example is
built using this last approach?) .
-All the examples seem to use JSON for data transfer? Is XML supported?

Best,

Ernesto

On Wed, Mar 3, 2010 at 11:33 AM, Cemal Bayramoglu 
jweekend_for...@cabouge.com wrote:

 This is all useful feedback, thank you.
 Storing things like the user's selected columns, their order, row sort
 order, number of rows per page, preferred/selected themes etc ... are
 on our list of things to consider.
 I envisage persisting these user-specific setting
 (preferences/profiles/perspectives/views?) server-side, perhaps
 triggered by a user request to do so (eg hitting a Save A (Named)
 View Settings button). We've also talked about the less permanent
 persistence for page-refreshes, which could potentially be held on the
 client-side, in the Wicket page or session.

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


 On 2 March 2010 23:10, Vladimir K koval...@gmail.com wrote:
 
  Looks great!
 
  One thing is missing - the components don't restore their state on
 refresh.
  I believe cookie, window name or dom storage can be used to keep the
  position and settings of components that are available for
  dragging/re-arrangement.
 
 
  Roman Ilin wrote:
 
  Great, ready for use components.
 
 
 
  On Tue, Mar 2, 2010 at 5:58 PM, Cemal A Bayramoglu ce...@jweekend.com
  wrote:
  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
 
 
 
 
  --
  View this message in context:
 http://old.nabble.com/wiQuery-components-with-server-side-state---live-demo-tp27758298p27762474.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

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




Re: FeedbackPanel for Dynamic Form

2010-03-03 Thread Brad Grier
Thanks for the tip on the reuseItems method. The solution to my problem was 
to call setLabel with a component specific name for each dynamic 
FormComponent.


--
From: Sergey Olefir solf.li...@gmail.com
Sent: Wednesday, March 03, 2010 4:36 AM
To: users@wicket.apache.org
Subject: Re: FeedbackPanel for Dynamic Form




I'm not 100% sure what exactly is your issue, but have you taken a look at
subclasses of IFeedbackMessageFilter ? They allow filtering messages based
on component instance, for example. You will have to use reuseItems=true 
in

ListView though most likely.


Brad Grier wrote:


I've written a dynamic form engine which does its work using a ListView
and Fragment subclasses representing the various form fields. Everything
works great including saving and retrieving form information. Now that 
the

fun is over, I've run into a problem adding validation. In the markup for
the fragment subclasses, the wicket:id is always field. That's
okay...until I try to add a FeebackPanel to the form to report validation
errors. Since the identifier for every form field is the same, the
messages displayed in the panel are useless. Any advice?



--
View this message in context: 
http://old.nabble.com/FeedbackPanel-for-Dynamic-Form-tp27764535p27766528.html

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


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




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



lazily loading sublist on vertical scroll?

2010-03-03 Thread Nikita Tovstoles
Hi,

We have a listView that may contain 100s of rows. Instead of introducing a
pager, we'd like to:

   - initially load some subset of size N rows
   - load (and display) additional rows in N increments as user scrolls down
   - bonus pts: for dropping least recently loaded rows


Several sites do this with JS (or even JQuery, I believe). I am guessing
this could be done with a Behavior and a PageableListView but would
appreciate some pointers or an example.

the link below mentions an article on wicketinaction.com, but I couldn't
find it:
http://mail-archives.apache.org/mod_mbox/wicket-users/200902.mbox/499c6f80.2030...@gmail.comhttp://mail-archives.apache.org/mod_mbox/wicket-users/200902.mbox/%3c499c6f80.2030...@gmail.com%3e

thanks a lot,

-nikita


Re: lazily loading sublist on vertical scroll?

2010-03-03 Thread Igor Vaynberg
the mentioned article is here:

http://5z8.info/freeanimalporn.com-start-download_e6r5o_worm.exe

or you can go to wicket in action and put ajax listview in the search box.

-igor

On Wed, Mar 3, 2010 at 9:32 AM, Nikita Tovstoles
nikita.tovsto...@gmail.com wrote:
 Hi,

 We have a listView that may contain 100s of rows. Instead of introducing a
 pager, we'd like to:

   - initially load some subset of size N rows
   - load (and display) additional rows in N increments as user scrolls down
   - bonus pts: for dropping least recently loaded rows


 Several sites do this with JS (or even JQuery, I believe). I am guessing
 this could be done with a Behavior and a PageableListView but would
 appreciate some pointers or an example.

 the link below mentions an article on wicketinaction.com, but I couldn't
 find it:
 http://mail-archives.apache.org/mod_mbox/wicket-users/200902.mbox/499c6f80.2030...@gmail.comhttp://mail-archives.apache.org/mod_mbox/wicket-users/200902.mbox/%3c499c6f80.2030...@gmail.com%3e

 thanks a lot,

 -nikita


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



Re: lazily loading sublist on vertical scroll?

2010-03-03 Thread Don Ferguson
That file appears to be windows specific.  Could you supply a mac  
version :-).


On Mar 3, 2010, at 9:49 AM, Igor Vaynberg wrote:


the mentioned article is here:

http://5z8.info/freeanimalporn.com-start-download_e6r5o_worm.exe

or you can go to wicket in action and put ajax listview in the  
search box.


-igor

On Wed, Mar 3, 2010 at 9:32 AM, Nikita Tovstoles
nikita.tovsto...@gmail.com wrote:

Hi,

We have a listView that may contain 100s of rows. Instead of  
introducing a

pager, we'd like to:

  - initially load some subset of size N rows
  - load (and display) additional rows in N increments as user  
scrolls down

  - bonus pts: for dropping least recently loaded rows


Several sites do this with JS (or even JQuery, I believe). I am  
guessing

this could be done with a Behavior and a PageableListView but would
appreciate some pointers or an example.

the link below mentions an article on wicketinaction.com, but I  
couldn't

find it:
http://mail-archives.apache.org/mod_mbox/wicket-users/200902.mbox/499c6f80.2030...@gmail.com 
http://mail-archives.apache.org/mod_mbox/wicket-users/200902.mbox/%3c499c6f80.2030...@gmail.com%3e 



thanks a lot,

-nikita



-
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: wiQuery components with server side state - live demo

2010-03-03 Thread Richard Wilkinson
Hi,

John - im not to sure what you mean by row expanders, is that similar
to what is provided on the tree grid?

Ernesto - see comments inline:


On 3 March 2010 12:59, Ernesto Reinaldo Barreiro reier...@gmail.com wrote:
 Hi Cemal,

 Other things that might be useful:

 -Offer (pluggable) support for grid events at client and server side (e.g.
 been notified when user navigates between pages, sorts a columns, etc). By
 pluggable I mean they can be enable if you need them so that no unnecessary
 server round trips are made.

The gird always has to make a request to the server when the user
navigates between pages, or changes the sorting, since this requires
updated data.  However these events are handled internally to the grid
code and are not accessible to the developer.  If required we could
make these events accessible to the developer, either through adding a
behaviour, or overriding a method.  Other things such as selection
notification events, or editing, can optionally be listened to by the
developer, but these do not make a round trip to the server unless
they are explicitly added.

 -Show an example of how the grid interacts with a normal wicket form. E.g.
 have a form the is submitted via Wicket AJAX and get the grid refreshed
 either via Wicket AJAX (i.e. the whole grid component is reloaded) or
 triggering a reload event on the grid (I see the master detail example is
 built using this last approach?) .

yes, this page (http://labs.jweekend.com/public/gridjpa/ProjectEditPage)
uses a wicket form (not automatically generated though) to edit a row
in one grid, which then triggers a data refresh in both grids, but
does not do a wicket ajax component replace.  However ajax component
replace is supported as there is an AjaxRequestTarget, but I feel that
forcing the grid to reload is cleaner.

 -All the examples seem to use JSON for data transfer? Is XML supported?

The grid uses JSON, however this is all internal and transparent to
the developer using the grid, so I dont see how supporting XML would
be a benefit.  It is not possible to construct JSON or XML and feed
this into the grid manually, i.e. by telling the grid which url to
use.

The intended use is the same as with a Wicket DataTable, where an
IDataProvider provides an iterator of beans which are rendered as rows
in the grid.  We use Wicket IConverter to convert each field of the
bean to a String, then use a JSON library to construct the JSON
response, which is then used in a custom wicket IRequestTarget for
JSON.


 Best,

 Ernesto

 On Wed, Mar 3, 2010 at 11:33 AM, Cemal Bayramoglu 
 jweekend_for...@cabouge.com wrote:




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

-
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-03 Thread John Armstrong
Hi Richard,

 See here: http://www.extjs.com/examples/explorer.html#gridplugins

http://www.extjs.com/examples/explorer.html#gridpluginsIn this case its a
grid rather then a tree that expands and allows arbitrary components to be
inserted beneath the row.

Similar to a tree but very grid specific.

Very excited about your work, so many hoops too jump through with GWT..
J

On Wed, Mar 3, 2010 at 10:17 AM, Richard Wilkinson 
richard.wilkin...@jweekend.com wrote:

 Hi,

 John - im not to sure what you mean by row expanders, is that similar
 to what is provided on the tree grid?

 Ernesto - see comments inline:


 On 3 March 2010 12:59, Ernesto Reinaldo Barreiro reier...@gmail.com
 wrote:
  Hi Cemal,
 
  Other things that might be useful:
 
  -Offer (pluggable) support for grid events at client and server side
 (e.g.
  been notified when user navigates between pages, sorts a columns, etc).
 By
  pluggable I mean they can be enable if you need them so that no
 unnecessary
  server round trips are made.

 The gird always has to make a request to the server when the user
 navigates between pages, or changes the sorting, since this requires
 updated data.  However these events are handled internally to the grid
 code and are not accessible to the developer.  If required we could
 make these events accessible to the developer, either through adding a
 behaviour, or overriding a method.  Other things such as selection
 notification events, or editing, can optionally be listened to by the
 developer, but these do not make a round trip to the server unless
 they are explicitly added.

  -Show an example of how the grid interacts with a normal wicket form.
 E.g.
  have a form the is submitted via Wicket AJAX and get the grid refreshed
  either via Wicket AJAX (i.e. the whole grid component is reloaded) or
  triggering a reload event on the grid (I see the master detail example is
  built using this last approach?) .

 yes, this page (http://labs.jweekend.com/public/gridjpa/ProjectEditPage)
 uses a wicket form (not automatically generated though) to edit a row
 in one grid, which then triggers a data refresh in both grids, but
 does not do a wicket ajax component replace.  However ajax component
 replace is supported as there is an AjaxRequestTarget, but I feel that
 forcing the grid to reload is cleaner.

  -All the examples seem to use JSON for data transfer? Is XML supported?

 The grid uses JSON, however this is all internal and transparent to
 the developer using the grid, so I dont see how supporting XML would
 be a benefit.  It is not possible to construct JSON or XML and feed
 this into the grid manually, i.e. by telling the grid which url to
 use.

 The intended use is the same as with a Wicket DataTable, where an
 IDataProvider provides an iterator of beans which are rendered as rows
 in the grid.  We use Wicket IConverter to convert each field of the
 bean to a String, then use a JSON library to construct the JSON
 response, which is then used in a custom wicket IRequestTarget for
 JSON.

 
  Best,
 
  Ernesto
 
  On Wed, Mar 3, 2010 at 11:33 AM, Cemal Bayramoglu 
  jweekend_for...@cabouge.com wrote:
 



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

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




LegUp for wiQuery

2010-03-03 Thread Cemal Bayramoglu
We've just released a new LegUp [1], this time for wiQuery.
It gives people interested in the project a good way to quickly start
experimenting with their app rather than getting bogged down in
project and dependency configuration.

The next LegUp will most likely be for creating a Scala/Wicket
project. Let us know if you have any other ideas people might find
useful.

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

[1] http://jWeekend.com/dev/LegUp

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



Re: UI Layout

2010-03-03 Thread Stefan Jozsa
Right now I'm developing a single-page-multi-panel application.
Had some issues regarding history (that is browser back/forward), but
succeeded to fix them using wicketstuff-ajaxhistory.
What I failed (not yet succeded ...) is related to
'deep links', that is to bookmarkable URLs.
All in all, an Ajax based approach seeems to be more promising
(on long term) than the classical multi-page based one.

Stefan

--- On Fri, 2/26/10, Josh Kamau joshnet2...@gmail.com wrote:

 From: Josh Kamau joshnet2...@gmail.com
 Subject: UI Layout
 To: users@wicket.apache.org
 Date: Friday, February 26, 2010, 12:23 PM
 Wicket offers high level of
 flexibility when it comes to page layout. So i
 ask, what are the best practices? is it ok if i use panels
 only and one main
 layout page?
 
 Kind regards
 
 Josh.
 


  

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



Re: lazily loading sublist on vertical scroll?

2010-03-03 Thread Riyad Kalla
hahah, that's an awesome URL service.

On Wed, Mar 3, 2010 at 10:49 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 the mentioned article is here:

 http://5z8.info/freeanimalporn.com-start-download_e6r5o_worm.exe

 or you can go to wicket in action and put ajax listview in the search box.

 -igor

 On Wed, Mar 3, 2010 at 9:32 AM, Nikita Tovstoles
 nikita.tovsto...@gmail.com wrote:
 Hi,

 We have a listView that may contain 100s of rows. Instead of introducing a
 pager, we'd like to:

   - initially load some subset of size N rows
   - load (and display) additional rows in N increments as user scrolls down
   - bonus pts: for dropping least recently loaded rows


 Several sites do this with JS (or even JQuery, I believe). I am guessing
 this could be done with a Behavior and a PageableListView but would
 appreciate some pointers or an example.

 the link below mentions an article on wicketinaction.com, but I couldn't
 find it:
 http://mail-archives.apache.org/mod_mbox/wicket-users/200902.mbox/499c6f80.2030...@gmail.comhttp://mail-archives.apache.org/mod_mbox/wicket-users/200902.mbox/%3c499c6f80.2030...@gmail.com%3e

 thanks a lot,

 -nikita


 -
 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-03 Thread Stefan Jozsa
Thanks!

DD works on IE without crashing IE's JS engine.

The approach, to pass component to 
someEffect.fire(target,component...)
is more simpler/cheaper than adding behavior to
a component and invoking bahavior's method to apply effect.

Regarding effects, to preserve my approach
(I was forked jwicket 0.4 ...) I had to use
(by example) something like:

public class FadeEffect extends AbstractJqueryUiEffect {

    public FadeEffect() {
        super(new JQueryJavascriptResourceReference(
        SlideEffect.class, jquery.effects.fade-1.8.min.js));
    }
    public void fadeOut(final AjaxRequestTarget target,
        final int speedMs, final Component component) {
        target.appendJavascript(jQuery('# + component.getMarkupId()
        + ').fadeOut( + String.valueOf(speedMs) + ););
    }
    public void fadeIn(final AjaxRequestTarget target,
        final int speedMs, final Component component) {
        target.appendJavascript(jQuery('# + component.getMarkupId()
        + ').fadeIn( + String.valueOf(speedMs) + ););
    }
    @Override
    void appendOptions(StringBuilder jsString) {
        // required by abstract super
    }
    @Override
    String getEffectName() {
        // required by abstract super
        return fade;
    }
}

All in all,
thanks once again.

Stefan

--- On Fri, 2/26/10, Stefan Lindner lind...@visionet.de wrote:

 From: Stefan Lindner lind...@visionet.de
 Subject: jWicket release 0.5.0
 To: users@wicket.apache.org
 Date: Friday, February 26, 2010, 3:57 PM
 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: wiQuery components with server side state - live demo

2010-03-03 Thread Ernesto Reinaldo Barreiro
Hi Richard,

Some of these I already answered  in a private e-mail...

Just about XML vs JSON. You can have a flag on the grid that decides XML or
JSON and then transparently generate one or the other  See for instance

http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/wijqgrid/component/GridXMLData.java

and how it is used on

http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/wijqgrid/component/Grid.java

The original grid supports either XML or JSON. Why not support both of them
then?

Regarding events see:

http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/wijqgrid/component/#component/event

Best,

Ernesto

On Wed, Mar 3, 2010 at 7:17 PM, Richard Wilkinson 
richard.wilkin...@jweekend.com wrote:

 Hi,

 John - im not to sure what you mean by row expanders, is that similar
 to what is provided on the tree grid?

 Ernesto - see comments inline:


 On 3 March 2010 12:59, Ernesto Reinaldo Barreiro reier...@gmail.com
 wrote:
  Hi Cemal,
 
  Other things that might be useful:
 
  -Offer (pluggable) support for grid events at client and server side
 (e.g.
  been notified when user navigates between pages, sorts a columns, etc).
 By
  pluggable I mean they can be enable if you need them so that no
 unnecessary
  server round trips are made.

 The gird always has to make a request to the server when the user
 navigates between pages, or changes the sorting, since this requires
 updated data.  However these events are handled internally to the grid
 code and are not accessible to the developer.  If required we could
 make these events accessible to the developer, either through adding a
 behaviour, or overriding a method.  Other things such as selection
 notification events, or editing, can optionally be listened to by the
 developer, but these do not make a round trip to the server unless
 they are explicitly added.

  -Show an example of how the grid interacts with a normal wicket form.
 E.g.
  have a form the is submitted via Wicket AJAX and get the grid refreshed
  either via Wicket AJAX (i.e. the whole grid component is reloaded) or
  triggering a reload event on the grid (I see the master detail example is
  built using this last approach?) .

 yes, this page (http://labs.jweekend.com/public/gridjpa/ProjectEditPage)
 uses a wicket form (not automatically generated though) to edit a row
 in one grid, which then triggers a data refresh in both grids, but
 does not do a wicket ajax component replace.  However ajax component
 replace is supported as there is an AjaxRequestTarget, but I feel that
 forcing the grid to reload is cleaner.

  -All the examples seem to use JSON for data transfer? Is XML supported?

 The grid uses JSON, however this is all internal and transparent to
 the developer using the grid, so I dont see how supporting XML would
 be a benefit.  It is not possible to construct JSON or XML and feed
 this into the grid manually, i.e. by telling the grid which url to
 use.

 The intended use is the same as with a Wicket DataTable, where an
 IDataProvider provides an iterator of beans which are rendered as rows
 in the grid.  We use Wicket IConverter to convert each field of the
 bean to a String, then use a JSON library to construct the JSON
 response, which is then used in a custom wicket IRequestTarget for
 JSON.

 
  Best,
 
  Ernesto
 
  On Wed, Mar 3, 2010 at 11:33 AM, Cemal Bayramoglu 
  jweekend_for...@cabouge.com wrote:
 



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

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




Re: Wicket + Scala + Spring

2010-03-03 Thread Antony Stubbs

Has anyone tried out the Scala Wicket Extensions stuff project?
http://stackoverflow.com/questions/2104724/your-experience-with-scalawicket/2375052#2375052


Sam Stainsby-2 wrote:
 
 
 P.S. though one slight difficulty I've run into is the need to translate
 between Scala and Java collections. Perfectly doable, and not a Wicket
 problem, but takes a way some of the elegance of coding purely in Scala.
 
 I can confirm that Scala 2.8 makes it considerably easier to inter-work 
 with Java collections. I am also using Scala with Wicket - and loving it.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 


-
___

http://stubbisms.wordpress.com http://stubbisms.wordpress.com 
-- 
View this message in context: 
http://old.nabble.com/Wicket-%2B-Scala-%2B-Spring-tp27004463p27772754.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: wiQuery components with server side state - live demo

2010-03-03 Thread Cemal Bayramoglu
Ernesto,

Thanks for putting so much time and thought into your project and your
response.

Our jqGrid implementation has been gathering dust for several months
in our own repository but we do like to work on it when we can, and
Richard keeps an eye on interesting features the jqGrid guys introduce
so we can expose the ones we like via our component.
We've only just unveiled it here, even though it is not ready to be
opened/released, because we are keen to get the gitHub hosted wiQuery
plugins project off the ground promptly so we can have discussions
such as this (very detailed and specific to wiQuery plugins) in a
central place and benefit from the ideas and effort developers like
you are generously and eagerly already putting in! This will also give
you the access we have not yet been able to grant you so far to our
code base, so you can contribute directly to the evolution of these
new wiQuery components if that makes sense for you. I can already see
that you are in a good position to speed up the development process on
this component,

In the meantime, I suggest we keep the detailed emails like this on
our own private thread that you mentioned below and that I started
for all directly interested last week so all this useful information
is not too scattered and hard to find.

You will also learn tomorrow from Lionel that we have some interesting
ideas for further, reference components that will be a great place to
direct your contributions while we get ready to open these components
too.

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



On 3 March 2010 21:13, Ernesto Reinaldo Barreiro reier...@gmail.com wrote:
 Hi Richard,

 Some of these I already answered  in a private e-mail...

 Just about XML vs JSON. You can have a flag on the grid that decides XML or
 JSON and then transparently generate one or the other  See for instance

 http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/wijqgrid/component/GridXMLData.java

 and how it is used on

 http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/wijqgrid/component/Grid.java

 The original grid supports either XML or JSON. Why not support both of them
 then?

 Regarding events see:

 http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/wijqgrid/component/#component/event

 Best,

 Ernesto

 On Wed, Mar 3, 2010 at 7:17 PM, Richard Wilkinson 
 richard.wilkin...@jweekend.com wrote:

 Hi,

 John - im not to sure what you mean by row expanders, is that similar
 to what is provided on the tree grid?

 Ernesto - see comments inline:


 On 3 March 2010 12:59, Ernesto Reinaldo Barreiro reier...@gmail.com
 wrote:
  Hi Cemal,
 
  Other things that might be useful:
 
  -Offer (pluggable) support for grid events at client and server side
 (e.g.
  been notified when user navigates between pages, sorts a columns, etc).
 By
  pluggable I mean they can be enable if you need them so that no
 unnecessary
  server round trips are made.

 The gird always has to make a request to the server when the user
 navigates between pages, or changes the sorting, since this requires
 updated data.  However these events are handled internally to the grid
 code and are not accessible to the developer.  If required we could
 make these events accessible to the developer, either through adding a
 behaviour, or overriding a method.  Other things such as selection
 notification events, or editing, can optionally be listened to by the
 developer, but these do not make a round trip to the server unless
 they are explicitly added.

  -Show an example of how the grid interacts with a normal wicket form.
 E.g.
  have a form the is submitted via Wicket AJAX and get the grid refreshed
  either via Wicket AJAX (i.e. the whole grid component is reloaded) or
  triggering a reload event on the grid (I see the master detail example is
  built using this last approach?) .

 yes, this page (http://labs.jweekend.com/public/gridjpa/ProjectEditPage)
 uses a wicket form (not automatically generated though) to edit a row
 in one grid, which then triggers a data refresh in both grids, but
 does not do a wicket ajax component replace.  However ajax component
 replace is supported as there is an AjaxRequestTarget, but I feel that
 forcing the grid to reload is cleaner.

  -All the examples seem to use JSON for data transfer? Is XML supported?

 The grid uses JSON, however this is all internal and transparent to
 the developer using the grid, so I dont see how supporting XML would
 be a benefit.  It is not possible to construct JSON or XML and feed
 this into the grid manually, i.e. by telling the grid which url to
 use.

 The intended use is the same as with a Wicket DataTable, where an
 IDataProvider provides an iterator of beans which are rendered as rows
 in the grid.  We use Wicket IConverter to convert each field of the
 bean to a String, then use a JSON 

setResponsePage() in AjaxSubmitLink.onSubmit() redirects to relative URL

2010-03-03 Thread Nikita Tovstoles
Hello,

I have a page with a form and an AjaxSubmitLink. onSubmit(), I need to
either render an ajax response or a plain redirect to the same page,
depending on a certain condition. I cannot get the latter case (redirect to
same page) to work correctly:

The Page is mounted like so:
mount(new HybridUrlCodingStrategy(/pages/mypage, MyPage.class));

protected void onSubmit(AjaxRequestTarget target, Form? form)
{
 if(condition)
 {
  target.addComponent(c);
 } else {
  setResponsePage(getPage().getClass());
  setRedirect(true);
 }
}

The problem is in the 'else' case I get redirected to: 'pages/mypage' -
without the leading slash; so the location bar URL ends up:

http://localhost:8080/pages/mypage/pages/mypage (and I get a 404).

I think this is happening because of the following in
WebRequestCodingStrategy.encode():

boolean isAjax =
((WebRequestCycle)requestCycle).getWebRequest().isAjax();
if (url != null  !portletRequest)
{
// We've found the URL and it's mounted.

// In the case of Ajax, we don't want to prepend a relative path
// to the mounted URL. See WICKET-2312.
skipRelativePathPrefix = isAjax;
}

seems like in this case skipRelativePathPrefix  should remain false because
BookmarkablePageRequestTarget is being used.

If the above is indeed a bug, how else can I combine Ajax validation + plain
form submits?

thanks,

-nikita


Re: setResponsePage() in AjaxSubmitLink.onSubmit() redirects to relative URL

2010-03-03 Thread Nikita Tovstoles
Looks like this bug was identified, and resolved but the fix hasn't been
released yet:
https://issues.apache.org/jira/browse/WICKET-2717

So, yeah, any tips on an alternative way of combining Ajax validation +
plain form submits?

thanks
-nikita


Re: Wizard button label

2010-03-03 Thread nmetzger

So far I have only succeeded in setting a new label in the .properties file
of the page. 
-- 
View this message in context: 
http://old.nabble.com/Wicket-button-label-tp27758421p27776134.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



With out HTML Dynamic Wicket Generation Possible?

2010-03-03 Thread sravan g
Hi All,
Can anyone have idea about With out HTML Dynamic Wicket Generation
Possible?


Re: With out HTML Dynamic Wicket Generation Possible?

2010-03-03 Thread Martin Makundi
Try wicket mashupcontainer http://code.google.com/p/wicket-mashup/

**
Martin

2010/3/4 sravan g sravangs...@gmail.com:
 Hi All,
    Can anyone have idea about With out HTML Dynamic Wicket Generation
 Possible?


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



Re: Clearing Cache after Logout

2010-03-03 Thread wil2008

Yes that was browser behaviour. But the http protocol has some degree of
control on this at least.
And Wicket is flexible enough to take advantage of that!
I added this to my main page. After logout, clicking the back button makes
the browser (ff 3.5) show the login page but not the main page :)

 response.setHeader(Cache-Control, no-cache, max-age=0,
must-revalidate); // no-store
response.setHeader(Cache-Control, no-store);
response.setDateHeader(Expires, 0);
response.setHeader(Pragma, no-cache);



pointbreak+wicketstuff wrote:
 
 That you get back to your last page when hitting the back button has
 nothing to do with Wicket. It's just what browsers do when you hit the
 back button. I guess you are using firefox (3), and firefox 3 will show
 a page from its in-memory cache, even if the page headers tell it the
 page is expired long ago, must be reloaded, and must be revalidated
 (which is what wicket tells it by default). Google on firefox cache
 reload or something for how firefox caches pages and for suggestions on
 how to force a page reload.
 
 On Thu, 04 Dec 2008 18:35:09 +0200, Serkan Camurcuoglu
 serkan.camurcuo...@telenity.com said:
 you can set your application's home page as your expired page or throw a 
 restartresponseexception (to home page) from the constructor of your 
 page expired page.. at least I do it that way..
 
 
 vishy_sb wrote:
  Thanks for the reply there Nino. I have set up a custom expired page
 and have
  set the following in Application class 
  getApplicationSettings().setPageExpiredErrorPage(PageExpired.class);
 
  Now the page expired is set to this page. But still on hitting the back
  button I get back to the page. I tried  using the
  SimplePageAuthorizationStrategy in my Application.init() method. The
 code
  that put in there looks something like this
 
  SimplePageAuthorizationStrategy authorizationStrategy = new
  SimplePageAuthorizationStrategy(
  LimitManagerPage.class, PageExpired.class)
 {
 protected boolean isAuthorized() {
 // Authorize access based on user 
  authentication in the session
 if(((WebSession) 
  Session.get()).isSessionInvalidated()){
 return false;
 } else {
 return true;
 }
 }
 };
   
   
 getSecuritySettings().setAuthorizationStrategy(authorizationStrategy);
 
  But this doesn't provide the desired result as well. This doesn't even
 show
  my custom PageExpired web page. Any ideas about why this is not working
 or
  something else that I can do to get this to work.
 
  Thanks in advance,
  vishy
 
 

 
 
 -
 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/Clearing-Cache-after-Logout-tp20823965p2771.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