Re: Why isn't my stateless form recreated from page parameters automatically?

2011-08-06 Thread Joe Fawzy
Hi
it seems that

item.add(new TextField("itemId", new
PropertyModel(item.**getModel(),
"itemId")));

should be

item.add(new TextField("itemId", new
PropertyModel(item.**getModelObject(),
"itemId")));

Joe

On Mon, Aug 1, 2011 at 6:35 PM, Mike Mander  wrote:

> Hi,
>
> i would like to build up a stateless page for collecting an itemId and an
> amount from my user.
> The website should act as a direct shopping formular. The user only should
> insert the data
> and on form submission the itemId is checked for existence.
> A helper button should clear the field values from the appropriate row. All
> has to work
> without any javascript.
>
> My intention was that i create the stateless page, present it to the user,
> collect the data,
> submit the form, clear the row data and present the stateless page again to
> the user
> with data in row cleared. But i don't get it to work.
>
> My question: If i post the form an page is coming back everything is
> recreated and the values
> from the page parameters are not deployed to appropriate components
> automatically.
> Do i have to do this by hand? Or is there a way?
>
> I use wicket 1.4.17.
>
> Thanks for helping me
> Mike
>
> 
> HomePage.java
> import java.util.Arrays;
> import java.util.List;
>
> import org.apache.wicket.**PageParameters;
> import org.apache.wicket.devutils.**stateless.StatelessComponent;
> import org.apache.wicket.markup.html.**WebPage;
> import org.apache.wicket.markup.html.**form.Button;
> import org.apache.wicket.markup.html.**form.StatelessForm;
> import org.apache.wicket.markup.html.**form.TextField;
> import org.apache.wicket.markup.html.**list.ListItem;
> import org.apache.wicket.markup.html.**list.ListView;
> import org.apache.wicket.model.**PropertyModel;
>
> @StatelessComponent
> public class HomePage extends WebPage {
>
>public HomePage(final PageParameters parameters) {
>super(parameters);
>final StatelessForm form;
>add(form = (StatelessForm) new StatelessForm("form"));
>form.add(new ListView("item", items()) {
>
>@Override
>protected void populateItem(final ListItem item) {
>item.add(new TextField("itemId", new
> PropertyModel(item.**getModel(), "itemId")));
>item.add(new TextField("amount", new
> PropertyModel(item.**getModel(), "amount")));
>item.add(new Button("clearContent") {
>@Override
>public void onSubmit() {
>item.getModelObject().clear();
>}
>});
>}
>}.setReuseItems(true));
>}
>
>private List items() {
>return Arrays.asList(new ItemModel(0), new ItemModel(1));
>}
> }
> 
>
> ItemModel.java
> 
> import org.apache.wicket.util.string.**Strings;
>
> public class ItemModel {
>
>private String _itemId = null;
>private int _amount = 1;
>private int _pos = 0;
>
>public ItemModel(int pos) {
>_pos = pos;
>System.out.println(this);
>}
>
>public ItemModel(String key) {
>if (!Strings.isEmpty(key)) {
>String[] parts = key.split("-");
>setPos(Integer.valueOf(parts[**0]).intValue());
>setItemId(String.valueOf(**parts[1]));
>setAmount(Integer.valueOf(**parts[2]).intValue());
>}
>}
>
>public int getAmount() {
>return _amount;
>}
>
>public void setAmount(int amount) {
>_amount = amount;
>}
>
>public String getItemId() {
>return _itemId;
>}
>
>public void setItemId(String itemId) {
>_itemId = itemId;
>}
>
>public int getPos() {
>return _pos;
>}
>
>public void setPos(int pos) {
>_pos = pos;
>}
>
>public String createKey() {
>StringBuilder key = new StringBuilder().append(getPos(**
> )).append("-").append(**getItemId()).append("-").**append(getAmount());
>return key.toString();
>}
>
>public void clear() {
>setItemId(null);
>setAmount(1);
>}
> }
> 
>
> HomePage.html
> 
> http://wicket.**apache.org/dtds.data/wicket-**
> xhtml1.4-strict.dtd"
> >
> 
> Wicket Quickstart Archetype Homepage
> 
> 
> Wicket Quickstart Archetype Homepage
> 
> Home
> 
> 
> 
> Item
> Amount
> Clear content
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@wicket.**apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Fragment caching???

2011-08-06 Thread Joe Fawzy
Hi
is there something equivelant to fragment caching in wicket?
I mean , is there any way to cache the generated markup of a  component, and
on subsequent requests it just render this markup string?
if so, how one can store these fragments in external store? how that can be
configured or plugged in? to use some central caching like redis or
memcached

thanks

Joe


Re: serialization problem with spring

2011-07-31 Thread Joe Fawzy
Hi

actually for testing , i tried using the new kryo-serializer from wicket
stuff
IT DOES NOT WORK, actually it has many more errors than the default one,
actuallly it cannot serialize a JdkDynamicProxy which is the basis for
injection
If someone have a solution or workaround , please help
Thanks
Joe

On Mon, Aug 1, 2011 at 8:10 AM, Joe Fawzy  wrote:

> Hi
>
> i am living on the edge ,using wicket 1.5RC5.1 (the latest)
> and also using the newly released Spring data-jpa project for data access
>
> i do not use or reference PersistenceExceptionTranslationInterceptor
> directly, actually i never know it is there  till i saw that error
>
> based on its name it is an interceptor which translate the jpa or jdbc
> exception to spring's counterpart
>
> in AccountManager there is an instance of AccountDAO which use this
> persistence technology
>
> i thought it might be a solution to use kryo serialization as it does not
> require the object to be serializable, but the site does not recommend using
> it in production as it is in its early stages and not yet stable
>
> Any help please?
>
> Thanks
>
> Joe
>
> On Mon, Aug 1, 2011 at 4:35 AM, Dan Retzlaff  wrote:
>
>> Hi Joe,
>>
>> Based on the depth of that serialization stack, I doubt it's your
>> AccountManager proxy that's giving you problems. I usually just breakpoint
>> NotSerializableException and walk up the stack to find the culprit. Any
>> change your CreatePage uses a method on AccountManager that returns an
>> object with PersistenceExceptionTranslationInterceptor, then holds a
>> reference to it? If so, that'll be a problem since Wicket doesn't know to
>> proxy that one.
>>
>> Dan
>>
>> On Sun, Jul 31, 2011 at 5:08 PM, Joe Fawzy  wrote:
>>
>> > Hi
>> > i have a serialization problem with spring
>> > My CreatePage class looks like:-
>> >
>> > public class CreatePage extends WebPage{
>> >@SpringBean
>> >AccountManager accountManager;
>> > }
>> >
>> > as i am using @SpringBean , it should handle creating a serializable
>> proxy
>> > for me BUT
>> >
>> > i got the following exception
>> >
>> >
>> >
>> > ERROR - JavaSerializer - Error serializing object class
>> > com.app.view.account.CreatePage [object=[Page class =
>> > com.app.view.account.CreatePage, id = 1, render count = 1]]
>> > java.io.NotSerializableException:
>> >
>> org.springframework.dao.support.PersistenceExceptionTranslationInterceptor
>> > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
>> > at
>> >
>> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
>> > at
>> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
>> > at
>> >
>> >
>> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
>> > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>> > at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
>> > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
>> > at
>> >
>> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
>> > at
>> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
>> > at
>> >
>> >
>> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
>> > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>> > at
>> >
>> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
>> > at
>> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
>> > at
>> >
>> >
>> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
>> > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>> > at
>> >
>> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
>> > at
>> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
>> > at
>> >
>> >
>> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
>> > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>> > at
>> >
>> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
>> > at
>> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:

Re: serialization problem with spring

2011-07-31 Thread Joe Fawzy
Hi

i am living on the edge ,using wicket 1.5RC5.1 (the latest)
and also using the newly released Spring data-jpa project for data access

i do not use or reference PersistenceExceptionTranslationInterceptor
directly, actually i never know it is there  till i saw that error

based on its name it is an interceptor which translate the jpa or jdbc
exception to spring's counterpart

in AccountManager there is an instance of AccountDAO which use this
persistence technology

i thought it might be a solution to use kryo serialization as it does not
require the object to be serializable, but the site does not recommend using
it in production as it is in its early stages and not yet stable

Any help please?

Thanks

Joe

On Mon, Aug 1, 2011 at 4:35 AM, Dan Retzlaff  wrote:

> Hi Joe,
>
> Based on the depth of that serialization stack, I doubt it's your
> AccountManager proxy that's giving you problems. I usually just breakpoint
> NotSerializableException and walk up the stack to find the culprit. Any
> change your CreatePage uses a method on AccountManager that returns an
> object with PersistenceExceptionTranslationInterceptor, then holds a
> reference to it? If so, that'll be a problem since Wicket doesn't know to
> proxy that one.
>
> Dan
>
> On Sun, Jul 31, 2011 at 5:08 PM, Joe Fawzy  wrote:
>
> > Hi
> > i have a serialization problem with spring
> > My CreatePage class looks like:-
> >
> > public class CreatePage extends WebPage{
> >@SpringBean
> >AccountManager accountManager;
> > }
> >
> > as i am using @SpringBean , it should handle creating a serializable
> proxy
> > for me BUT
> >
> > i got the following exception
> >
> >
> >
> > ERROR - JavaSerializer - Error serializing object class
> > com.app.view.account.CreatePage [object=[Page class =
> > com.app.view.account.CreatePage, id = 1, render count = 1]]
> > java.io.NotSerializableException:
> >
> org.springframework.dao.support.PersistenceExceptionTranslationInterceptor
> > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
> > at
> >
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> > at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> > at
> >
> >
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> > at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> > at
> >
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> > at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> > at
> >
> >
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> > at
> >
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> > at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> > at
> >
> >
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> > at
> >
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> > at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> > at
> >
> >
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> > at
> >
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> > at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> > at
> >
> >
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> > at
> >
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> > at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> > at
> >
> >
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> > at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> > at
> >
> java.io.Objec

serialization problem with spring

2011-07-31 Thread Joe Fawzy
Hi
i have a serialization problem with spring
My CreatePage class looks like:-

public class CreatePage extends WebPage{
@SpringBean
AccountManager accountManager;
}

as i am using @SpringBean , it should handle creating a serializable proxy
for me BUT

i got the following exception



ERROR - JavaSerializer - Error serializing object class
com.app.view.account.CreatePage [object=[Page class =
com.app.view.account.CreatePage, id = 1, render count = 1]]
java.io.NotSerializableException:
org.springframework.dao.support.PersistenceExceptionTranslationInterceptor
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at
org.apache.wicket.serialize.java.JavaSerializer.serialize(JavaSerializer.java:77)
at
org.apache.wicket.pageStore.DefaultPageStore.serializePage(DefaultPageStore.java:356)
at
org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:142)
at
org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.storeTouchedPages(PageStoreManager.java:377)
at
org.apache.wicket.page.RequestAdapter.commitRequest(RequestAdapter.java:171)
at
org.apache.wicket.page.AbstractPageManager.commitRequest(AbstractPageManager.java:94)
at
org.apache.wicket.page.PageManagerDecorator.commitRequest(PageManagerDecorator.java:68)
at
org.apache.wicket.page.PageAccessSynchronizer$2.commitRequest(PageAccessSynchronizer.java:213)
at org.apache.wicket.Application$2.onDetach(Application.java:1548)
at
org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:100)
at
org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:96)
at
org.apache.wicket.util.listener.ListenerCollection.reversedNotify(ListenerCollection.java:121)
at
org.apache.wicket.util.listener.ListenerCollection.reversedNotify(ListenerCollection.java:112)
at
org.apache.wicket.request.cycle.RequestCycleListenerCollection.onDetach(RequestCycleListenerCollection.java:94)
at
org.apache.wicket.request.cycle.RequestCycle.onDetach(RequestCycle.java:540)
at
org.apache.wicket.request.cycle.RequestCycle.detach(RequestCycle.java:479)
at
org.apache.wicket

ComponentInitializationListener and the new 1.5 initialization

2011-03-18 Thread Joe Fawzy
Hi
does ComponentInitializationListener now have access to the markup as the
component.onInitialize()
Thanks
Joe


Re: Page#onInitialize is final in 1.5RC2 ?

2011-03-06 Thread Joe Fawzy
if Page#onInitialize will remain final can i use onMarkupAttached
instead for the same purpose?
Thanks
Joe

On Mon, Mar 7, 2011 at 12:40 AM, Joe Fawzy  wrote:

> The jira issue said it has been fixed since RC1 and as i can see , it is
> final in RC2
> does that men that Page#onInitialize will remain final?
> thanks
> Joe
>
>
> On Sat, Mar 5, 2011 at 11:06 AM, Martin Grigorov wrote:
>
>> https://issues.apache.org/jira/browse/WICKET-3218
>> There is a thread in the mailing list. Search in Nabble.
>>
>> On Sat, Mar 5, 2011 at 7:00 AM, Joe Fawzy  wrote:
>>
>> > Hi
>> > Page#onInitialize is final in 1.5RC2
>> > i think this method ment to be overridden?
>> > am i missing something?
>> > Thanks
>> >
>>
>
>


Re: Page#onInitialize is final in 1.5RC2 ?

2011-03-06 Thread Joe Fawzy
The jira issue said it has been fixed since RC1 and as i can see , it is
final in RC2
does that men that Page#onInitialize will remain final?
thanks
Joe

On Sat, Mar 5, 2011 at 11:06 AM, Martin Grigorov wrote:

> https://issues.apache.org/jira/browse/WICKET-3218
> There is a thread in the mailing list. Search in Nabble.
>
> On Sat, Mar 5, 2011 at 7:00 AM, Joe Fawzy  wrote:
>
> > Hi
> > Page#onInitialize is final in 1.5RC2
> > i think this method ment to be overridden?
> > am i missing something?
> > Thanks
> >
>


Page#onInitialize is final in 1.5RC2 ?

2011-03-04 Thread Joe Fawzy
Hi
Page#onInitialize is final in 1.5RC2
i think this method ment to be overridden?
am i missing something?
Thanks


Page.add is final in 1.5 RC2

2011-03-02 Thread Joe Fawzy
Hi
Container.add is not final
why page.add and page.onInitialize is final methods

thanks


Re: [announce] Wicket Security 1.4 released!

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

any pointers?

thanks
Joe

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

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


Re: [PROPOSAL] Application.runAs() Method...

2010-05-26 Thread Joe Fawzy
Hi
Please make this configurable(can be disabled) as i am on appengine, they
does not allow threads
thanks
Joe

On Tue, May 25, 2010 at 4:34 PM, James Carman wrote:

> Sorry, subject should be wrap() method, not runAs().
>
> On Tue, May 25, 2010 at 9:33 AM, James Carman
>  wrote:
> > I've been thinking about this whole idea of needing to access the
> > application object in different threads idea.  What if the Application
> > class had a method like this:
> >
> > public Runnable wrap(Runnable task)
> >
> > Basically, the Application would create a Runnable object that can be
> > run within the context of itself (by setting/clearing the ThreadLocal
> > variable).  Then, you can use that Runnable anywhere to run a task
> > with all of the appropriate Wickety goodness set up for you (except
> > for the request cycle of course because you're not executing within a
> > request cycle).  Now, what the Application stores in the Runnable
> > doesn't have to be the Application itself.  We can set up a static
> > Map> object on the Application class
> > and when an Application is constructed, it registers itself (the key
> > could be a UUID.randomUUID().toString()).  Then, we could have a
> > method like
> >
> > public static Application get(String id);
> >
> > on the Application class to get back the original Application object.
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Another Wicket Site

2010-05-20 Thread Joe Fawzy
lovely , needs some tweeks for google chrome
joe

On Wed, May 19, 2010 at 8:36 PM, chinedubond  wrote:

> nice love seeing Nigerians doing great things
> keep it up .
>
> On Tue, May 18, 2010 at 10:55 PM, Ajayi Yinka
>  wrote:
> > No doubt of a nicer alpha version. Keep it up.
> >
> > On Tue, May 18, 2010 at 4:54 PM, Ayodeji Aladejebi  >wrote:
> >
> >> Hi all,
> >> just to announce another wicket project I am working on. we
> >> just launched the beta version
> >>
> >> http://www.nelexnigeria.com
> >>
> >>
> >>
> >> --
> >> Aladejebi Ayodeji A.,
> >> DabarObjects Solutions
> >> Phone: +234 9 875 1763
> >> Mobile: +234 803 589 1780
> >> Email: d...@dabarobjects.com
> >> Web: www.dabarobjects.com
> >>
> >
> >
> >
> > --
> > Ajayi S . Yinka
> > +2348022684477
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: adding behaviours

2010-05-20 Thread Joe Fawzy
hey, what is the prefered approach?
thanks
joe

On Wed, May 19, 2010 at 7:12 AM, Joe Fawzy  wrote:

