You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ivana Cace <i....@func.nl> on 2007/08/01 11:05:14 UTC
Re: [Wicket-user] LoadableDetachableModels and Trees
What do you want to use the model for?
> > Is it possible to use LDMs and *Trees*?
Here's a question (from the old user-list) i'd like reopened.
I'm using a Tree to show a directory structure, the user selects folders
to upload files into. It should be updated every submit.
Is there a best practice for using a Tree with a LoadableDetachableModel?
I now have a Tree that is updated on every mouseClick (in a node) and
this seems a little too much. I would like to see a behaviour similar
to ListView.
Has anyone tried something like this?
ciao,
Ivana
--
Ivana Cace
Func. Internet Integration
W http://www.func.nl
T +31 20 4230000
F +31 20 4223500
--
Ivana Cace
Func. Internet Integration
W http://www.func.nl
T +31 20 4230000
F +31 20 4223500
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket 1.3 Spring Annot Test
Posted by Al Maw <wi...@almaw.com>.
jimmy.lawrence@uk.bnpparibas.com wrote:
> I am trying to run the Wicket-Spring-Annot example
> "AnnotProxyFieldValueFactoryTest" which fails with the following:
>
> java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
> .......
> at
> ........annot.AnnotProxyFieldValueFactoryTest.testFactory(AnnotProxyFieldValueFactoryTest.java:75)
>
> I have tried searching online without success. Can anyone advise please?
Please see the section on SLF4J here:
http://wicket.apache.org/getting-wicket.html
Regards,
Al
--
Alastair Maw
Wicket-biased blog at http://herebebeasties.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Wicket 1.3 Spring Annot Test
Posted by ji...@uk.bnpparibas.com.
Hi
I am trying to run the Wicket-Spring-Annot example
"AnnotProxyFieldValueFactoryTest" which fails with the following:
java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
.......
at
........annot.AnnotProxyFieldValueFactoryTest.testFactory(AnnotProxyFieldValueFactoryTest.java:75)
I have tried searching online without success. Can anyone advise please?
Many thanks
Jimmy
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
**********************************************************************************************
BNP Paribas Private Bank London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.
BNP Paribas Securities Services London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.
BNP Paribas Fund Services UK Limited is authorised and
regulated by the Financial Services Authority
Re: [Wicket-user] LoadableDetachableModels and Trees
Posted by Ivana Cace <i....@func.nl>.
Thats an interesting solution!
I'm still using 1.2.6, and went 'up'. The Tree is on a Panel, the Panel
gets a LDM and after some pre-processing builds the Tree using
javax.swing.tree.TreeModel. I thought of doing the pre-processing in a
class extending LDM and overwriting getObject, but part of the
preprocessing is overwriting toString when creating TreeNodes and i want
to have some flexibility here.
The nice thing about the panel is that i add ajax-links for expanding
and collapsing in the same panel.
The panel is now updated with the rest of the page.
James McLaughlin wrote:
> Hi Sean,
> Sure, if you have something in your XTreeModel that needs to be
> detached. But I was suggesting to make the TreeNode implement
> IDetachable. This way each TreeItem will detach its TreeNode when the
> request is over. Are you asking if you need to make your TreeModel
> detachable in order to have your TreeNodes detach? No, that is not
> necessary.
>
> best,
> jim
>
> On 8/1/07, Sean Sullivan <se...@seansullivan.com> wrote:
>
>> James,
>>
>> I am using Wicket 1.3's LinkTree class in my application. I built a custom
>> tree model class that extends Swing's DefaultTreeModel:
>>
>> public class XTreeModel extends javax.swing.tree.DefaultTreeModel
>>
>> Should my class, XTreeModel, implement IDetachable?
>>
>> Sean
>>
>>
>> On 8/1/07, James McLaughlin <jo...@gmail.com> wrote:
>>
>>> For the trees in 1.3 (I haven't used 1.2.x in a long time), if your
>>> TreeNodes implement IDetachable, they wil be detached when the
>>> requestcycle completes. Then it is up to you to implement some logic
>>> in the methods you call to retrieve the user object (such as
>>> getUserObject()) from the TreeNode to check and perform reattachement.
>>>
>>> best,
>>> jim
>>>
>>> On 8/1/07, Ivana Cace <i....@func.nl> wrote:
>>>
>>>> What do you want to use the model for?
>>>>
>>>>
>>>>>> Is it possible to use LDMs and *Trees*?
>>>>>>
>>>> Here's a question (from the old user-list) i'd like reopened.
>>>> I'm using a Tree to show a directory structure, the user selects folders
>>>>
>>>> to upload files into. It should be updated every submit.
>>>> Is there a best practice for using a Tree with a
>>>>
>>> LoadableDetachableModel?
>>>
>>>> I now have a Tree that is updated on every mouseClick (in a node) and
>>>> this seems a little too much. I would like to see a behaviour similar
>>>> to ListView.
>>>>
>>>> Has anyone tried something like this?
>>>>
>>>>
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Ivana Cace
Func. Internet Integration
W http://www.func.nl
T +31 20 4230000
F +31 20 4223500
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: [Wicket-user] LoadableDetachableModels and Trees
Posted by James McLaughlin <jo...@gmail.com>.
Hi Sean,
Sure, if you have something in your XTreeModel that needs to be
detached. But I was suggesting to make the TreeNode implement
IDetachable. This way each TreeItem will detach its TreeNode when the
request is over. Are you asking if you need to make your TreeModel
detachable in order to have your TreeNodes detach? No, that is not
necessary.
best,
jim
On 8/1/07, Sean Sullivan <se...@seansullivan.com> wrote:
> James,
>
> I am using Wicket 1.3's LinkTree class in my application. I built a custom
> tree model class that extends Swing's DefaultTreeModel:
>
> public class XTreeModel extends javax.swing.tree.DefaultTreeModel
>
> Should my class, XTreeModel, implement IDetachable?
>
> Sean
>
>
> On 8/1/07, James McLaughlin <jo...@gmail.com> wrote:
> >
> > For the trees in 1.3 (I haven't used 1.2.x in a long time), if your
> > TreeNodes implement IDetachable, they wil be detached when the
> > requestcycle completes. Then it is up to you to implement some logic
> > in the methods you call to retrieve the user object (such as
> > getUserObject()) from the TreeNode to check and perform reattachement.
> >
> > best,
> > jim
> >
> > On 8/1/07, Ivana Cace <i....@func.nl> wrote:
> > > What do you want to use the model for?
> > >
> > > > > Is it possible to use LDMs and *Trees*?
> > >
> > > Here's a question (from the old user-list) i'd like reopened.
> > > I'm using a Tree to show a directory structure, the user selects folders
> >
> > > to upload files into. It should be updated every submit.
> > > Is there a best practice for using a Tree with a
> > LoadableDetachableModel?
> > >
> > > I now have a Tree that is updated on every mouseClick (in a node) and
> > > this seems a little too much. I would like to see a behaviour similar
> > > to ListView.
> > >
> > > Has anyone tried something like this?
> > >
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: [Wicket-user] LoadableDetachableModels and Trees
Posted by Sean Sullivan <se...@seansullivan.com>.
James,
I am using Wicket 1.3's LinkTree class in my application. I built a custom
tree model class that extends Swing's DefaultTreeModel:
public class XTreeModel extends javax.swing.tree.DefaultTreeModel
Should my class, XTreeModel, implement IDetachable?
Sean
On 8/1/07, James McLaughlin <jo...@gmail.com> wrote:
>
> For the trees in 1.3 (I haven't used 1.2.x in a long time), if your
> TreeNodes implement IDetachable, they wil be detached when the
> requestcycle completes. Then it is up to you to implement some logic
> in the methods you call to retrieve the user object (such as
> getUserObject()) from the TreeNode to check and perform reattachement.
>
> best,
> jim
>
> On 8/1/07, Ivana Cace <i....@func.nl> wrote:
> > What do you want to use the model for?
> >
> > > > Is it possible to use LDMs and *Trees*?
> >
> > Here's a question (from the old user-list) i'd like reopened.
> > I'm using a Tree to show a directory structure, the user selects folders
>
> > to upload files into. It should be updated every submit.
> > Is there a best practice for using a Tree with a
> LoadableDetachableModel?
> >
> > I now have a Tree that is updated on every mouseClick (in a node) and
> > this seems a little too much. I would like to see a behaviour similar
> > to ListView.
> >
> > Has anyone tried something like this?
> >
>
>
Re: [Wicket-user] LoadableDetachableModels and Trees
Posted by James McLaughlin <jo...@gmail.com>.
For the trees in 1.3 (I haven't used 1.2.x in a long time), if your
TreeNodes implement IDetachable, they wil be detached when the
requestcycle completes. Then it is up to you to implement some logic
in the methods you call to retrieve the user object (such as
getUserObject()) from the TreeNode to check and perform reattachement.
best,
jim
On 8/1/07, Ivana Cace <i....@func.nl> wrote:
> What do you want to use the model for?
>
> > > Is it possible to use LDMs and *Trees*?
>
> Here's a question (from the old user-list) i'd like reopened.
> I'm using a Tree to show a directory structure, the user selects folders
> to upload files into. It should be updated every submit.
> Is there a best practice for using a Tree with a LoadableDetachableModel?
>
> I now have a Tree that is updated on every mouseClick (in a node) and
> this seems a little too much. I would like to see a behaviour similar
> to ListView.
>
> Has anyone tried something like this?
>
> ciao,
> Ivana
>
> --
> Ivana Cace
> Func. Internet Integration
> W http://www.func.nl
> T +31 20 4230000
> F +31 20 4223500
>
>
>
>
> --
> Ivana Cace
> Func. Internet Integration
> W http://www.func.nl
> T +31 20 4230000
> F +31 20 4223500
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org