XMLForm: how to access to a Collection

2003-03-27 Thread Sylvain.Thevoz
Hello,

I'm trying to access to a Java Collection from within a XMLForm view.

The Java code is:
code
...
Collection col = new HashSet();
...
while (iterator.hasNext()) {
  Group group = (Group) iter.next();
  col.add(group);
}
...
code

On my debugger the Collection object col looks like:

debug
col=java.util.HashSet (id=327)
  -map=java.util.HashMap (id=329)
  -table=java.util.HashMap$Entry[11] (id=330)
  -[2]=java.util.HashMapEntry (id=331)
  -key=com.swisscom.Group (id=287)
  -groupName=test
 -count=3
 -hash=0
 -offset=0
 -value=char[4] (id=212)
 -[0]=t
 -[1]=e
 -[2]=s
 -[3]=t
debug

I want to display the groupName value.

My view should look like:
xf:repeat nodeset=?
  xf:output ref=?/
/xf:repeat

But I don't know how to access to this Collection (path).
Could you help me?

Thanks
Sylvain

   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: XMLForm: how to access to a Collection

2003-03-27 Thread ivelin

You need to stick the collection in a simple JavaBean container.

public class BeanContainer
{
  Collection get/setMyCollection();
}

then

xf:repeat nodeset=myCollection
  xf:output ref=count/
  xf:output ref=name/
   ...
/xf:repeat




-=Ivelin=-
- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 3:39 AM
Subject: XMLForm: how to access to a Collection


Hello,

I'm trying to access to a Java Collection from within a XMLForm view.

The Java code is:
code
...
Collection col = new HashSet();
...
while (iterator.hasNext()) {
  Group group = (Group) iter.next();
  col.add(group);
}
...
code

On my debugger the Collection object col looks like:

debug
col=java.util.HashSet (id=327)
  -map=java.util.HashMap (id=329)
  -table=java.util.HashMap$Entry[11] (id=330)
  -[2]=java.util.HashMapEntry (id=331)
  -key=com.swisscom.Group (id=287)
  -groupName=test
 -count=3
 -hash=0
 -offset=0
 -value=char[4] (id=212)
 -[0]=t
 -[1]=e
 -[2]=s
 -[3]=t
debug

I want to display the groupName value.

My view should look like:
xf:repeat nodeset=?
  xf:output ref=?/
/xf:repeat

But I don't know how to access to this Collection (path).
Could you help me?

Thanks
Sylvain

   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: XMLForm: how to access to a Collection

2003-03-27 Thread Sylvain.Thevoz
Hi Ivelin,

I have stick the collection into the JavaBean of the form with getter and setter 
methods:

public class MyFormBean() {
  private Collection col = new HashSet();

  //other Bean attributes
  private String type;
  private int order;


  //getter and setter methods

  public Collection getCol() {
return col;
  }

  public void setCol(Collection col) {
this.col = col;
  }

}

But it doesn't work for me!

If what I need to do?
And do I need to create another Bean?


Thanks
Regards
Sylvain


