Interesting! How about merging this into the popup-component - it looks pretty similar to me functionality-wise?
regards, Martin On 8/8/06, Trica Laurentiu <[EMAIL PROTECTED]> wrote:
Hi again Yes, it is a JavaScript, no requests are sent when clicking on the title. And the container is absolute-positioned using <div/> tag. Hope the things are clearer now :) On 8/8/06, "R. Müller" <[EMAIL PROTECTED]> wrote: > Is it a JavaScript-solution or is there a request sent on popup/popdown > ? Is the popup-container a absolute-positioned <div/>-tag ? > > regards > > Ronald > > Trica Laurentiu wrote: > > Hello > > > > Me and my colleague developed a new component: OptionsMenu. > > It is essentially a pop up container for other objects. > > It has a header that contains a text and 2 icons (images) - one for the > > initial state, and another for the expanded state. > > The icons are visible only one at a time, according to the component state. > > The position of the icon can be left or right (default is right - in the > > right of the text). > > You can specify: > > - the icon position > > - headerStyle - CSS style > > - headerStyleClass - CSS style class > > - containerStyle - CSS style > > - containerStyleClass - CSS style class > > > > You can also specify via facelets the images to be shown: > > - upIcon > > - downIcon > > > > Example: > > > > <c:optionsMenu value="Options Menu" > > headerStyle="color:#33CCCC; font-size:18px;" > > containerStyle="color:#888888; border-color: black; > > border-style:solid; border-width:thin;" > > iconPosition = "left"> > > <f:facet name="downIcon"> > > <t:graphicImage url="images/down.gif" > > style="border-width: 0" /> > > </f:facet> > > <f:facet name="upIcon"> > > <h:graphicImage url="images/up.gif" /> > > </f:facet> > > <h:form> > > <h:outputText value="OptionsMenu Container text"/> > > <br></br> > > <h:outputText value="Here you can add your > > components"/> > > <br></br> > > <h:outputLink value=" http://www.yahoo.com" > > title="title" >link</h:outputLink> > > <br></br> > > <h:commandLink value="Some > > commands"></h:commandLink> > > </h:form> > > </c:optionsMenu> > > > > I attached some pictures so you can see it in action. > > > > Hope you will find it useful. > > > > -- > > Best regards, > > Laurentiu Trica > > > > ------------------------------------------------------------------------ > > > > > > ------------------------------------------------------------------------ > > > > > > ------------------------------------------------------------------------ > > > -- Best regards, Laurentiu
-- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces