You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by David Brunette <Da...@chordiant.com> on 2006/09/15 14:54:19 UTC

Component to show a floating DIV?

 

     Hi everybody.

 

     I have had a look at the Dialog Framework that is available in
Trinidad.  It looks like a nice way to show the user a small bit of
content for a short period of time before returning to the original
page.  While designing our application, we like that... but we are
hoping to avoid the opening of a new instance of the browser, which is
what the dialog itself really is.  Instead, we would like to show that
small bit of content in a "floating DIV" (I believe that's the right
term?) that would open and close just like a dialog would.  I haven't
found anything in JSF/Trinidad that will do this for us, so my question
is:

 

1)       Is there actually a component out there that allows us to show
content in a floating DIV, and I've just overlooked it?

2)       If not, would it spark enough interest to eventually come up
with one?

 

     I'm interested in anybody's thoughts about this.  Thanks...

 

Dave


Re: Component to show a floating DIV?

Posted by Danny Robinson <da...@gmail.com>.
This could provide a good basis for the iframe idea.

http://sublog.subimage.com/articles/2006/01/01/subModal

Thanks,

D.

On 10/25/06, Danny Robinson <da...@gmail.com> wrote:
>
> I think both approaches are probably valid.  We've got lots of uses where
> we'd only need the in-page version (e.g. display the date picker, select
> filters for tables, etc.).  I'll look into an initial in-page version and
> see where to take it from there.
>
> D.
>
> On 10/25/06, Simon Lessard < simon.lessard.3@gmail.com> wrote:
> >
> > I kind of like the idea, it would help going around the popup blocker
> > issues. That being said, there's some design issue to talk about. First,
> > how
> > will that pseudo dialog will be populated? Do we want to harmonize it
> > with
> > our current dialog framework or not? If not then we could simply place
> > the
> > content as child of the div. However, if we want to harmonize it (which
> > is
> > better imho) we would have to populate it with another page content.
> > This
> > has some problems that I can think of:
> >
> > 1) The navigation must be evaluated (can be handled with some
> > NavigationHandler magic);
> > 2) The page content must be read (Facelets can handle that, but that
> > would
> > create a "strong" dependency between Trinidad and Facelets);
> > 3) The Facelets would have to be stripped of the HTML/BODY/HEAD
> > generating
> > elements. That one can be painful, we could also use a special
> > ResponseWriter to ignore those elements though;
> > 4) Work out the return events.
> >
> >
> > Regards,
> >
> > ~ Simon
> >
> > On 10/25/06, Danny Robinson < dannyjrobinson@gmail.com> wrote:
> > >
> > > Does anyone have any comments on Dave's email below?  I'd like to ask
> > for
> > > some direct on this and how it might be achieved wither currently, or
> > in
> > > the
> > > future.
> > >
> > > Thx,
> > >
> > > D.
> > >
> > > On 9/15/06, David Brunette < David.Brunette@chordiant.com> wrote:
> > > >
> > > >
> > > >
> > > >      Hi everybody.
> > > >
> > > >
> > > >
> > > >      I have had a look at the Dialog Framework that is available in
> > > > Trinidad.  It looks like a nice way to show the user a small bit of
> > > > content for a short period of time before returning to the original
> > > > page.  While designing our application, we like that... but we are
> > > > hoping to avoid the opening of a new instance of the browser, which
> > is
> > > > what the dialog itself really is.  Instead, we would like to show
> > that
> > > > small bit of content in a "floating DIV" (I believe that's the right
> > > > term?) that would open and close just like a dialog would.  I
> > haven't
> > > > found anything in JSF/Trinidad that will do this for us, so my
> > question
> > > > is:
> > > >
> > > >
> > > >
> > > > 1)       Is there actually a component out there that allows us to
> > show
> > > > content in a floating DIV, and I've just overlooked it?
> > > >
> > > > 2)       If not, would it spark enough interest to eventually come
> > up
> > > > with one?
> > > >
> > > >
> > > >
> > > >      I'm interested in anybody's thoughts about this.  Thanks...
> > > >
> > > >
> > > >
> > > > Dave
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Chordiant Software Inc.
> > > www.chordiant.com
> > >
> > >
> >
> >
>
>
> --
> Chordiant Software Inc.
> www.chordiant.com
>



-- 
Chordiant Software Inc.
www.chordiant.com

Re: Component to show a floating DIV?

Posted by Danny Robinson <da...@gmail.com>.
I think both approaches are probably valid.  We've got lots of uses where
we'd only need the in-page version (e.g. display the date picker, select
filters for tables, etc.).  I'll look into an initial in-page version and
see where to take it from there.

D.

On 10/25/06, Simon Lessard < simon.lessard.3@gmail.com> wrote:
>
> I kind of like the idea, it would help going around the popup blocker
> issues. That being said, there's some design issue to talk about. First,
> how
> will that pseudo dialog will be populated? Do we want to harmonize it with
> our current dialog framework or not? If not then we could simply place the
>
> content as child of the div. However, if we want to harmonize it (which is
> better imho) we would have to populate it with another page content. This
> has some problems that I can think of:
>
> 1) The navigation must be evaluated (can be handled with some
> NavigationHandler magic);
> 2) The page content must be read (Facelets can handle that, but that would
> create a "strong" dependency between Trinidad and Facelets);
> 3) The Facelets would have to be stripped of the HTML/BODY/HEAD generating
>
> elements. That one can be painful, we could also use a special
> ResponseWriter to ignore those elements though;
> 4) Work out the return events.
>
>
> Regards,
>
> ~ Simon
>
> On 10/25/06, Danny Robinson < dannyjrobinson@gmail.com> wrote:
> >
> > Does anyone have any comments on Dave's email below?  I'd like to ask
> for
> > some direct on this and how it might be achieved wither currently, or in
>
> > the
> > future.
> >
> > Thx,
> >
> > D.
> >
> > On 9/15/06, David Brunette <Da...@chordiant.com> wrote:
> > >
> > >
> > >
> > >      Hi everybody.
> > >
> > >
> > >
> > >      I have had a look at the Dialog Framework that is available in
> > > Trinidad.  It looks like a nice way to show the user a small bit of
> > > content for a short period of time before returning to the original
> > > page.  While designing our application, we like that... but we are
> > > hoping to avoid the opening of a new instance of the browser, which is
>
> > > what the dialog itself really is.  Instead, we would like to show that
> > > small bit of content in a "floating DIV" (I believe that's the right
> > > term?) that would open and close just like a dialog would.  I haven't
> > > found anything in JSF/Trinidad that will do this for us, so my
> question
> > > is:
> > >
> > >
> > >
> > > 1)       Is there actually a component out there that allows us to
> show
> > > content in a floating DIV, and I've just overlooked it?
> > >
> > > 2)       If not, would it spark enough interest to eventually come up
> > > with one?
> > >
> > >
> > >
> > >      I'm interested in anybody's thoughts about this.  Thanks...
> > >
> > >
> > >
> > > Dave
> > >
> > >
> > >
> >
> >
> > --
> > Chordiant Software Inc.
> > www.chordiant.com
> >
> >
>
>


-- 
Chordiant Software Inc.
www.chordiant.com

Re: Component to show a floating DIV?

Posted by Simon Lessard <si...@gmail.com>.
Hmm iframe looks like a nice idea to me indeed.