> Hi
> i have a large number of components in a page that i have to add the same
> behaviour
> should i use the same instance for all or instansiate one for every
> component(that's what i am currently doing);
> thanks
> Joe
>


adding behaviours

2010-05-18 Thread Joe Fawzy
Hi
i have a large number of components in a page that i have to add the same
behaviour
should i use the same instance for all or instansiate one for every
component(that's what i am currently doing);
thanks
Joe


Re: efficient resource downloading

2010-05-10 Thread Joe Fawzy
Hi dear
actually , access control and dynamic file generation requires using
services which is injected by spring
this cannot be easily done in pure servlet

my current solution using spring @Controller and write diretly to the
servlet response is somethingvery similar to writing a servlet
but as i am planning to deploy on appengine, the startup time for spring
especially when using spring mvc cannot be accepted (more than 30 sec)

so i am tring to figure out a pure wicket solution

thanks for your help
Joe

On Mon, May 10, 2010 at 5:34 AM, Igor Vaynberg wrote:

> write a servlet
>
> -igor
>
> On Sun, May 9, 2010 at 6:37 PM, Joe Fawzy  wrote:
> > Hi
> > i want to know if this is an efficient way to download some files
> >
> > i want my users to be able to download certain files just to registerd
> users
> > only so i can put that logic in the page constructor
> > but is this efficient way to do this as this may be called thausands of
> > times per hour   (the files generated dynamically)
> > does the construction of a page and all the other bits is heavy for such
> a
> > task
> >
> > i am using spring MVC right now with its rest style model and annotation
> but
> > it seems to me too heavyweight for the task
> >
> > so is this appropriate?
> > is there another way more efficient?
> >
> > public class DownloadManagerPage extends WebPage{
> >private static final long serialVersionUID = 1L;
> >
> >public DownloadManagerPage(PageParameters parameters) {
> >super(parameters);
> >if (registeredUser(parameters)) {
> >getRequestCycle().setRequestTarget(new
> > ResourceStreamRequestTarget(new AbstractResourceStreamWriter() {
> >private static final long serialVersionUID = 1L;
> >public void write(OutputStream output) {
> >output
> >}
> >
> >public String getContentType() {
> >return ..;
> >}
> >}));
> >}
> >}
> >
> >private boolean registeredUser(PageParameters parameters) {
> >return ;
> >}
> > }
> >
> > thanks in advance
> > Joe
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


efficient resource downloading

2010-05-09 Thread Joe Fawzy
Hi
i want to know if this is an efficient way to download some files

i want my users to be able to download certain files just to registerd users
only so i can put that logic in the page constructor
but is this efficient way to do this as this may be called thausands of
times per hour   (the files generated dynamically)
does the construction of a page and all the other bits is heavy for such a
task

i am using spring MVC right now with its rest style model and annotation but
it seems to me too heavyweight for the task

so is this appropriate?
is there another way more efficient?

public class DownloadManagerPage extends WebPage{
private static final long serialVersionUID = 1L;

public DownloadManagerPage(PageParameters parameters) {
super(parameters);
if (registeredUser(parameters)) {
getRequestCycle().setRequestTarget(new
ResourceStreamRequestTarget(new AbstractResourceStreamWriter() {
private static final long serialVersionUID = 1L;
public void write(OutputStream output) {
output
}

public String getContentType() {
return ..;
}
}));
}
}

private boolean registeredUser(PageParameters parameters) {
return ;
}
}

thanks in advance
Joe


about serialVersionUID in all components

2010-05-08 Thread Joe Fawzy
Hi all

what are the side effects of setting serialVersionUID  on all page classes
and components
private static final long serialVersionUID = 1L;

i am developing an application which will be deployed on appengine
appengine handle sessions by storing them in the memcache and data store as
there is no local filesystem
for its memcache everything must be Serializable, and as the session is
stored in the datastore , your session may last for several weeks even if
the web container expires it
Ok, when i develop my classes may change a lot hence the
auto serialVersionUID changes, making appengine complain as its session does
not expires

anyway , i think setting private static final long serialVersionUID = 1L; on
every component will resolve it on appengine side,
but ,what about wicket side? does it have any implications or side effects?

thanks
Joe


change or replace css file on page reload

2010-05-04 Thread Joe Fawzy
Hi all
i was wondering how could i change a css file on every page reload
i thought of using header contribution in onBeforeRender() ,  but it seams
to add the new the new css file
what i need is to replace a certain css on every render of a certain page

actually i can dynamically generate the css file using velocity or
freemarker ,but the question is how to replace the old css with the new one

thanks
Joe


Re: posting form outside wicket

2010-05-02 Thread Joe Fawzy
OK, got it
thanks
Joe

On Mon, May 3, 2010 at 1:22 AM, Jeremy Thomerson
wrote:

> Wicket is for creating web applications - not consuming them.  So, you
> handle all of the form processing, validation, etc, all through Wicket.
> Then
> in your onSubmit, you need to consume a different application.  Wicket's
> not
> built for that part.  HttpClient is.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Sun, May 2, 2010 at 5:19 PM, Joe Fawzy  wrote:
>
> > Hi dear
> > thanks for the prompt reply
> > aren't there any wicket method to do that?
> > then i have to cycle through all my form fields and get their params name
> > and values ,build a string ,make the request
> > OR there is a shortcut
> > thanks
> > Joe
> >
> > On Mon, May 3, 2010 at 1:14 AM, Igor Vaynberg  > >wrote:
> >
> > > use commons http client to issue an http post to the external server
> > >
> > > -igor
> > >
> > >
> > > On Sun, May 2, 2010 at 3:10 PM, Joe Fawzy  wrote:
> > > > Hi
> > > > i have a form that i want to post its data to a page outside wicket ,
> > > > actually on other server ,done in ruby
> > > > i wanna make use of wicket form handling,model binding and
> > validation...
> > > > etc. and when i click submit , the data sent to the other page using
> a
> > > post
> > > > thanks in advance
> > > > Joe
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> >
>


Re: posting form outside wicket

2010-05-02 Thread Joe Fawzy
Hi dear
thanks for the prompt reply
aren't there any wicket method to do that?
then i have to cycle through all my form fields and get their params name
and values ,build a string ,make the request
OR there is a shortcut
thanks
Joe

On Mon, May 3, 2010 at 1:14 AM, Igor Vaynberg wrote:

> use commons http client to issue an http post to the external server
>
> -igor
>
>
> On Sun, May 2, 2010 at 3:10 PM, Joe Fawzy  wrote:
> > Hi
> > i have a form that i want to post its data to a page outside wicket ,
> > actually on other server ,done in ruby
> > i wanna make use of wicket form handling,model binding and validation...
> > etc. and when i click submit , the data sent to the other page using a
> post
> > thanks in advance
> > Joe
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


posting form outside wicket

2010-05-02 Thread Joe Fawzy
Hi
i have a form that i want to post its data to a page outside wicket ,
actually on other server ,done in ruby
i wanna make use of wicket form handling,model binding and validation...
etc. and when i click submit , the data sent to the other page using a post
thanks in advance
Joe


Re: GAE serialization issues

2010-05-02 Thread Joe Fawzy
Hi dear
thanks for the reply
i 'm in the first steps of application deployment on appengine with no
problems so far with my manual testing and with jmeter
if u have any tips or hints , that will be greatly appreciated
Thanks
Joe

On Thu, Apr 29, 2010 at 5:30 PM, jbrookover  wrote:

>
> I can only say that I've been using Wicket on GAE for awhile and it seems
> to
> work pretty well, with some extra effort.  For now, I'm just using
> HttpSessionStore.  I asked in the GAE forums about the performance there
> and
> they said session storage made heavy use of the MemCache to keep
> performance
> strong.  It is possible that Wicket can store very LARGE objects in the
> SessionStore, but that may be an indication of poor page detaching.  After
> making that improvement, my session data rarely exceeds 100K.
>
> I may try out a pure MemCache version based on the link you provided, see
> if
> I can get it lower and less dependent on the session.
>
> The only other serialization issues I've noticed deal with changing model
> objects across requests - I instead am forced to replace components on
> occasion, instead of replacing model objects.  That's a hack right now and
> I'll look into it later.
>
> Don't know anything about JBoss.
>
> Jake
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/GAE-serialization-issues-tp2068427p2075571.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: GAE serialization issues

2010-04-29 Thread Joe Fawzy
Hi
Any ideas?
please i need these info asap ,i appreciate your help
thanks
Joe


On Wed, Apr 28, 2010 at 1:45 AM, Joe Fawzy  wrote:

> Hi everybody
> i am developing an application on the GAE/J platform using wicket
> as i read through this list ,it seems that it is not a recommended
> combination due to some issues , specially the serialization issue
> BUT i have to deploy on appengine, so what is there any recommendations?
>
> OK, the real question is:
>does anyone used the custom PageStore implementation described in:
> http://letsgetdugg.com/2010/02/07/clustering-wicket-for-fun-and-profit/
> or in:
> http://www.mail-archive.com/users@wicket.apache.org/msg46421.html
>
> in production and  found that of real help?
> if so which one is better?
> what are the side effects of using each?
> can i have an implementation that fallback to normal sessionStore?
>
> Another question
> as its related to seialization,  can using JBoss serialization lib make
> difference in GAE case? as it is much faster
> if so where are the hooks , or the interfaces to replace the default
> serialization
> BTW. i know it cannot be used in the core wicket due to its LGPL lic.
>
> Thanks
> Joe
>
>
>


Re: using selenium

2010-04-28 Thread Joe Fawzy
Hi
any tutorials, how to,or best practice?
thanks
Joe

On Wed, Apr 28, 2010 at 4:15 AM, Jeremy Thomerson  wrote:

> yes - the id path
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Tue, Apr 27, 2010 at 8:00 PM, Joe Fawzy  wrote:
>
> > Hi dear
> > what is wicket:path? do you mean the component id path,like:
> > page:panel1:form2:component4
> > or it is a library or what
> > any samples or pointers please
> > thanks
> > Joe
> >
> > On Wed, Apr 28, 2010 at 1:53 AM, Jeremy Thomerson <
> > jer...@wickettraining.com
> > > wrote:
> >
> > > I think most are using wicket:path (which is output in dev mode)
> > >
> > >
> > > Jeremy Thomerson
> > > http://www.wickettraining.com
> > > -- sent from a wireless device
> > >
> > >
> > > -Original Message-
> > > From: Joe Fawzy 
> > > Sent: Tuesday, April 27, 2010 6:13 PM
> > > To: users@wicket.apache.org
> > > Subject: using selenium
> > >
> > > Hi all
> > > i am building an application which use ajax heavily so i have to use
> > > component.setOutputMarkupId(true)
> > > this generate unique dom id for the components which changes every time
> i
> > > load the same page
> > > when using selenium , specially with its Firefox ide , it depends
> mainly
> > on
> > > the id attribute value and as this is dynamically generated by wicket
> ,it
> > > cannot work smoothly
> > >
> > > i can use xpath, but i then will lose some of the benefits of both
> > selenium
> > > and wicket,
> > > selenium , i cannot use its code generation capability as it generate
> > code
> > > based on the the id
> > >  of wicket(designer friendly markup) as i cannot freely change my
> markup,
> > > otherwise it will break my tests
> > >
> > > what is your experience
> > >
> > > thanks in advance
> > > Joe
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> >
>


Re: using selenium

2010-04-27 Thread Joe Fawzy
Hi dear
what is wicket:path? do you mean the component id path,like:
page:panel1:form2:component4
or it is a library or what
any samples or pointers please
thanks
Joe

On Wed, Apr 28, 2010 at 1:53 AM, Jeremy Thomerson  wrote:

> I think most are using wicket:path (which is output in dev mode)
>
>
> Jeremy Thomerson
> http://www.wickettraining.com
> -- sent from a wireless device
>
>
> -Original Message-
> From: Joe Fawzy 
> Sent: Tuesday, April 27, 2010 6:13 PM
> To: users@wicket.apache.org
> Subject: using selenium
>
> Hi all
> i am building an application which use ajax heavily so i have to use
> component.setOutputMarkupId(true)
> this generate unique dom id for the components which changes every time i
> load the same page
> when using selenium , specially with its Firefox ide , it depends mainly on
> the id attribute value and as this is dynamically generated by wicket ,it
> cannot work smoothly
>
> i can use xpath, but i then will lose some of the benefits of both selenium
> and wicket,
> selenium , i cannot use its code generation capability as it generate code
> based on the the id
>  of wicket(designer friendly markup) as i cannot freely change my markup,
> otherwise it will break my tests
>
> what is your experience
>
> thanks in advance
> Joe
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


GAE serialization issues

2010-04-27 Thread Joe Fawzy
Hi everybody
i am developing an application on the GAE/J platform using wicket
as i read through this list ,it seems that it is not a recommended
combination due to some issues , specially the serialization issue
BUT i have to deploy on appengine, so what is there any recommendations?

OK, the real question is:
   does anyone used the custom PageStore implementation described in:
http://letsgetdugg.com/2010/02/07/clustering-wicket-for-fun-and-profit/
or in:
http://www.mail-archive.com/users@wicket.apache.org/msg46421.html

in production and  found that of real help?
if so which one is better?
what are the side effects of using each?
can i have an implementation that fallback to normal sessionStore?

Another question
as its related to seialization,  can using JBoss serialization lib make
difference in GAE case? as it is much faster
if so where are the hooks , or the interfaces to replace the default
serialization
BTW. i know it cannot be used in the core wicket due to its LGPL lic.

Thanks
Joe


using selenium

2010-04-27 Thread Joe Fawzy
Hi all
i am building an application which use ajax heavily so i have to use
component.setOutputMarkupId(true)
this generate unique dom id for the components which changes every time i
load the same page
when using selenium , specially with its Firefox ide , it depends mainly on
the id attribute value and as this is dynamically generated by wicket ,it
cannot work smoothly

i can use xpath, but i then will lose some of the benefits of both selenium
and wicket,
selenium , i cannot use its code generation capability as it generate code
based on the the id
 of wicket(designer friendly markup) as i cannot freely change my markup,
otherwise it will break my tests

what is your experience

thanks in advance
Joe


Re: YUI 3 anyone?

2010-04-27 Thread Joe Fawzy
Hi
i hope the dev team to consider jQuery , it seams it is the standard now ,
used by all the big companies , even microsoft
and although YUI is great, Yahoo has its own problem these days and we
cannot consider the commited to the lib, they dropped support for many of
their products and abandond many projects in the last 2 years

this is my opinion only, u may make a vote or poll or something , or just
pick YUI
thanks
Joe
On Tue, Apr 27, 2010 at 6:13 PM, Jeremy Thomerson  wrote:

> Yes, it's experimental, and it is not 100% decided that YUI will be used.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Mon, Apr 26, 2010 at 6:03 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Isn't this an experimental branch?
> >
> > Ernesto
> >
> > On Mon, Apr 26, 2010 at 12:34 PM, danisevsky 
> wrote:
> > > I think wicket 1.5 will use YUI 3. You can look to svn:
> > >
> >
> http://svn.apache.org/repos/asf/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/_wicket/ajax/
> > >
> > >
> > > 2010/4/26 Istvan Soos 
> > >
> > >> Hi,
> > >>
> > >> Is there a cool best-practice or even better an integration library to
> > >> use YUI 3? I know the standard generic way, I'm interested
> > >> specifically in YUI 3...
> > >>
> > >> Thanks,
> > >>   Istvan
> > >>
> > >> -
> > >> 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: Asynchronous DataStore queries on GAE with Twig-persist and other DataStore related problems

2010-04-27 Thread Joe Fawzy
Hi dear
Begining from GAE sdk 1.3.2 , there is query cursors and you can have more
than 1000 result

On Mon, Apr 26, 2010 at 11:43 PM, Piotr Tarsa  wrote:

> Hello,
>
> I want to use Wicket with GAE and exploit all GAE features but some
> problems
> arise.
>
> 1. I'm looking for a good solution for asynchronous simulteanous queries in
> Wicket. DataStore has a functionality of asynchronous queries so I would
> want to be able to fire various queries before rendering anything and then
> return the actual model objects when rendering particular component. I
> think
> of an Interface (or, better, abstract class) extending IModel with an
> additional method, name it prepareModel() which would run the asynchronous
> query, so getObjet would just wait for the query to finish and then return
> the result (this way total time spend of waiting for DataStore queries will
> be at most equal to slowest query). DataStore entities are organized into
> Entity Groups where there are ancestors and descendants. So sometimes to
> find an object I must first find the ancestor. So I would want to fire the
> prepareModel() for parent components first.
>
> 2. DataStore doesn't support joins internally and it's queries are limited
> to 1000 results (this means that GQL COUNT will never return value higher
> than 1000 even if there's more that 1000 entities that mets the
> requirements). Instead DataStore provides cursors to retrieve more than
> 1000
> results and GAE devs recommends using separate sharded counters instead of
> GQL COUNT's (of course if the result would never exceed 1000 then we shall
> use normal GQL COUNT). Are there any components (repeaters) in Wicket that
> supports that approach?
>
> 3. I think that Wicket should be able to store pages from PageMap
> independently. This way we could store pages in separate entities in
> datastore (DataStore doesn't have schemas, one can store entities of any
> form as every kind) so fewer bytes would be transmitted to and from
> DataStore (Http Sessions are kept in MemCache and DiskStore).
>
> 4. How to inject an DataStore object in Models that will be testing
> friendly?
>


Re: Spring ROO & wicket

2009-06-21 Thread Joe Fawzy
Hi you 'll find yourself locked to eclipse in general, not specfically to
spring tools as eclipse is the only ide with full aspectj support , which is
required to open and edit ROO files
the code generation tool will clutter your workspace with big amount of .aj
files, and here is the role of spring tools, it hide these files by default
for u
Joe

On Sun, Jun 21, 2009 at 9:58 AM, Alex Objelean wrote:

>
> I think it is very customizable. I see the addons as a kind of maven
> archetype, but much better Also, I don't think it resume itself to
> spring related tools... therefore there should be no problems creating
> addons for wicket or other web frameworks.
>
> Alex Objelean
>
>
> igor.vaynberg wrote:
> >
> > how customizable is it? eg is it possible to write a plugin that would
> > generate wicket code instead of springmvc?
> >
> > -igor
> >
> > On Sat, Jun 20, 2009 at 2:48 PM, Joe Fawzy wrote:
> >> Hi deari think possibilities for integration is limited for the
> following
> >> reasons:
> >> ROO is using spring MVC for the web tier
> >> ROO utilize the REST pattern which is stateless by default while wicket
> >> strength is its ststeful nature
> >> ROO depends heavily on aspectj and spring tools
> >>
> >> if u use spring tools or eclipse , and u want use the data layer
> features
> >> of
> >> ROO , go ahead, this part is compatible with very much every web
> >> framework
> >> Joe
> >>
> >> On Sun, Jun 21, 2009 at 12:22 AM, Objelean Alex
> >> wrote:
> >>
> >>> Recently, I've discovered Spring ROO: a user customizable tooling that
> >>> enables rapid delivery of high performance enterprise Java
> >>> applications.  (http://www.springsource.org/roo). It doesn't have yet
> >>> a final release (the latest release is a milestone), but it already
> >>> have a lot of addons which can help you to build in minutes a complex
> >>> application. I think that it would be great to have someday an addon
> >>> for wicket.  I am curious what the community thinks about this tool.
> >>>
> >>> Alex Objelean
> >>>
> >>> -
> >>> 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://www.nabble.com/Spring-ROO---wicket-tp24129391p24132040.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: Spring ROO & wicket

2009-06-20 Thread Joe Fawzy
Hi deari think possibilities for integration is limited for the following
reasons:
ROO is using spring MVC for the web tier
ROO utilize the REST pattern which is stateless by default while wicket
strength is its ststeful nature
ROO depends heavily on aspectj and spring tools

if u use spring tools or eclipse , and u want use the data layer features of
ROO , go ahead, this part is compatible with very much every web framework
Joe

On Sun, Jun 21, 2009 at 12:22 AM, Objelean Alex wrote:

> Recently, I've discovered Spring ROO: a user customizable tooling that
> enables rapid delivery of high performance enterprise Java
> applications.  (http://www.springsource.org/roo). It doesn't have yet
> a final release (the latest release is a milestone), but it already
> have a lot of addons which can help you to build in minutes a complex
> application. I think that it would be great to have someday an addon
> for wicket.  I am curious what the community thinks about this tool.
>
> Alex Objelean
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: File upload without writing to temp file (on Google App Engine)

2009-06-20 Thread Joe Fawzy
Hi split it into small chunks and store each as a blob in datastore entity
Joe

On Sat, Jun 20, 2009 at 1:44 PM, Dolejs Vlastimil  wrote:

> Hi,
> I´m trying write wicket application for Google App Engine.
> App Engine has some restrictions, one of them is, that you can´t work with
> filesystem.
> I´m trying upload images with FileUploadField, but i get
> AccessControlException.
> Looking through source code i found there is DiskFileItemFactory, which
> puts large files (over 10kB) to temp files.
> Is there any way to redirect all data storing to memory?
>
> I also found, if I upload small file (smaller than 10kB) -
> DiskFileItemFactory store it in memory, but there is some FileCleaner class
> which cleans temp files and spawns new Thread (which is also restricted in
> App Engine). So it fails again on AccessControlException.
>
> Have you anybody solved problems with file uploads on App Engine?
>
> Thanks


Re: Conversation scope in wicket

2009-06-19 Thread Joe Fawzy
Hi dearfirst of all, why add another dependency,just for conversation
handling, while we have in wicket a strong ground for it
note: jsr299 is a big spec with a somehow complex lifecycle(which may not be
compatible with that of wicket) and really complicated bean resolution
strategy

second: wicket components are not 299 beans, wicket is an unmanaged
framework , u must create the components urself, not by the framework, which
is a requirement for jsr299
what can be done with web beans, is to inject its objects in wicket
components BUT u cannot manage wicket components as web beans , and for
example inject them or handle there lifecycle

Joe

On Fri, Jun 19, 2009 at 10:43 AM, janneru  wrote:

> hi james&joe,
>
> which are the issues with clint popetz's current work on the
> webbeans-wicket
> integration (already contained in the webbeans preview) that you would
> write
> your own?
>
> cheers, uwe.
>
>
> On Thu, Jun 18, 2009 at 8:05 PM, James Carman
> wrote:
>
> > JSR-299 is somewhat of a moving target right now, so it's hard to stay
> > up-to-date with it.  I'm mainly working with the OpenWebBeans folks on
> > it.
> >
> > On Thu, Jun 18, 2009 at 2:03 PM, Joe Fawzy  wrote:
> > >
> > > Hi all
> > >
> > > On Thu, Jun 18, 2009 at 7:44 AM, James Carman
> > > wrote:
> > >
> > > > On Thu, Jun 18, 2009 at 12:38 AM, Igor Vaynberg <
> > igor.vaynb...@gmail.com>
> > > > wrote:
> > > > >
> > > > > you are free to implement this as an open source addition to
> wicket.
> > > > > there is wicketstuff or googlecode or sf.net where you can host
> it.
> > > > >
> > > > > wicket is a ui framework and conversational scope management falls
> > > > > outside wicket's scope. it is our job to provide the hooks to make
> > > > > such things possible, not to provide an implementation.
> > > >
> > > > And, those hooks are very nice.  I would only ask for some more
> > > > listener registering opportunities (like for listening to request
> > > > cycle events like begin/end rather than having to implement your own
> > > > request cycle).
> > >
> > >
> > > Yes this is a much needed functionality
> > > i think we may cooperate in that thing
> > > can u start another mail discussion suggesting ur needs , and make
> > everyone
> > > participate
> > > Thanks
> > > Joe
> > >
> > >
> > >
> > > >
> > > >
> > > > -
> > > > 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: Conversation scope in wicket

2009-06-18 Thread Joe Fawzy
Hi Igor

On Wed, Jun 17, 2009 at 8:58 PM, Igor Vaynberg wrote:

> class mysession extends websesison {
>  private map> coversations;
>
>  public map getconversation(ipagemap pmap) {
>return conversations.get(pmap.getid());
>  }
> }


in your last code line , do you mean pmap.getName() instead of pmap.getId()
as i cannot find a public getId() in ipagemap

thanks
Joe



>
>
> -igor
>
> On Wed, Jun 17, 2009 at 10:29 AM, Joe Fawzy wrote:
> > Hi alli need to implement something like a conversation scope in wicket
> > i know that wicket is stateful by default and i can pass object o from
> page
> > A -> page B
> > But if Object o in page A which -> page B -> page C -> page D -> page E
> > and i need Object o in page E ,that will be very tedious to pass o all
> > throught the way from A > ..E
> > also if i need to pass a large number of objects between a set of pages
> > ,this will be a nightmare
> >
> > so How can i implement a Conversation object ala Session and store these
> > objects there
> >
> > i thought of using the IPageMap as a key in this situation as it
> represent
> > an open browser window or tab ie. conversation, but in a previous mail ,i
> > 've been tald that it cannot be extended easily, and i cannot provide my
> own
> > factory for one
> >
> > so, any ideas about the conversation scope?
> > what do u think about the pageMap ? will it work? is it reliable?
> > can the core team provide some hooks to implement something like
> > IPageMapFactory?
> >
> > thanks
> > Joe
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Conversation scope in wicket

2009-06-18 Thread Joe Fawzy
Hi all

On Thu, Jun 18, 2009 at 7:44 AM, James Carman
wrote:

> On Thu, Jun 18, 2009 at 12:38 AM, Igor Vaynberg 
> wrote:
> >
> > you are free to implement this as an open source addition to wicket.
> > there is wicketstuff or googlecode or sf.net where you can host it.
> >
> > wicket is a ui framework and conversational scope management falls
> > outside wicket's scope. it is our job to provide the hooks to make
> > such things possible, not to provide an implementation.
>
> And, those hooks are very nice.  I would only ask for some more
> listener registering opportunities (like for listening to request
> cycle events like begin/end rather than having to implement your own
> request cycle).


Yes this is a much needed functionality
i think we may cooperate in that thing
can u start another mail discussion suggesting ur needs , and make everyone
participate
Thanks
Joe



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


Re: Conversation scope in wicket

2009-06-18 Thread Joe Fawzy
Hi alli am working on a prototype which i think will convince you that
conversation is an important concept, it is very onject oriented as wicket
is and has many use cases

On Thu, Jun 18, 2009 at 7:38 AM, Igor Vaynberg wrote:

> you are free to implement this as an open source addition to wicket.
> there is wicketstuff or googlecode or sf.net where you can host it.
>
> wicket is a ui framework and conversational scope management falls
> outside wicket's scope. it is our job to provide the hooks to make
> such things possible, not to provide an implementation.


yes, u r right, wicket can'nt be everything for everyone ,but the question
is how much this hook thing is the responsibility of wicket
do you really think wicket is only ui framework?with no scopes so why u
support sessions? conversation is much like sessions, it is just narrowwer

Thanks
Joe



>
> -igor
>
> On Wed, Jun 17, 2009 at 9:36 PM, Joe Fawzy wrote:
> > Hiyou mean: injecting webbeans conversation component in wicket component
> at
> > construction time
> > this is only what we can achieve with webbeans, as wicket component
> cannot
> > be webbeans components (wicket is unmanaged framework)
> > my idea is about native conversation support, which enable wicket
> component
> > to be the component and the target for injection in a natural wicket way
> > beside, why depending on external project when we have all the
> functionality
> > we need as wicket is stateful and each pagemap is a conversation(long one
> > which may be easily break down to smaller pieces)
> >
> > Joe
> >
> >
> > On Thu, Jun 18, 2009 at 7:22 AM, James Carman
> > wrote:
> >
> >> There are a few folks working on implementing JSR-299 support for
> Wicket,
> >> which would provide support for conversation-scoped beans.  I'm working
> on
> >> one currently and I believe that the jboss folks have one working too.
> >>
> >> On Thu, Jun 18, 2009 at 12:08 AM, Joe Fawzy 
> wrote:
> >>
> >> > Hican this functionality added to the standard wicket?
> >> > actually much of seam popularity came from supporting conversation
> >> > scope...,
> >> > so i think that adding explicit wicket support will have momentum
> >> > i think that having just a store for conversation objects will be a
> good
> >> > begin
> >> > then we may add apis like beginConversation, endConversation
> >> > ,joinConversation,mergeConversation
> >> ,suspendConversation,resumeConversation
> >> > and other concepts like workspace
> >> > what do u think?
> >> > Joe
> >> >
> >> >
> >> > On Thu, Jun 18, 2009 at 12:32 AM, Igor Vaynberg <
> igor.vaynb...@gmail.com
> >> > >wrote:
> >> >
> >> > > only time will tell
> >> > >
> >> > > -igor
> >> > >
> >> > > On Wed, Jun 17, 2009 at 11:59 AM, Joe Fawzy
> >> wrote:
> >> > > > thanks dearwill wicket continue to support pageMap beyond 1.4 or
> it
> >> is
> >> > > now a
> >> > > > deprecated feature?
> >> > > > thanks
> >> > > > Joe
> >> > > >
> >> > > > On Wed, Jun 17, 2009 at 9:56 PM, Igor Vaynberg <
> >> > igor.vaynb...@gmail.com
> >> > > >wrote:
> >> > > >
> >> > > >> if the scope of your conversation is a browser window then its
> the
> >> > best
> >> > > >> choice.
> >> > > >>
> >> > > >> -igor
> >> > > >>
> >> > > >> On Wed, Jun 17, 2009 at 11:45 AM, Joe Fawzy
> >> > wrote:
> >> > > >> > Hi dearthanks for the reply and for the code snippet
> >> > > >> > But, do u think that using pageMap is reliable or what
> >> > > >> > i mean , is using pageMap is a good solution or just a hack,
> work
> >> > > around
> >> > > >> > thanks
> >> > > >> > Joe
> >> > > >> >
> >> > > >> > On Wed, Jun 17, 2009 at 8:58 PM, Igor Vaynberg <
> >> > > igor.vaynb...@gmail.com
> >> > > >> >wrote:
> >> > > >> >
> >> > > >> >> class mysession extends websesison {
> >> > > >> >>  private map> coversations;
> >> > > >> >>
> >&g

Re: Conversation scope in wicket

2009-06-17 Thread Joe Fawzy
Hiyou mean: injecting webbeans conversation component in wicket component at
construction time
this is only what we can achieve with webbeans, as wicket component cannot
be webbeans components (wicket is unmanaged framework)
my idea is about native conversation support, which enable wicket component
to be the component and the target for injection in a natural wicket way
beside, why depending on external project when we have all the functionality
we need as wicket is stateful and each pagemap is a conversation(long one
which may be easily break down to smaller pieces)

Joe


On Thu, Jun 18, 2009 at 7:22 AM, James Carman
wrote:

> There are a few folks working on implementing JSR-299 support for Wicket,
> which would provide support for conversation-scoped beans.  I'm working on
> one currently and I believe that the jboss folks have one working too.
>
> On Thu, Jun 18, 2009 at 12:08 AM, Joe Fawzy  wrote:
>
> > Hican this functionality added to the standard wicket?
> > actually much of seam popularity came from supporting conversation
> > scope...,
> > so i think that adding explicit wicket support will have momentum
> > i think that having just a store for conversation objects will be a good
> > begin
> > then we may add apis like beginConversation, endConversation
> > ,joinConversation,mergeConversation
> ,suspendConversation,resumeConversation
> > and other concepts like workspace
> > what do u think?
> > Joe
> >
> >
> > On Thu, Jun 18, 2009 at 12:32 AM, Igor Vaynberg  > >wrote:
> >
> > > only time will tell
> > >
> > > -igor
> > >
> > > On Wed, Jun 17, 2009 at 11:59 AM, Joe Fawzy
> wrote:
> > > > thanks dearwill wicket continue to support pageMap beyond 1.4 or it
> is
> > > now a
> > > > deprecated feature?
> > > > thanks
> > > > Joe
> > > >
> > > > On Wed, Jun 17, 2009 at 9:56 PM, Igor Vaynberg <
> > igor.vaynb...@gmail.com
> > > >wrote:
> > > >
> > > >> if the scope of your conversation is a browser window then its the
> > best
> > > >> choice.
> > > >>
> > > >> -igor
> > > >>
> > > >> On Wed, Jun 17, 2009 at 11:45 AM, Joe Fawzy
> > wrote:
> > > >> > Hi dearthanks for the reply and for the code snippet
> > > >> > But, do u think that using pageMap is reliable or what
> > > >> > i mean , is using pageMap is a good solution or just a hack, work
> > > around
> > > >> > thanks
> > > >> > Joe
> > > >> >
> > > >> > On Wed, Jun 17, 2009 at 8:58 PM, Igor Vaynberg <
> > > igor.vaynb...@gmail.com
> > > >> >wrote:
> > > >> >
> > > >> >> class mysession extends websesison {
> > > >> >>  private map> coversations;
> > > >> >>
> > > >> >>  public map getconversation(ipagemap pmap) {
> > > >> >>return conversations.get(pmap.getid());
> > > >> >>  }
> > > >> >> }
> > > >> >>
> > > >> >> -igor
> > > >> >>
> > > >> >> On Wed, Jun 17, 2009 at 10:29 AM, Joe Fawzy
> > > wrote:
> > > >> >> > Hi alli need to implement something like a conversation scope
> in
> > > >> wicket
> > > >> >> > i know that wicket is stateful by default and i can pass object
> o
> > > from
> > > >> >> page
> > > >> >> > A -> page B
> > > >> >> > But if Object o in page A which -> page B -> page C -> page D
> ->
> > > page
> > > >> E
> > > >> >> > and i need Object o in page E ,that will be very tedious to
> pass
> > o
> > > all
> > > >> >> > throught the way from A > ..E
> > > >> >> > also if i need to pass a large number of objects between a set
> of
> > > >> pages
> > > >> >> > ,this will be a nightmare
> > > >> >> >
> > > >> >> > so How can i implement a Conversation object ala Session and
> > store
> > > >> these
> > > >> >> > objects there
> > > >> >> >
> > > >> >> > i thought of using the IPageMap as a key in this situation as
> it
> > > >> >

Re: Conversation scope in wicket

2009-06-17 Thread Joe Fawzy
Hican this functionality added to the standard wicket?
actually much of seam popularity came from supporting conversation scope...,
so i think that adding explicit wicket support will have momentum
i think that having just a store for conversation objects will be a good
begin
then we may add apis like beginConversation, endConversation
,joinConversation,mergeConversation ,suspendConversation,resumeConversation
and other concepts like workspace
what do u think?
Joe


On Thu, Jun 18, 2009 at 12:32 AM, Igor Vaynberg wrote:

> only time will tell
>
> -igor
>
> On Wed, Jun 17, 2009 at 11:59 AM, Joe Fawzy wrote:
> > thanks dearwill wicket continue to support pageMap beyond 1.4 or it is
> now a
> > deprecated feature?
> > thanks
> > Joe
> >
> > On Wed, Jun 17, 2009 at 9:56 PM, Igor Vaynberg  >wrote:
> >
> >> if the scope of your conversation is a browser window then its the best
> >> choice.
> >>
> >> -igor
> >>
> >> On Wed, Jun 17, 2009 at 11:45 AM, Joe Fawzy wrote:
> >> > Hi dearthanks for the reply and for the code snippet
> >> > But, do u think that using pageMap is reliable or what
> >> > i mean , is using pageMap is a good solution or just a hack, work
> around
> >> > thanks
> >> > Joe
> >> >
> >> > On Wed, Jun 17, 2009 at 8:58 PM, Igor Vaynberg <
> igor.vaynb...@gmail.com
> >> >wrote:
> >> >
> >> >> class mysession extends websesison {
> >> >>  private map> coversations;
> >> >>
> >> >>  public map getconversation(ipagemap pmap) {
> >> >>return conversations.get(pmap.getid());
> >> >>  }
> >> >> }
> >> >>
> >> >> -igor
> >> >>
> >> >> On Wed, Jun 17, 2009 at 10:29 AM, Joe Fawzy
> wrote:
> >> >> > Hi alli need to implement something like a conversation scope in
> >> wicket
> >> >> > i know that wicket is stateful by default and i can pass object o
> from
> >> >> page
> >> >> > A -> page B
> >> >> > But if Object o in page A which -> page B -> page C -> page D ->
> page
> >> E
> >> >> > and i need Object o in page E ,that will be very tedious to pass o
> all
> >> >> > throught the way from A > ..E
> >> >> > also if i need to pass a large number of objects between a set of
> >> pages
> >> >> > ,this will be a nightmare
> >> >> >
> >> >> > so How can i implement a Conversation object ala Session and store
> >> these
> >> >> > objects there
> >> >> >
> >> >> > i thought of using the IPageMap as a key in this situation as it
> >> >> represent
> >> >> > an open browser window or tab ie. conversation, but in a previous
> mail
> >> ,i
> >> >> > 've been tald that it cannot be extended easily, and i cannot
> provide
> >> my
> >> >> own
> >> >> > factory for one
> >> >> >
> >> >> > so, any ideas about the conversation scope?
> >> >> > what do u think about the pageMap ? will it work? is it reliable?
> >> >> > can the core team provide some hooks to implement something like
> >> >> > IPageMapFactory?
> >> >> >
> >> >> > thanks
> >> >> > Joe
> >> >> >
> >> >>
> >> >> -
> >> >> 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: Conversation scope in wicket

2009-06-17 Thread Joe Fawzy
thanks dearwill wicket continue to support pageMap beyond 1.4 or it is now a
deprecated feature?
thanks
Joe

On Wed, Jun 17, 2009 at 9:56 PM, Igor Vaynberg wrote:

> if the scope of your conversation is a browser window then its the best
> choice.
>
> -igor
>
> On Wed, Jun 17, 2009 at 11:45 AM, Joe Fawzy wrote:
> > Hi dearthanks for the reply and for the code snippet
> > But, do u think that using pageMap is reliable or what
> > i mean , is using pageMap is a good solution or just a hack, work around
> > thanks
> > Joe
> >
> > On Wed, Jun 17, 2009 at 8:58 PM, Igor Vaynberg  >wrote:
> >
> >> class mysession extends websesison {
> >>  private map> coversations;
> >>
> >>  public map getconversation(ipagemap pmap) {
> >>    return conversations.get(pmap.getid());
> >>  }
> >> }
> >>
> >> -igor
> >>
> >> On Wed, Jun 17, 2009 at 10:29 AM, Joe Fawzy wrote:
> >> > Hi alli need to implement something like a conversation scope in
> wicket
> >> > i know that wicket is stateful by default and i can pass object o from
> >> page
> >> > A -> page B
> >> > But if Object o in page A which -> page B -> page C -> page D -> page
> E
> >> > and i need Object o in page E ,that will be very tedious to pass o all
> >> > throught the way from A > ..E
> >> > also if i need to pass a large number of objects between a set of
> pages
> >> > ,this will be a nightmare
> >> >
> >> > so How can i implement a Conversation object ala Session and store
> these
> >> > objects there
> >> >
> >> > i thought of using the IPageMap as a key in this situation as it
> >> represent
> >> > an open browser window or tab ie. conversation, but in a previous mail
> ,i
> >> > 've been tald that it cannot be extended easily, and i cannot provide
> my
> >> own
> >> > factory for one
> >> >
> >> > so, any ideas about the conversation scope?
> >> > what do u think about the pageMap ? will it work? is it reliable?
> >> > can the core team provide some hooks to implement something like
> >> > IPageMapFactory?
> >> >
> >> > thanks
> >> > Joe
> >> >
> >>
> >> -
> >> 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: Conversation scope in wicket

2009-06-17 Thread Joe Fawzy
Hi dearthanks for the reply and for the code snippet
But, do u think that using pageMap is reliable or what
i mean , is using pageMap is a good solution or just a hack, work around
thanks
Joe

On Wed, Jun 17, 2009 at 8:58 PM, Igor Vaynberg wrote:

> class mysession extends websesison {
>  private map> coversations;
>
>  public map getconversation(ipagemap pmap) {
>return conversations.get(pmap.getid());
>  }
> }
>
> -igor
>
> On Wed, Jun 17, 2009 at 10:29 AM, Joe Fawzy wrote:
> > Hi alli need to implement something like a conversation scope in wicket
> > i know that wicket is stateful by default and i can pass object o from
> page
> > A -> page B
> > But if Object o in page A which -> page B -> page C -> page D -> page E
> > and i need Object o in page E ,that will be very tedious to pass o all
> > throught the way from A > ..E
> > also if i need to pass a large number of objects between a set of pages
> > ,this will be a nightmare
> >
> > so How can i implement a Conversation object ala Session and store these
> > objects there
> >
> > i thought of using the IPageMap as a key in this situation as it
> represent
> > an open browser window or tab ie. conversation, but in a previous mail ,i
> > 've been tald that it cannot be extended easily, and i cannot provide my
> own
> > factory for one
> >
> > so, any ideas about the conversation scope?
> > what do u think about the pageMap ? will it work? is it reliable?
> > can the core team provide some hooks to implement something like
> > IPageMapFactory?
> >
> > thanks
> > Joe
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Conversation scope in wicket

2009-06-17 Thread Joe Fawzy
Hi alli need to implement something like a conversation scope in wicket
i know that wicket is stateful by default and i can pass object o from page
A -> page B
But if Object o in page A which -> page B -> page C -> page D -> page E
and i need Object o in page E ,that will be very tedious to pass o all
throught the way from A > ..E
also if i need to pass a large number of objects between a set of pages
,this will be a nightmare

so How can i implement a Conversation object ala Session and store these
objects there

i thought of using the IPageMap as a key in this situation as it represent
an open browser window or tab ie. conversation, but in a previous mail ,i
've been tald that it cannot be extended easily, and i cannot provide my own
factory for one

so, any ideas about the conversation scope?
what do u think about the pageMap ? will it work? is it reliable?
can the core team provide some hooks to implement something like
IPageMapFactory?

thanks
Joe


Re: status of the PageMap

2009-06-16 Thread Joe Fawzy
Hi So this is the current status, what about future plans?,
How can i provide my own custom implementation?
thanks
Joe

On Tue, Jun 16, 2009 at 9:19 PM, Johan Compagner wrote:

> in 1.4 it is still an part of wicket.
>
> But it is not that needed anymore as before but that is sinse 1.3 when we
> started saving to disk.
>
> johan
>
>
>
> On Tue, Jun 16, 2009 at 20:03, Joe Fawzy  wrote:
>
> > Hi alli was wondering , what is the status of the pageMap?
> > i saw in the wiki some articles talking about it will be deprecated, so
> is
> > that true? i can see it in the 1.4 docs, is that for backward
> compatability
> > or it still a essential part of the platform?
> > How can i plug my own custom subclass of PageMap and make the framework
> use
> > it instead of the stock ones
> > thanks
> > Joe
> >
>


status of the PageMap

2009-06-16 Thread Joe Fawzy
Hi alli was wondering , what is the status of the pageMap?
i saw in the wiki some articles talking about it will be deprecated, so is
that true? i can see it in the 1.4 docs, is that for backward compatability
or it still a essential part of the platform?
How can i plug my own custom subclass of PageMap and make the framework use
it instead of the stock ones
thanks
Joe


Re: IRequestTarget not serializable

2009-05-22 Thread Joe Fawzy
hi dearu have to process the target during its lifecycle time and store that
result into something serializable for future use
so u have to make the decision during the first request where the request
target is valid not the second
joe

On Fri, May 22, 2009 at 4:34 PM, Juan G. Arias  wrote:

> I have this link, that I create in different ways. It performs some logic,
> and then redirects to somewhere, depending on how was created.
> Here is the code:
>
> class SignOutLink extends Link {
>  private IRequestTarget target;
>
>  public SignOutLink(String id, Class redirectPage) {
>  this(id, new BookmarkablePageRequestTarget(redirectPage));
>  }
>
>  public SignOutLink(String id, String url) {
>  this(id, new RedirectRequestTarget(url));
>}
>
>  public SignOutLink(String id, IRequestTarget target) {
>  super(id);
>  this.target = target;
>  }
>
>  public void onClick() {
>  this.signOutSession();
> this.redirectSignInPage();
>  }
>
>  public abstract void signOutSession();
>
>  public void redirectSignInPage() {
>  this.getRequestCycle().setRequestTarget(this.target);
>   }
> }
>
>
> On Thu, May 21, 2009 at 8:08 PM, Matej Knopp 
> wrote:
>
> > IRequestTarget is valid only for one request. Why do you want to keep
> > as instance variable?
> >
> > -Matej
> >
> > On Thu, May 21, 2009 at 11:48 PM, Juan G. Arias 
> > wrote:
> > > Hi all,
> > > I want to mantain an IRequestTarget in my component, as an instance
> > > attribute. But wicket cries about it's not serializable.
> > > Of course, it's right. IRequestTarget is not serializable.
> > >
> > > Why? Is something wrong with mantain a request target inside my
> > component?
> > >
> > > Thanks!
> > > Juan
> > >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>


Re: fragment markup resolution

2009-05-22 Thread Joe Fawzy
Hi Jamesthanks for sharing this
i wanna ask , why there is not a unified effort for rapid application dev ,
why not combine wicket RAD , and wicket web beans and wicketopia

thanks
Joe

On Fri, May 22, 2009 at 3:15 PM, James Carman
wrote:

> You could try something like this:
>
>
> https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/wicketopia/src/main/java/org/wicketopia/component/editor/FormComponentEditorPanel.java
>
>
> On Fri, May 22, 2009 at 7:07 AM, Joe Fawzy  wrote:
> > hi dearthanks for ur reply
> > actually i donot often use the wicket:child and wicket:extend as i prefer
> > borders for common layout
> > is this the only way to get the fragment markup in subclass
> > thanks again
> > Joe
> >
> > On Fri, May 22, 2009 at 1:57 PM, James Carman
> > wrote:
> >
> >> The fragments should be able to be found in the parent class' markup
> >> file.  You don't need to duplicate the fragment definitions if you're
> >> using markup inheritance.
> >>
> >> On Fri, May 22, 2009 at 12:38 AM, Joe Fawzy 
> wrote:
> >> > hiactually i am making a framework over wicket in which i am providing
> a
> >> > default ui in the base class , which can be customized by overriding
> in
> >> > subclass
> >> > in this case , when i subclass , i have to duplicate all the fragments
> >> > markup ,instead of only what i need
> >> > thanks
> >> > joe
> >> >
> >> > On Thu, May 21, 2009 at 5:48 PM, Mathias Nilsson <
> >> > wicket.program...@gmail.com> wrote:
> >> >
> >> >>
> >> >> Sounds like you should use panels instead of Fragments if they are
> used
> >> >> more
> >> >> then one time.
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://www.nabble.com/fragment-markup-resolution-tp23645152p23654434.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
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Ajax appends to a Table

2009-05-22 Thread Joe Fawzy
hi dearwicket ajax support is designed and optimised for **updating** or
replacing existing components not appending
actually u will find appending table raw a buggy feature in IE
i use a work around ,by adding several invisible rows then upon need i
update them one by one

Waiting for a better approach

Joe

On Fri, May 22, 2009 at 1:59 PM, James Carman
wrote:

> You usually have to update the whole table via Ajax when doing
> modifications to it.
>
> On Fri, May 22, 2009 at 1:32 AM, Luther Baker 
> wrote:
> > Hi,
> >
> > I have an 'Add Row' Ajax link and a Table. The table contains a list of
> > todos.
> >
> > To 'add' a todo, I have created a single  full of 's and  > that, via Ajax, get shown when someone clicks on the aforementioned 'Add
> > Row' link.
> >
> > Now, on submission of said row, I'd like to append it to the bottom of
> the
> > table such that, one might be able to add 'another' row.
> >
> > Is there an easy way to do this or would I simply want to encapsulate the
> > entire table and refresh it via Ajax. I'm not sure that'd be as easy as I
> > hoped either since, I'd be creating the markup, etc in the Java class for
> > the extra row.
> >
> > Also, to be true to form, is it normal to show that  of  without
> > a formal encapsulating  tag or should I wrap the table in a big
> form
> > to be sure any inputs in the table are formally encapsulated by a form.
> >
> > Just looking for some pointers in the right direction on basically, how
> to,
> > via Ajax, create blank rows, allow submissions and then append said rows
> to
> > a table without formally GET or POSTing the entire page. Many thanks.
> >
> > -Luther
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: fragment markup resolution

2009-05-22 Thread Joe Fawzy
hi dearthanks for ur reply
actually i donot often use the wicket:child and wicket:extend as i prefer
borders for common layout
is this the only way to get the fragment markup in subclass
thanks again
Joe

On Fri, May 22, 2009 at 1:57 PM, James Carman
wrote:

> The fragments should be able to be found in the parent class' markup
> file.  You don't need to duplicate the fragment definitions if you're
> using markup inheritance.
>
> On Fri, May 22, 2009 at 12:38 AM, Joe Fawzy  wrote:
> > hiactually i am making a framework over wicket in which i am providing a
> > default ui in the base class , which can be customized by overriding in
> > subclass
> > in this case , when i subclass , i have to duplicate all the fragments
> > markup ,instead of only what i need
> > thanks
> > joe
> >
> > On Thu, May 21, 2009 at 5:48 PM, Mathias Nilsson <
> > wicket.program...@gmail.com> wrote:
> >
> >>
> >> Sounds like you should use panels instead of Fragments if they are used
> >> more
> >> then one time.
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/fragment-markup-resolution-tp23645152p23654434.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
>
>


Forms and autoAdd

2009-05-22 Thread Joe Fawzy
hi allcan i use autoAdd() to add FormComponents to a form and expect the
form to behave normally and all its lifecycle get executed normally,
including model binding and error check
i know taht components added via autoAdd() didn't serialized or persisted
between requests , so how this affect form lifecycle
thanks
joe


Re: fragment markup resolution

2009-05-21 Thread Joe Fawzy
hiactually i am making a framework over wicket in which i am providing a
default ui in the base class , which can be customized by overriding in
subclass
in this case , when i subclass , i have to duplicate all the fragments
markup ,instead of only what i need
thanks
joe

On Thu, May 21, 2009 at 5:48 PM, Mathias Nilsson <
wicket.program...@gmail.com> wrote:

>
> Sounds like you should use panels instead of Fragments if they are used
> more
> then one time.
> --
> View this message in context:
> http://www.nabble.com/fragment-markup-resolution-tp23645152p23654434.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
>
>


fragment markup resolution

2009-05-20 Thread Joe Fawzy
hi alli have several pages which have a lot of fragments , this works fine
when i subclassed this page class , i may change only one fragment or even
no one at all but override a method, yet i have to duplicate all the markup
for all the fragments even if they are just a clones of those in the bse
class
so , is there any way to make wicket lookup the fragments markup in the base
page if it is not found in the page or what
do i have to inplement custom markup resolver? any key or pointer on how
this can b achieved?
thanks in advance..
Joe