LoadableDetachableModels for a ListView ( database with Cayenne)

2012-02-16 Thread atomix
Hi all ,

I'm using Cayenne as my database service...

Now in a query return a ListPerson

which I want to wrap a whole List in to ( so call)
LoadableDetachableListModels to provide for a ListView, I'm also know that a
DataProvider could do the same thing but did any one have write something
like LoadableDetachableListModels to wrap a generic List and provide to a
ListView... 

Please help!!

I've read 
http://wicketinaction.com/2008/09/building-a-smart-entitymodel/
.. so one entity is fine but
but didn't know very clear what can be use for a List 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/LoadableDetachableModels-for-a-ListView-database-with-Cayenne-tp4394185p4394185.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



New bie question . Custom Form Submit

2012-02-15 Thread atomix
I have a link which is outside of a Form ...
And I want that when user click the link, the Form is submited();

I did :

...
onClick(){
form.process(); // But the model of Form Components haven't updated
}
...

So what I should do for that easy request?




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/New-bie-question-Custom-Form-Submit-tp4392995p4392995.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: New bie question . Custom Form Submit

2012-02-15 Thread atomix
The link is *OUT *of the Form

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/New-bie-question-Custom-Form-Submit-tp4392995p4393062.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: New bie question . Custom Form Submit

2012-02-15 Thread atomix
Ahh Thanks again... I didn't khow that the SubmitLink can be outside of a
Form ...
...but IMO , why can't another thing call a Form to be submit ...
like calling process() = what does this method really doing, why don't it
update all the models??

Thank for answer my silly questions. Wish you a good day!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/New-bie-question-Custom-Form-Submit-tp4392995p4393213.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: Save DefaultBreadCrumbsModel to session

2012-02-08 Thread atomix
Everything should be a lot easier and we could reuse the BreadCrumbBar if it
acts like a normal component, which has a DefaultModel can get,set via
getDefaultModel...

And the reason why I ask for the method to Save DefaultBreadCrumbsModel to
Session is :
If We travel through pages, the BreadCrumbsModel has to be saved to Session
and back when we come to a new Page...

But in the BreadCrumbsBar we can't /really /interactive with this
DefaultBreadCrumbsModel as it was private and only has setActive() ??? 

Anyone know how?? Or I really have to write my own Page BreadCrumbs
Component  , I love to know the other ways, of course , don't want to
reinventing the wheel just for a small need!


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Save-DefaultBreadCrumbsModel-to-session-tp4368982p4368995.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



Wiquery and JQWicket crash each other!!!!

2012-01-26 Thread atomix
Wiquery and JQWicket crash each other

When using Wicket (1.5.3) + JQWicket 8.0 + Wiquery (1.5.3) , the order of
the js libraries will be wrong 


1) I've started with:

Wicket (1.5.3) + JQWicket 8.0 

*I run the TipTipPage Example ... *

*generated html:*




*Everything work fine!!!*




---
2) Then, I added :

+ Wiquery (1.5.3) to Maven's  pom.xml

Just add it, not thing more !!... Same .java file


*generated html:*


This wrong order error is *suppper weird* , do anyone know what is going
on??? 

Did Wiquery and JQWicket use some conflict library like JS 1.7R2 or
something, I can't understand it!

*Please help, really appriciate!*





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wiquery-and-JQWicket-crash-each-other-tp4330840p4330840.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: Wiquery and JQWicket crash each other!!!!

2012-01-26 Thread atomix
I got answer from Wiquey developer :

Hi!

JQWicket and WiQuery do not work well together. Both aim to do the same but
using a different approach. Choose either one, not both. 

When you add WiQuery to the classpath it installs itself using a Wicket
Initializer and sets a HeaderResponseDecorator. The HeaderResponseDecorator
manages all resource references when they are of a certain type and manages
the jQuery initializing statements.

Now , my question is : Did anyone have a solution for Wiquery and JQWicket
work together, it's really a pity that we can't use them both!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wiquery-and-JQWicket-crash-each-other-tp4330840p4331638.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