You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Mark Stang <ms...@pingidentity.com> on 2006/05/16 21:15:21 UTC
Passing a byte array into a component???
All,
I am trying to pass in a byte[] into a component. However, I only seem to have "in" available. And it seems to be null when I go looking later.
thoughts?
thanks,
Mark
RE: Passing a byte array into a component???
Posted by Mark Stang <ms...@pingidentity.com>.
Geoff,
THANKS that worked great!
regards,
Mark
-----Original Message-----
From: Geoff Longman [mailto:glongman@gmail.com]
Sent: Tue 5/16/2006 1:54 PM
To: Tapestry users
Subject: Re: Passing a byte array into a component???
<parameter name="byteArray" direction="custom"/>
public abstract IBinding getByteArrayBinding();
public (or private up to you) byte [] getByteArray() {
IBinding binding = getByteArrayBinding();
if (binding == null)
return null;
return (byte[])binding.getObject();
}
On 5/16/06, Geoff Longman <gl...@gmail.com> wrote:
> A byte array is an Object :-)
>
> geoff
>
> On 5/16/06, Mark Stang <ms...@pingidentity.com> wrote:
> > Geoff,
> > T3, but custom wants an object right?
> >
> > thanks,
> >
> > Mark
> >
> >
> > -----Original Message-----
> > From: Geoff Longman [mailto:glongman@gmail.com]
> > Sent: Tue 5/16/2006 1:19 PM
> > To: Tapestry users
> > Subject: Re: Passing a byte array into a component???
> >
> > T3?
> >
> > You can always use 'custom'
> >
> > Geoff
> >
> > On 5/16/06, Mark Stang <ms...@pingidentity.com> wrote:
> > > All,
> > > I am trying to pass in a byte[] into a component. However, I only seem to have "in" available. And it seems to be null when I go looking later.
> > >
> > > thoughts?
> > >
> > > thanks,
> > >
> > > Mark
> > >
> > >
> >
> >
> > --
> > The Spindle guy. http://spindle.sf.net
> > Blog: http://jroller.com/page/glongman
> > Other interests: http://www.squidoo.com/spaceelevator/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> >
> >
>
>
> --
> The Spindle guy. http://spindle.sf.net
> Blog: http://jroller.com/page/glongman
> Other interests: http://www.squidoo.com/spaceelevator/
>
--
The Spindle guy. http://spindle.sf.net
Blog: http://jroller.com/page/glongman
Other interests: http://www.squidoo.com/spaceelevator/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Passing a byte array into a component???
Posted by Geoff Longman <gl...@gmail.com>.
<parameter name="byteArray" direction="custom"/>
public abstract IBinding getByteArrayBinding();
public (or private up to you) byte [] getByteArray() {
IBinding binding = getByteArrayBinding();
if (binding == null)
return null;
return (byte[])binding.getObject();
}
On 5/16/06, Geoff Longman <gl...@gmail.com> wrote:
> A byte array is an Object :-)
>
> geoff
>
> On 5/16/06, Mark Stang <ms...@pingidentity.com> wrote:
> > Geoff,
> > T3, but custom wants an object right?
> >
> > thanks,
> >
> > Mark
> >
> >
> > -----Original Message-----
> > From: Geoff Longman [mailto:glongman@gmail.com]
> > Sent: Tue 5/16/2006 1:19 PM
> > To: Tapestry users
> > Subject: Re: Passing a byte array into a component???
> >
> > T3?
> >
> > You can always use 'custom'
> >
> > Geoff
> >
> > On 5/16/06, Mark Stang <ms...@pingidentity.com> wrote:
> > > All,
> > > I am trying to pass in a byte[] into a component. However, I only seem to have "in" available. And it seems to be null when I go looking later.
> > >
> > > thoughts?
> > >
> > > thanks,
> > >
> > > Mark
> > >
> > >
> >
> >
> > --
> > The Spindle guy. http://spindle.sf.net
> > Blog: http://jroller.com/page/glongman
> > Other interests: http://www.squidoo.com/spaceelevator/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> >
> >
>
>
> --
> The Spindle guy. http://spindle.sf.net
> Blog: http://jroller.com/page/glongman
> Other interests: http://www.squidoo.com/spaceelevator/
>
--
The Spindle guy. http://spindle.sf.net
Blog: http://jroller.com/page/glongman
Other interests: http://www.squidoo.com/spaceelevator/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Passing a byte array into a component???
Posted by Geoff Longman <gl...@gmail.com>.
A byte array is an Object :-)
geoff
On 5/16/06, Mark Stang <ms...@pingidentity.com> wrote:
> Geoff,
> T3, but custom wants an object right?
>
> thanks,
>
> Mark
>
>
> -----Original Message-----
> From: Geoff Longman [mailto:glongman@gmail.com]
> Sent: Tue 5/16/2006 1:19 PM
> To: Tapestry users
> Subject: Re: Passing a byte array into a component???
>
> T3?
>
> You can always use 'custom'
>
> Geoff
>
> On 5/16/06, Mark Stang <ms...@pingidentity.com> wrote:
> > All,
> > I am trying to pass in a byte[] into a component. However, I only seem to have "in" available. And it seems to be null when I go looking later.
> >
> > thoughts?
> >
> > thanks,
> >
> > Mark
> >
> >
>
>
> --
> The Spindle guy. http://spindle.sf.net
> Blog: http://jroller.com/page/glongman
> Other interests: http://www.squidoo.com/spaceelevator/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
>
--
The Spindle guy. http://spindle.sf.net
Blog: http://jroller.com/page/glongman
Other interests: http://www.squidoo.com/spaceelevator/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: Passing a byte array into a component???
Posted by Mark Stang <ms...@pingidentity.com>.
Geoff,
T3, but custom wants an object right?
thanks,
Mark
-----Original Message-----
From: Geoff Longman [mailto:glongman@gmail.com]
Sent: Tue 5/16/2006 1:19 PM
To: Tapestry users
Subject: Re: Passing a byte array into a component???
T3?
You can always use 'custom'
Geoff
On 5/16/06, Mark Stang <ms...@pingidentity.com> wrote:
> All,
> I am trying to pass in a byte[] into a component. However, I only seem to have "in" available. And it seems to be null when I go looking later.
>
> thoughts?
>
> thanks,
>
> Mark
>
>
--
The Spindle guy. http://spindle.sf.net
Blog: http://jroller.com/page/glongman
Other interests: http://www.squidoo.com/spaceelevator/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Passing a byte array into a component???
Posted by Geoff Longman <gl...@gmail.com>.
T3?
You can always use 'custom'
Geoff
On 5/16/06, Mark Stang <ms...@pingidentity.com> wrote:
> All,
> I am trying to pass in a byte[] into a component. However, I only seem to have "in" available. And it seems to be null when I go looking later.
>
> thoughts?
>
> thanks,
>
> Mark
>
>
--
The Spindle guy. http://spindle.sf.net
Blog: http://jroller.com/page/glongman
Other interests: http://www.squidoo.com/spaceelevator/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org