Re: Menubar in wicket ?

2011-08-21 Thread Bruno Borges
You can always download de JAR and install in your local maven repository.

http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html

Or, the "hard way":

Checkout the source code and run $ mvn install ... :-)


*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Sun, Aug 21, 2011 at 1:05 PM, aabfattah <
ahmed.abdelfattah.elshem...@gmail.com> wrote:

> More info please ?
> And btw, wicket-menu seems good and has some demos but it's not in maven
> repositories so I have to find some workaround to import it.
>
>
> On 21 August 2011 18:01, nino martinez wael [via Apache Wicket] <
> ml-node+3758639-20428132-260...@n4.nabble.com> wrote:
>
> > Ive been using jsuperfish with autolinks.
> > On Aug 21, 2011 3:12 PM, "aabfattah" <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=3758639&i=0>>
> >
> > wrote:
> > > I tried using dropdown-menu from wicketstuff but it didn't work , and
> > then
> > I
> > > googled and found out about yui menubar but there were topics reporting
> > > unsolved problems with it .
> > >
> > > Is there any reliable menubar I can use or I should just use the
> ListView
> >
> > > ???
> > >
> > > --
> > > View this message in context:
> >
> >
> http://apache-wicket.1842946.n4.nabble.com/Menubar-in-wicket-tp3758370p3758370.html
> > > Sent from the Users forum mailing list archive at Nabble.com.
> > >
> > > -
> > > To unsubscribe, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=3758639&i=1>
> > > For additional commands, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=3758639&i=2>
> > >
> >
> >
> > --
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://apache-wicket.1842946.n4.nabble.com/Menubar-in-wicket-tp3758370p3758639.html
> >  To unsubscribe from Menubar in wicket ?, click here<
> http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3758370&code=YWhtZWQuYWJkZWxmYXR0YWguZWxzaGVtaXN5QGdtYWlsLmNvbXwzNzU4MzcwfDI4MjAxMzAzNQ==
> >.
> >
> >
>
>
>
> --
> Ahmed Abdelfattah
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Menubar-in-wicket-tp3758370p3758642.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Menubar in wicket ?

2011-08-21 Thread aabfattah
More info please ?
And btw, wicket-menu seems good and has some demos but it's not in maven
repositories so I have to find some workaround to import it.


On 21 August 2011 18:01, nino martinez wael [via Apache Wicket] <
ml-node+3758639-20428132-260...@n4.nabble.com> wrote:

> Ive been using jsuperfish with autolinks.
> On Aug 21, 2011 3:12 PM, "aabfattah" <[hidden 
> email]>
>
> wrote:
> > I tried using dropdown-menu from wicketstuff but it didn't work , and
> then
> I
> > googled and found out about yui menubar but there were topics reporting
> > unsolved problems with it .
> >
> > Is there any reliable menubar I can use or I should just use the ListView
>
> > ???
> >
> > --
> > View this message in context:
>
> http://apache-wicket.1842946.n4.nabble.com/Menubar-in-wicket-tp3758370p3758370.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]
> > For additional commands, e-mail: [hidden 
> > email]
> >
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/Menubar-in-wicket-tp3758370p3758639.html
>  To unsubscribe from Menubar in wicket ?, click 
> here.
>
>



-- 
Ahmed Abdelfattah


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Menubar-in-wicket-tp3758370p3758642.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Menubar in wicket ?

2011-08-21 Thread nino martinez wael
Ive been using jsuperfish with autolinks.
On Aug 21, 2011 3:12 PM, "aabfattah" 
wrote:
> I tried using dropdown-menu from wicketstuff but it didn't work , and then
I
> googled and found out about yui menubar but there were topics reporting
> unsolved problems with it .
>
> Is there any reliable menubar I can use or I should just use the ListView
> ???
>
> --
> View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Menubar-in-wicket-tp3758370p3758370.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


Re: Menubar in wicket ?

2011-08-21 Thread Martin Grigorov
http://code.google.com/p/wicket-menu/

On Sun, Aug 21, 2011 at 4:11 PM, aabfattah
 wrote:
> I tried using dropdown-menu from wicketstuff but it didn't work , and then I
> googled and found out about yui menubar but there were topics reporting
> unsolved problems with it .
>
> Is there any reliable menubar I can use or I should just use the ListView
> ???
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Menubar-in-wicket-tp3758370p3758370.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Unexpected RuntimeException when trying a project with a DataTable

2011-08-21 Thread aabfattah
I didn't solve the problem , I just used a  normal DataTable .

On 19 August 2011 17:44, Dan Retzlaff [via Apache Wicket] <
ml-node+3755502-1200952451-260...@n4.nabble.com> wrote:

> If you put a breakpoint where the NullPointerException is thrown, your
> debugger should show you the call stack which tells you the sequence of
> calls that got you there. In your particular case, the crux is the
> "Collections.sort(newList, comparator)" call which sorts newList using your
>
> custom comparator. I'd guess that newList contains an object that is
> missing
> a property required by your comparator.
>
> On Fri, Aug 19, 2011 at 8:37 AM, aabfattah <
> [hidden email] >
> wrote:
>
> > I did so but it's a bit confusing . Is there any book or a tutorial that
> > describes the sequence of calls of the framework ? And how should my code
>
> > flow ?
> >
> > On 19 August 2011 17:04, Dan Retzlaff [via Apache Wicket] <
> > [hidden email] >
> wrote:
> >
> > > Hi Ahmed,
> > >
> > > I recommend running Wicket in an IDE with a debugger and stepping
> through
> > > your code. Personally I deploy my Wicket applications into an Apache
> > Tomcat
> > >
> > > server set up within Eclipse. There are many other servlet containers
> and
> > > IDEs that will work though.
> > >
> > > Dan
> > >
> > > On Fri, Aug 19, 2011 at 1:16 AM, aabfattah <
> > > [hidden email] >
>
> > > wrote:
> > >
> > > > Sorry for posting a lot , I just made a new project to work around
> the
> > > > problem but now I get an exception and that's seem a *bug from the
> > code*
> > > >
> > > > Unexpected RuntimeException
> > > >
> > > > Last cause: null
> > > > WicketMessage: Error attaching this container for rendering:
> > > > [WebMarkupContainer [Component id = body]]
> > > >
> > > > Stacktrace
> > > >
> > > > Root cause:
> > > >
> > > > java.lang.NullPointerException
> > > > at
> > > >
> > >
> >
> com.ahmed.task.main3.UserProvider$SortableDataProviderComparator.compare(UserProvider.java:21)
>
> > >
> > > > at
> > > >
> > >
> >
> com.ahmed.task.main3.UserProvider$SortableDataProviderComparator.compare(UserProvider.java:1)
>
> > >
> > > > at java.util.Arrays.mergeSort(Unknown Source)
> > > > at java.util.Arrays.sort(Unknown Source)
> > > > at java.util.Collections.sort(Unknown Source)
> > > > at
> com.ahmed.task.main3.UserProvider.iterator(UserProvider.java:57)
> > > > at
> > > >
> > >
> >
> org.apache.wicket.markup.repeater.data.DataViewBase$ModelIterator.(DataViewBase.java:109)
>
> > >
> > > > at
> > > >
> > >
> >
> org.apache.wicket.markup.repeater.data.DataViewBase.getItemModels(DataViewBase.java:76)
>
> > >
> > > > at
> > > >
> > >
> >
> org.apache.wicket.markup.repeater.AbstractPageableView.getItemModels(AbstractPageableView.java:101)
>
> > >
> > > > at
> > > >
> > >
> >
> org.apache.wicket.markup.repeater.RefreshingView.onPopulate(RefreshingView.java:93)
>
> > >
> > > > at
> > > >
> > >
> >
> org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:119)
>
> > >
> > > > at
> > > >
> > >
> >
> org.apache.wicket.markup.repeater.AbstractPageableView.onBeforeRender(AbstractPageableView.java:115)
>
> > >
> > > > at
> > > > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>
> > > > at org.apache.wicket.Component.beforeRender(Component.java:1097)
> > > > at
> > > >
> > >
> >
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
>
> > >
> > > > at
> org.apache.wicket.Component.onBeforeRender(Component.java:3837)
> > > > at
> > > > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>
> > > > at org.apache.wicket.Component.beforeRender(Component.java:1097)
> > > > at
> > > >
> > >
> >
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
>
> > >
> > > > at
> org.apache.wicket.Component.onBeforeRender(Component.java:3837)
> > > > at
> > > > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>
> > > > at org.apache.wicket.Component.beforeRender(Component.java:1097)
> > > > at
> > > >
> > >
> >
> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1746)
>
> > >
> > > > at
> org.apache.wicket.Component.onBeforeRender(Component.java:3837)
> > > > at org.apache.wicket.Page.onBeforeRender(Page.java:848)
> > > > at
> > > > org.apache.wicket.Component.internalBeforeRender(Component.java:1063)
>
> > > > at org.apache.wicket.Component.beforeRender(Component.java:1097)
> > > > at
> > > >
> > org.apache.wicket.Component.internalPrepareForRender(Component.java:2251)
>
> > >
> > > > at org.apache.wicket.Page.internalPrepareForRender(Page.java:285)
>
> > > > at org.apache.wicket.Component.render(Component.java:2338)
> > > > at