On 10/25/06, Andrew Robinson <an...@gmail.com> wrote:
>
> The jenia4faces popupBox and popupFrame as well as the Tomahawk popup
> all have similar functionality.
>
> From the the description of the request, it sounds like Jenia's
> popupFrame would do nicely. It is implemented as an IFRAME so can
> therefore handle its own navigation and a close button, resize button
> and a maximize button. It is really quite nice. I know it isn't part
> of Trinidad, but why re-invent the wheel yet again?
>
> On 10/25/06, Simon Lessard <si...@gmail.com> wrote:
> > I kind of like the idea, it would help going around the popup blocker
> > issues. That being said, there's some design issue to talk about. First,
> how
> > will that pseudo dialog will be populated? Do we want to harmonize it
> with
> > our current dialog framework or not? If not then we could simply place
> the
> > content as child of the div. However, if we want to harmonize it (which
> is
> > better imho) we would have to populate it with another page content.
> This
> > has some problems that I can think of:
> >
> > 1) The navigation must be evaluated (can be handled with some
> > NavigationHandler magic);
> > 2) The page content must be read (Facelets can handle that, but that
> would
> > create a "strong" dependency between Trinidad and Facelets);
> > 3) The Facelets would have to be stripped of the HTML/BODY/HEAD
> generating
> > elements. That one can be painful, we could also use a special
> > ResponseWriter to ignore those elements though;
> > 4) Work out the return events.
> >
> >
> > Regards,
> >
> > ~ Simon
> >
> > On 10/25/06, Danny Robinson <da...@gmail.com> wrote:
> > >
> > > Does anyone have any comments on Dave's email below?  I'd like to ask
> for
> > > some direct on this and how it might be achieved wither currently, or
> in
> > > the
> > > future.
> > >
> > > Thx,
> > >
> > > D.
> > >
> > > On 9/15/06, David Brunette <Da...@chordiant.com> wrote:
> > > >
> > > >
> > > >
> > > >      Hi everybody.
> > > >
> > > >
> > > >
> > > >      I have had a look at the Dialog Framework that is available in
> > > > Trinidad.  It looks like a nice way to show the user a small bit of
> > > > content for a short period of time before returning to the original
> > > > page.  While designing our application, we like that... but we are
> > > > hoping to avoid the opening of a new instance of the browser, which
> is
> > > > what the dialog itself really is.  Instead, we would like to show
> that
> > > > small bit of content in a "floating DIV" (I believe that's the right
> > > > term?) that would open and close just like a dialog would.  I
> haven't
> > > > found anything in JSF/Trinidad that will do this for us, so my
> question
> > > > is:
> > > >
> > > >
> > > >
> > > > 1)       Is there actually a component out there that allows us to
> show
> > > > content in a floating DIV, and I've just overlooked it?
> > > >
> > > > 2)       If not, would it spark enough interest to eventually come
> up
> > > > with one?
> > > >
> > > >
> > > >
> > > >      I'm interested in anybody's thoughts about this.  Thanks...
> > > >
> > > >
> > > >
> > > > Dave
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Chordiant Software Inc.
> > > www.chordiant.com
> > >
> > >
> >
> >
>

Re: Component to show a floating DIV?

Posted by Andrew Robinson <an...@gmail.com>.
The jenia4faces popupBox and popupFrame as well as the Tomahawk popup
all have similar functionality.

From the the description of the request, it sounds like Jenia's
popupFrame would do nicely. It is implemented as an IFRAME so can
therefore handle its own navigation and a close button, resize button
and a maximize button. It is really quite nice. I know it isn't part
of Trinidad, but why re-invent the wheel yet again?

On 10/25/06, Simon Lessard <si...@gmail.com> wrote:
> I kind of like the idea, it would help going around the popup blocker
> issues. That being said, there's some design issue to talk about. First, how
> will that pseudo dialog will be populated? Do we want to harmonize it with
> our current dialog framework or not? If not then we could simply place the
> content as child of the div. However, if we want to harmonize it (which is
> better imho) we would have to populate it with another page content. This
> has some problems that I can think of:
>
> 1) The navigation must be evaluated (can be handled with some
> NavigationHandler magic);
> 2) The page content must be read (Facelets can handle that, but that would
> create a "strong" dependency between Trinidad and Facelets);
> 3) The Facelets would have to be stripped of the HTML/BODY/HEAD generating
> elements. That one can be painful, we could also use a special
> ResponseWriter to ignore those elements though;
> 4) Work out the return events.
>
>
> Regards,
>
> ~ Simon
>
> On 10/25/06, Danny Robinson <da...@gmail.com> wrote:
> >
> > Does anyone have any comments on Dave's email below?  I'd like to ask for
> > some direct on this and how it might be achieved wither currently, or in
> > the
> > future.
> >
> > Thx,
> >
> > D.
> >
> > On 9/15/06, David Brunette <Da...@chordiant.com> wrote:
> > >
> > >
> > >
> > >      Hi everybody.
> > >
> > >
> > >
> > >      I have had a look at the Dialog Framework that is available in
> > > Trinidad.  It looks like a nice way to show the user a small bit of
> > > content for a short period of time before returning to the original
> > > page.  While designing our application, we like that... but we are
> > > hoping to avoid the opening of a new instance of the browser, which is
> > > what the dialog itself really is.  Instead, we would like to show that
> > > small bit of content in a "floating DIV" (I believe that's the right
> > > term?) that would open and close just like a dialog would.  I haven't
> > > found anything in JSF/Trinidad that will do this for us, so my question
> > > is:
> > >
> > >
> > >
> > > 1)       Is there actually a component out there that allows us to show
> > > content in a floating DIV, and I've just overlooked it?
> > >
> > > 2)       If not, would it spark enough interest to eventually come up
> > > with one?
> > >
> > >
> > >
> > >      I'm interested in anybody's thoughts about this.  Thanks...
> > >
> > >
> > >
> > > Dave
> > >
> > >
> > >
> >
> >
> > --
> > Chordiant Software Inc.
> > www.chordiant.com
> >
> >
>
>