-Message d'origine-
De: ivelin [mailto:[EMAIL PROTECTED]
Date: jeudi, 27. mars 2003 14:10
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to access to a Collection



You need to stick the collection in a simple JavaBean container.

public class BeanContainer
{
  Collection get/setMyCollection();
}

then

xf:repeat nodeset=myCollection
  xf:output ref=count/
  xf:output ref=name/
   ...
/xf:repeat




-=Ivelin=-
- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 3:39 AM
Subject: XMLForm: how to access to a Collection


Hello,

I'm trying to access to a Java Collection from within a XMLForm view.

The Java code is:
code
...
Collection col = new HashSet();
...
while (iterator.hasNext()) {
  Group group = (Group) iter.next();
  col.add(group);
}
...
code

On my debugger the Collection object col looks like:

debug
col=java.util.HashSet (id=327)
  -map=java.util.HashMap (id=329)
  -table=java.util.HashMap$Entry[11] (id=330)
  -[2]=java.util.HashMapEntry (id=331)
  -key=com.swisscom.Group (id=287)
  -groupName=test
 -count=3
 -hash=0
 -offset=0
 -value=char[4] (id=212)
 -[0]=t
 -[1]=e
 -[2]=s
 -[3]=t
debug

I want to display the groupName value.

My view should look like:
xf:repeat nodeset=?
  xf:output ref=?/
/xf:repeat

But I don't know how to access to this Collection (path).
Could you help me?

Thanks
Sylvain

   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: XMLForm: how to access to a Collection

2003-03-27 Thread ivelin

What is the error, exception?


-=Ivelin=-
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 7:25 AM
Subject: RE: XMLForm: how to access to a Collection


Hi Ivelin,

I have stick the collection into the JavaBean of the form with getter and
setter methods:

public class MyFormBean() {
  private Collection col = new HashSet();

  //other Bean attributes
  private String type;
  private int order;


  //getter and setter methods

  public Collection getCol() {
return col;
  }

  public void setCol(Collection col) {
this.col = col;
  }

}

But it doesn't work for me!

If what I need to do?
And do I need to create another Bean?


Thanks
Regards
Sylvain


-Message d'origine-
De: ivelin [mailto:[EMAIL PROTECTED]
Date: jeudi, 27. mars 2003 14:10
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to access to a Collection



You need to stick the collection in a simple JavaBean container.

public class BeanContainer
{
  Collection get/setMyCollection();
}

then

xf:repeat nodeset=myCollection
  xf:output ref=count/
  xf:output ref=name/
   ...
/xf:repeat




-=Ivelin=-
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 3:39 AM
Subject: XMLForm: how to access to a Collection


Hello,

I'm trying to access to a Java Collection from within a XMLForm view.

The Java code is:
code
...
Collection col = new HashSet();
...
while (iterator.hasNext()) {
  Group group = (Group) iter.next();
  col.add(group);
}
...
code

On my debugger the Collection object col looks like:

debug
col=java.util.HashSet (id=327)
  -map=java.util.HashMap (id=329)
  -table=java.util.HashMap$Entry[11] (id=330)
  -[2]=java.util.HashMapEntry (id=331)
  -key=com.swisscom.Group (id=287)
  -groupName=test
 -count=3
 -hash=0
 -offset=0
 -value=char[4] (id=212)
 -[0]=t
 -[1]=e
 -[2]=s
 -[3]=t
debug

I want to display the groupName value.

My view should look like:
xf:repeat nodeset=?
  xf:output ref=?/
/xf:repeat

But I don't know how to access to this Collection (path).
Could you help me?

Thanks
Sylvain



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: XMLForm: how to access to a Collection

2003-03-27 Thread Sylvain.Thevoz
There is nothing displayed.

It seems that the view don't access to the collection.

-Message d'origine-
De: ivelin [mailto:[EMAIL PROTECTED]
Date: jeudi, 27. mars 2003 14:30
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to access to a Collection



What is the error, exception?


-=Ivelin=-
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 7:25 AM
Subject: RE: XMLForm: how to access to a Collection


Hi Ivelin,

I have stick the collection into the JavaBean of the form with getter and
setter methods:

public class MyFormBean() {
  private Collection col = new HashSet();

  //other Bean attributes
  private String type;
  private int order;


  //getter and setter methods

  public Collection getCol() {
return col;
  }

  public void setCol(Collection col) {
this.col = col;
  }

}

But it doesn't work for me!

If what I need to do?
And do I need to create another Bean?


Thanks
Regards
Sylvain


-Message d'origine-
De: ivelin [mailto:[EMAIL PROTECTED]
Date: jeudi, 27. mars 2003 14:10
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to access to a Collection



You need to stick the collection in a simple JavaBean container.

public class BeanContainer
{
  Collection get/setMyCollection();
}

then

xf:repeat nodeset=myCollection
  xf:output ref=count/
  xf:output ref=name/
   ...
/xf:repeat




-=Ivelin=-
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 3:39 AM
Subject: XMLForm: how to access to a Collection


Hello,

I'm trying to access to a Java Collection from within a XMLForm view.

The Java code is:
code
...
Collection col = new HashSet();
...
while (iterator.hasNext()) {
  Group group = (Group) iter.next();
  col.add(group);
}
...
code

On my debugger the Collection object col looks like:

debug
col=java.util.HashSet (id=327)
  -map=java.util.HashMap (id=329)
  -table=java.util.HashMap$Entry[11] (id=330)
  -[2]=java.util.HashMapEntry (id=331)
  -key=com.swisscom.Group (id=287)
  -groupName=test
 -count=3
 -hash=0
 -offset=0
 -value=char[4] (id=212)
 -[0]=t
 -[1]=e
 -[2]=s
 -[3]=t
debug

I want to display the groupName value.

My view should look like:
xf:repeat nodeset=?
  xf:output ref=?/
/xf:repeat

But I don't know how to access to this Collection (path).
Could you help me?

Thanks
Sylvain



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]