How to set set node property hippo:mirrro in bind method of a persistence bean?

44 views
Skip to first unread message

Global Edge Software Ltd

unread,
Jan 29, 2015, 8:10:46 AM1/29/15
to hippo-c...@googlegroups.com
Hi All,


How to set set node property hippo:mirrro in bind method of a persistence bean?

Here are the getters and setters

public List<HippoMirror> getNews() {
if (null == news) {
news = getChildBeansByName("estro:news");
}
return news;
}

public void setNews(List<HippoMirror> news){
this.news.addAll(news);
}


and the set property of node is below is showing compile time error

node.setProperty("estro:news", newsBean.getAbstracts());



Thank you

Global Edge Software Ltd

unread,
Jan 29, 2015, 8:12:23 AM1/29/15
to hippo-c...@googlegroups.com
Apologize for the typo in node property. It is hippo:mirror 

William Borg Barthet

unread,
Jan 29, 2015, 9:02:01 AM1/29/15
to hippo-c...@googlegroups.com
What's the compile time error? Unhandled exceptions?

--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at http://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.



--
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 745 Atlantic Avenue, Boston, MA 02111
 
US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com

Global Edge Software Ltd

unread,
Jan 30, 2015, 12:35:14 AM1/30/15
to hippo-c...@googlegroups.com
I get the below compile time error. I am sure that the method does not have an argument like List<HippoMirror>. So how do I set this property?

error: no suitable method found for setProperty(String,List<HippoMirror>)

Thank you

Woonsan Ko

unread,
Jan 30, 2015, 3:25:13 AM1/30/15
to hippo-c...@googlegroups.com
Hi,

If you look at node structure in other document examples, then it should
be clearer.
Anyway, because the mirror node is a child node, you should use
#addNode(..) API first to add the mirror node. After that, you can set
properties for the mirror node. And, you can save it.

HTH,

Woonsan

On 1/30/15 12:35 AM, Global Edge Software Ltd wrote:
> I get the below compile time error. I am sure that the method does not
> have an argument like List<HippoMirror>. So how do I set this property?
>
> error: no suitable method found for setProperty(String,List<HippoMirror>)
>
> Thank you
>
> On Thursday, January 29, 2015 at 6:02:01 PM UTC+4, w.borgbarthet wrote:
>
> What's the compile time error? Unhandled exceptions?
>
> On 29 January 2015 at 08:12, Global Edge Software Ltd
> <ges.ma...@gmail.com <javascript:>> wrote:
>
> Apologize for the typo in node property. It is hippo:mirror
>
>
> On Thursday, January 29, 2015 at 5:10:46 PM UTC+4, Global Edge
> Software Ltd wrote:
>
> Hi All,
>
>
> How to set set node property hippo:mirrro in bind method of
> a persistence bean?
>
> Here are the getters and setters
>
> public List<HippoMirror> getNews() {
> if (null == news) {
> news = getChildBeansByName("estro:__news");
> }
> return news;
> }
>
> public void setNews(List<HippoMirror> news){
> this.news.addAll(news);
> }
>
>
> and the set property of node is below is showing compile
> time error
>
> node.setProperty("estro:news", newsBean.getAbstracts());
>
>
>
> Thank you
>
> --
> Hippo Community Group: The place for all discussions and
> announcements about Hippo CMS (and HST, repository etc. etc.)
>
> To post to this group, send email to hippo-c...@googlegroups.com
> <javascript:>
> RSS:
> https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
> <https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50>
> ---
> You received this message because you are subscribed to the
> Google Groups "Hippo Community" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to hippo-communi...@googlegroups.com
> <javascript:>.
> <http://groups.google.com/group/hippo-community>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
>
>
> --
> Amsterdam - Oosteinde 11, 1017 WT Amsterdam
> Boston - 745 Atlantic Avenue, Boston, MA 02111
>
> US +1 877 414 4776 (toll free)
> Europe +31(0)20 522 4466
> www.onehippo.com <http://www.onehippo.com/>
>
> --
> Hippo Community Group: The place for all discussions and announcements
> about Hippo CMS (and HST, repository etc. etc.)
>
> To post to this group, send email to hippo-c...@googlegroups.com
> RSS:
> https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
> ---
> You received this message because you are subscribed to the Google
> Groups "Hippo Community" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to hippo-communi...@googlegroups.com
> <mailto:hippo-communi...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/hippo-community.
> For more options, visit https://groups.google.com/d/optout.


--
w....@onehippo.com www.onehippo.com
Boston - 745 Atlantic Ave, 8th Floor, Boston MA 02111
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Reply all
Reply to author
Forward
0 new messages