Re: Component to show a floating DIV?

Posted by Simon Lessard <si...@gmail.com>.
I kind of like the idea, it would help going around the popup blocker
issues. That being said, there's some design issue to talk about. First, how
will that pseudo dialog will be populated? Do we want to harmonize it with
our current dialog framework or not? If not then we could simply place the
content as child of the div. However, if we want to harmonize it (which is
better imho) we would have to populate it with another page content. This
has some problems that I can think of:

1) The navigation must be evaluated (can be handled with some
NavigationHandler magic);
2) The page content must be read (Facelets can handle that, but that would
create a "strong" dependency between Trinidad and Facelets);
3) The Facelets would have to be stripped of the HTML/BODY/HEAD generating
elements. That one can be painful, we could also use a special
ResponseWriter to ignore those elements though;
4) Work out the return events.


Regards,

~ Simon

On 10/25/06, Danny Robinson <da...@gmail.com> wrote:
>
> Does anyone have any comments on Dave's email below?  I'd like to ask for
> some direct on this and how it might be achieved wither currently, or in
> the
> future.
>
> Thx,
>
> D.
>
> On 9/15/06, David Brunette <Da...@chordiant.com> wrote:
> >
> >
> >
> >      Hi everybody.
> >
> >
> >
> >      I have had a look at the Dialog Framework that is available in
> > Trinidad.  It looks like a nice way to show the user a small bit of
> > content for a short period of time before returning to the original
> > page.  While designing our application, we like that... but we are
> > hoping to avoid the opening of a new instance of the browser, which is
> > what the dialog itself really is.  Instead, we would like to show that
> > small bit of content in a "floating DIV" (I believe that's the right
> > term?) that would open and close just like a dialog would.  I haven't
> > found anything in JSF/Trinidad that will do this for us, so my question
> > is:
> >
> >
> >
> > 1)       Is there actually a component out there that allows us to show
> > content in a floating DIV, and I've just overlooked it?
> >
> > 2)       If not, would it spark enough interest to eventually come up
> > with one?
> >
> >
> >
> >      I'm interested in anybody's thoughts about this.  Thanks...
> >
> >
> >
> > Dave
> >
> >
> >
>
>
> --
> Chordiant Software Inc.
> www.chordiant.com
>
>

Re: Component to show a floating DIV?

Posted by Danny Robinson <da...@gmail.com>.
Does anyone have any comments on Dave's email below?  I'd like to ask for
some direct on this and how it might be achieved wither currently, or in the
future.

Thx,

D.

On 9/15/06, David Brunette <Da...@chordiant.com> wrote:
>
>
>
>      Hi everybody.
>
>
>
>      I have had a look at the Dialog Framework that is available in
> Trinidad.  It looks like a nice way to show the user a small bit of
> content for a short period of time before returning to the original
> page.  While designing our application, we like that... but we are
> hoping to avoid the opening of a new instance of the browser, which is
> what the dialog itself really is.  Instead, we would like to show that
> small bit of content in a "floating DIV" (I believe that's the right
> term?) that would open and close just like a dialog would.  I haven't
> found anything in JSF/Trinidad that will do this for us, so my question
> is:
>
>
>
> 1)       Is there actually a component out there that allows us to show
> content in a floating DIV, and I've just overlooked it?
>
> 2)       If not, would it spark enough interest to eventually come up
> with one?
>
>
>
>      I'm interested in anybody's thoughts about this.  Thanks...
>
>
>
> Dave
>
>
>


-- 
Chordiant Software Inc.
www.chordiant.com