Re: StaleObjectStateException got intercepted

2011-08-21 Thread huberc
Sounds like there is some other exception thrown that is caught somewhere 
upwards your callstack. You could try to catch Exception and in your catch 
block log the actual Exception class to see what you actually caught.


On Sun, 21 Aug 2011, Florian B. wrote:


Hi

I'm trying to add exception handling to one of my pages but I'm a little bit
stuck.

I've got a page that loads an entity using a DAO (Hibernate, Spring). In
case of an error due to optimistic locking I want to reload the page with
the updated entity and display a message on a feedback panel.

The onSubmit() method of my button looks like that:

@Override
public void onSubmit() {
   // save store to DB
   try {
   storeDao.saveOrUpdate(store);
   setResponsePage(StoreTablePage.class);
   } catch (StaleObjectStateException ex) {
store = storeDao.retrieve(store.getId());
error(new
StringResourceModel("form.error.optimisticLockingException", this,
null).toString());
   }
}

What is weird is that when I write "catch (StaleObjectStateException ex)"
then the exception is somehow intercepted and the catch section is never
reached, instead a stack trace of the exception is shown. When I change it
to "catch (Exception ex)" then it works as expected. At the moment I'm
running the Wicket application in development mode.

Am I missing some important concept about exceptions in Wicket?

Bye,
Florian


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/StaleObjectStateException-got-intercepted-tp3758154p3758154.html
Sent from the Users forum mailing list archive at Nabble.com.

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




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



StaleObjectStateException got intercepted

2011-08-21 Thread Florian B.
Hi 

I'm trying to add exception handling to one of my pages but I'm a little bit
stuck. 

I've got a page that loads an entity using a DAO (Hibernate, Spring). In
case of an error due to optimistic locking I want to reload the page with
the updated entity and display a message on a feedback panel. 

The onSubmit() method of my button looks like that: 

@Override 
public void onSubmit() { 
// save store to DB 
try { 
storeDao.saveOrUpdate(store); 
setResponsePage(StoreTablePage.class);  
} catch (StaleObjectStateException ex) { 
 store = storeDao.retrieve(store.getId()); 
 error(new
StringResourceModel("form.error.optimisticLockingException", this,
null).toString()); 
} 
} 

What is weird is that when I write "catch (StaleObjectStateException ex)"
then the exception is somehow intercepted and the catch section is never
reached, instead a stack trace of the exception is shown. When I change it
to "catch (Exception ex)" then it works as expected. At the moment I'm
running the Wicket application in development mode. 

Am I missing some important concept about exceptions in Wicket? 

Bye, 
Florian 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/StaleObjectStateException-got-intercepted-tp3758154p3758154.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Looking for Editable List View

2011-08-21 Thread mnadeem
How about this one

https://github.com/mnadeem/EditableGridWicket_1_3

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Looking-for-Editable-List-View-tp1853936p3758096.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Simple non ajax callback

2011-08-21 Thread nino martinez wael
Not exactly there are a lot of cases where a behavior can be added but not a
link..
On Aug 20, 2011 11:07 AM, "Martin Grigorov"  wrote: